Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: webrtc/api/BUILD.gn

Issue 2037983002: Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: New changes Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10
11 group("api") {
12 deps = [
13 ":libjingle_peerconnection",
14 ]
15 }
16
17 config("libjingle_peerconnection_warnings_config") {
18 # GN orders flags on a target before flags from configs. The default config
19 # adds these flags so to cancel them out they need to come from a config and
20 # cannot be on the target directly.
21 if (!is_win) {
22 cflags = [ "-Wno-sign-compare" ]
23 if (!is_clang) {
24 cflags += [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
25 }
26 }
27 }
28
29 source_set("libjingle_peerconnection") {
30 cflags = []
31 sources = [
32 "audiotrack.cc",
33 "audiotrack.h",
34 "datachannel.cc",
35 "datachannel.h",
36 "datachannelinterface.h",
37 "dtlsidentitystore.cc",
38 "dtlsidentitystore.h",
39 "dtmfsender.cc",
40 "dtmfsender.h",
41 "dtmfsenderinterface.h",
42 "jsep.h",
43 "jsepicecandidate.cc",
44 "jsepicecandidate.h",
45 "jsepsessiondescription.cc",
46 "jsepsessiondescription.h",
47 "localaudiosource.cc",
48 "localaudiosource.h",
49 "mediaconstraintsinterface.cc",
50 "mediaconstraintsinterface.h",
51 "mediacontroller.cc",
52 "mediacontroller.h",
53 "mediastream.cc",
54 "mediastream.h",
55 "mediastreaminterface.h",
56 "mediastreamobserver.cc",
57 "mediastreamobserver.h",
58 "mediastreamprovider.h",
59 "mediastreamproxy.h",
60 "mediastreamtrack.h",
61 "mediastreamtrackproxy.h",
62 "notifier.h",
63 "peerconnection.cc",
64 "peerconnection.h",
65 "peerconnectionfactory.cc",
66 "peerconnectionfactory.h",
67 "peerconnectionfactoryproxy.h",
68 "peerconnectioninterface.h",
69 "peerconnectionproxy.h",
70 "proxy.h",
71 "remoteaudiosource.cc",
72 "remoteaudiosource.h",
73 "rtpparameters.h",
74 "rtpreceiver.cc",
75 "rtpreceiver.h",
76 "rtpreceiverinterface.h",
77 "rtpsender.cc",
78 "rtpsender.h",
79 "rtpsenderinterface.h",
80 "sctputils.cc",
81 "sctputils.h",
82 "statscollector.cc",
83 "statscollector.h",
84 "statstypes.cc",
85 "statstypes.h",
86 "streamcollection.h",
87 "videocapturertracksource.cc",
88 "videocapturertracksource.h",
89 "videosourceproxy.h",
90 "videotrack.cc",
91 "videotrack.h",
92 "videotracksource.cc",
93 "videotracksource.h",
94 "webrtcsdp.cc",
95 "webrtcsdp.h",
96 "webrtcsession.cc",
97 "webrtcsession.h",
98 "webrtcsessiondescriptionfactory.cc",
99 "webrtcsessiondescriptionfactory.h",
100 ]
101
102 configs += [
103 "..:common_config",
104 ":libjingle_peerconnection_warnings_config",
105 ]
106 public_configs = [ "..:common_inherited_config" ]
107
108 if (is_clang) {
109 # Suppress warnings from Chrome's Clang plugins.
110 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
111 configs -= [ "//build/config/clang:extra_warnings" ]
112 configs -= [ "//build/config/clang:find_bad_constructs" ]
113 }
114
115 if (is_win) {
116 cflags += [ "/wd4389" ] # signed/unsigned mismatch.
117 }
118
119 deps = [
120 "../media",
121 "../pc",
122 ]
123
124 if (rtc_use_quic) {
125 sources += [
126 "quicdatachannel.cc",
127 "quicdatachannel.h",
128 "quicdatatransport.cc",
129 "quicdatatransport.h",
130 ]
131 deps += [ "//third_party/libquic" ]
132 public_deps = [
133 "//third_party/libquic",
134 ]
135 }
136 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698