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

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

Issue 2218053002: Create gn target for peerconnection examples (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | 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) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 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 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 } 12 }
13 if (is_linux) {
14 import("//webrtc/build/webrtc.gni")
15 import("//build/config/linux/pkg_config.gni")
16 }
13 17
14 group("examples") { 18 group("examples") {
15 deps = [] 19 deps = []
16 20
17 if (is_android && !build_with_chromium) { 21 if (is_android && !build_with_chromium) {
18 deps += [ ":AppRTCDemo" ] 22 deps += [ ":AppRTCDemo" ]
19 } 23 }
24 if (is_linux) {
tommi 2016/08/05 13:21:32 would prefer to include the same platforms as we h
25 deps += [
26 ":peerconnection_client",
27 ":peerconnection_server",
28 ":relayserver",
29 ":stunserver",
30 ":turnserver",
31 ]
32 }
20 } 33 }
21 34
22 if (is_android && !build_with_chromium) { 35 if (is_android && !build_with_chromium) {
23 android_apk("AppRTCDemo") { 36 android_apk("AppRTCDemo") {
24 apk_name = "AppRTCDemo" 37 apk_name = "AppRTCDemo"
25 android_manifest = "androidapp/AndroidManifest.xml" 38 android_manifest = "androidapp/AndroidManifest.xml"
26 39
27 deps = [ 40 deps = [
28 ":AppRTCDemo_javalib", 41 ":AppRTCDemo_javalib",
29 ":AppRTCDemo_resources", 42 ":AppRTCDemo_resources",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 "androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java", 107 "androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java",
95 ] 108 ]
96 109
97 deps = [ 110 deps = [
98 ":AppRTCDemo_javalib", 111 ":AppRTCDemo_javalib",
99 "//webrtc/api:libjingle_peerconnection_java", 112 "//webrtc/api:libjingle_peerconnection_java",
100 "//webrtc/api:libjingle_peerconnection_jni", 113 "//webrtc/api:libjingle_peerconnection_jni",
101 ] 114 ]
102 } 115 }
103 } 116 }
117
118 #TODO(kthelgason): Support building on Windows
tommi 2016/08/05 13:21:32 nit: space after #
119 if (is_linux) {
120 pkg_config("gtk2_config") {
121 # Gtk requires gmodule, but it does not list it as a dependency in some
122 # misconfigured systems.
123 packages = [
124 "gmodule-2.0",
125 "gtk+-2.0",
126 "gthread-2.0",
127 ]
128 }
129 public_configs = [ ":gtk2_config" ]
130 executable("peerconnection_client") {
131 sources = [
132 "peerconnection/client/conductor.cc",
133 "peerconnection/client/conductor.h",
134 "peerconnection/client/defaults.cc",
135 "peerconnection/client/defaults.h",
136 "peerconnection/client/peer_connection_client.cc",
137 "peerconnection/client/peer_connection_client.h",
138 ]
139 if (is_clang) {
140 # Suppress warnings from the Chromium Clang plugin.
141 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
142 configs -= [ "//build/config/clang:find_bad_constructs" ]
143 }
144 if (is_linux) {
145 sources += [
146 "peerconnection/client/linux/main.cc",
147 "peerconnection/client/linux/main_wnd.cc",
148 "peerconnection/client/linux/main_wnd.h",
149 ]
150 libs = [
151 "X11",
152 "Xcomposite",
153 "Xext",
154 "Xrender",
155 ]
156 }
157 deps = [
158 "//build/config/linux/gtk2",
159 "//webrtc/api:libjingle_peerconnection",
160 "//webrtc/system_wrappers:field_trial_default",
161 "//webrtc/system_wrappers:metrics_default",
162 ]
163 if (rtc_build_json) {
164 deps += [ "//third_party/jsoncpp" ]
165 }
166 }
167 executable("peerconnection_server") {
168 sources = [
169 "peerconnection/server/data_socket.cc",
170 "peerconnection/server/data_socket.h",
171 "peerconnection/server/main.cc",
172 "peerconnection/server/peer_channel.cc",
173 "peerconnection/server/peer_channel.h",
174 "peerconnection/server/utils.cc",
175 "peerconnection/server/utils.h",
176 ]
177 deps = [
178 "//webrtc:webrtc_common",
179 "//webrtc/base:rtc_base_approved",
180 "//webrtc/tools:command_line_parser",
181 ]
182 if (is_clang) {
183 # Suppress warnings from the Chromium Clang plugin.
184 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
185 configs -= [ "//build/config/clang:find_bad_constructs" ]
186 }
187 }
188 executable("relayserver") {
189 sources = [
190 "relayserver/relayserver_main.cc",
191 ]
192 deps = [
193 "//webrtc/base:rtc_base_approved",
194 "//webrtc/pc:rtc_pc",
195 "//webrtc/system_wrappers:field_trial_default",
196 "//webrtc/system_wrappers:metrics_default",
197 ]
198 if (is_clang) {
199 # Suppress warnings from the Chromium Clang plugin.
200 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
201 configs -= [ "//build/config/clang:find_bad_constructs" ]
202 }
203 }
204 executable("turnserver") {
205 sources = [
206 "turnserver/turnserver_main.cc",
207 ]
208 deps = [
209 "//webrtc/base:rtc_base_approved",
210 "//webrtc/pc:rtc_pc",
211 "//webrtc/system_wrappers:field_trial_default",
212 "//webrtc/system_wrappers:metrics_default",
213 ]
214 if (is_clang) {
215 # Suppress warnings from the Chromium Clang plugin.
216 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
217 configs -= [ "//build/config/clang:find_bad_constructs" ]
218 }
219 }
220 executable("stunserver") {
221 sources = [
222 "stunserver/stunserver_main.cc",
223 ]
224 deps = [
225 "//webrtc/base:rtc_base_approved",
226 "//webrtc/pc:rtc_pc",
227 "//webrtc/system_wrappers:field_trial_default",
228 "//webrtc/system_wrappers:metrics_default",
229 ]
230 if (is_clang) {
231 # Suppress warnings from the Chromium Clang plugin.
232 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
233 configs -= [ "//build/config/clang:find_bad_constructs" ]
234 }
235 }
236 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698