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

Side by Side Diff: third_party/libjingle/BUILD.gn

Issue 779473002: gn format //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « third_party/libaddressinput/BUILD.gn ('k') | third_party/libpng/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 7
8 # From third_party/libjingle/libjingle.gyp's target_defaults. 8 # From third_party/libjingle/libjingle.gyp's target_defaults.
9 config("jingle_unexported_configs") { 9 config("jingle_unexported_configs") {
10 defines = [ 10 defines = [
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 "SSL_USE_OPENSSL", 45 "SSL_USE_OPENSSL",
46 "HAVE_OPENSSL_SSL_H", 46 "HAVE_OPENSSL_SSL_H",
47 ] 47 ]
48 } else { 48 } else {
49 defines += [ 49 defines += [
50 "SSL_USE_NSS", 50 "SSL_USE_NSS",
51 "HAVE_NSS_SSL_H", 51 "HAVE_NSS_SSL_H",
52 "SSL_USE_NSS_RNG", 52 "SSL_USE_NSS_RNG",
53 ] 53 ]
54 } 54 }
55
56 } 55 }
57 56
58 # From third_party/libjingle/libjingle.gyp's target_defaults. 57 # From third_party/libjingle/libjingle.gyp's target_defaults.
59 config("jingle_direct_dependent_configs") { 58 config("jingle_direct_dependent_configs") {
60 include_dirs = [ 59 include_dirs = [
61 "../../third_party/webrtc/overrides", 60 "../../third_party/webrtc/overrides",
62 "overrides", 61 "overrides",
63 "source", 62 "source",
64 "../../testing/gtest/include", 63 "../../testing/gtest/include",
65 "../../third_party", 64 "../../third_party",
66 ] 65 ]
67 defines = [ 66 defines = [
68 "FEATURE_ENABLE_SSL", 67 "FEATURE_ENABLE_SSL",
69 "FEATURE_ENABLE_VOICEMAIL", 68 "FEATURE_ENABLE_VOICEMAIL",
70 "EXPAT_RELATIVE_PATH", 69 "EXPAT_RELATIVE_PATH",
71 "GTEST_RELATIVE_PATH", 70 "GTEST_RELATIVE_PATH",
72 "NO_MAIN_THREAD_WRAPPING", 71 "NO_MAIN_THREAD_WRAPPING",
73 "NO_SOUND_SYSTEM", 72 "NO_SOUND_SYSTEM",
74 ] 73 ]
74
75 # TODO(GYP): Port is_win blocks. 75 # TODO(GYP): Port is_win blocks.
76 if (is_linux) { 76 if (is_linux) {
77 defines += [ "LINUX", "WEBRTC_LINUX" ] 77 defines += [
78 "LINUX",
79 "WEBRTC_LINUX",
80 ]
78 } 81 }
79 if (is_mac) { 82 if (is_mac) {
80 defines += [ "OSX", "WEBRTC_MAC" ] 83 defines += [
84 "OSX",
85 "WEBRTC_MAC",
86 ]
81 } 87 }
82 if (is_ios) { 88 if (is_ios) {
83 defines += [ "IOS", "WEBRTC_MAC", "WEBRTC_IOS" ] 89 defines += [
90 "IOS",
91 "WEBRTC_MAC",
92 "WEBRTC_IOS",
93 ]
84 } 94 }
85 if (is_win) { 95 if (is_win) {
86 defines += [ "WEBRTC_WIN" ] 96 defines += [ "WEBRTC_WIN" ]
87 } 97 }
88 if (is_android) { 98 if (is_android) {
89 defines += [ "ANDROID" ] 99 defines += [ "ANDROID" ]
90 } 100 }
91 if (is_posix) { 101 if (is_posix) {
92 defines += [ "POSIX", "WEBRTC_POSIX" ] 102 defines += [
103 "POSIX",
104 "WEBRTC_POSIX",
105 ]
93 } 106 }
107
94 # TODO(GYP): Support these in GN. 108 # TODO(GYP): Support these in GN.
95 # if (is_bsd) { 109 # if (is_bsd) {
96 # defines += [ "BSD" ] 110 # defines += [ "BSD" ]
97 # } 111 # }
98 # if (is_openbsd) { 112 # if (is_openbsd) {
99 # defines += [ "OPENBSD" ] 113 # defines += [ "OPENBSD" ]
100 # } 114 # }
101 # if (is_freebsd) { 115 # if (is_freebsd) {
102 # defines += [ "FREEBSD" ] 116 # defines += [ "FREEBSD" ]
103 # } 117 # }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 "$xmpp_dir/xmppstanzaparser.h", 259 "$xmpp_dir/xmppstanzaparser.h",
246 "$xmpp_dir/xmpptask.cc", 260 "$xmpp_dir/xmpptask.cc",
247 "$xmpp_dir/xmpptask.h", 261 "$xmpp_dir/xmpptask.h",
248 ] 262 ]
249 sources -= [ 263 sources -= [
250 # Compiled as part of libjingle_p2p_constants. 264 # Compiled as part of libjingle_p2p_constants.
251 "$p2p_dir/base/constants.cc", 265 "$p2p_dir/base/constants.cc",
252 "$p2p_dir/base/constants.h", 266 "$p2p_dir/base/constants.h",
253 ] 267 ]
254 public_deps = [ 268 public_deps = [
255 ":jingle_deps" 269 ":jingle_deps",
256 ] 270 ]
257 deps = [ 271 deps = [
258 "//third_party/webrtc/base:webrtc_base", 272 "//third_party/webrtc/base:webrtc_base",
259 ":libjingle_p2p_constants", 273 ":libjingle_p2p_constants",
260 ] 274 ]
261 275
262 # From libjingle_common.gypi's conditions list. 276 # From libjingle_common.gypi's conditions list.
263 if (is_win) { 277 if (is_win) {
264 cflags = [ "/wd4005", "/wd4267" ] 278 cflags = [
279 "/wd4005",
280 "/wd4267",
281 ]
265 } 282 }
266 283
267 configs += [ 284 configs += [ ":jingle_unexported_configs" ]
268 ":jingle_unexported_configs" 285 public_configs = [ ":jingle_direct_dependent_configs" ]
269 ] 286 all_dependent_configs = [ ":jingle_all_dependent_configs" ]
270 public_configs = [
271 ":jingle_direct_dependent_configs",
272 ]
273 all_dependent_configs = [
274 ":jingle_all_dependent_configs",
275 ]
276 } 287 }
277 288
278 # This has to be is a separate project due to a bug in MSVS 2008 and the 289 # This has to be is a separate project due to a bug in MSVS 2008 and the
279 # current toolset on android. The problem is that we have two files named 290 # current toolset on android. The problem is that we have two files named
280 # "constants.cc" and MSVS/android doesn't handle this properly. 291 # "constants.cc" and MSVS/android doesn't handle this properly.
281 # GYP currently has guards to catch this, so if you want to remove it, 292 # GYP currently has guards to catch this, so if you want to remove it,
282 # run GYP and if GYP has removed the validation check, then we can assume 293 # run GYP and if GYP has removed the validation check, then we can assume
283 # that the toolchains have been fixed (we currently use VS2010 and later, 294 # that the toolchains have been fixed (we currently use VS2010 and later,
284 # so VS2008 isn't a concern anymore). 295 # so VS2008 isn't a concern anymore).
285 # 296 #
286 # GYP version: third_party/libjingle.gyp:libjingle_p2p_constants 297 # GYP version: third_party/libjingle.gyp:libjingle_p2p_constants
287 static_library("libjingle_p2p_constants") { 298 static_library("libjingle_p2p_constants") {
288 p2p_dir = "../webrtc/p2p" 299 p2p_dir = "../webrtc/p2p"
289 sources = [ 300 sources = [
290 "$p2p_dir/base/constants.cc", 301 "$p2p_dir/base/constants.cc",
291 "$p2p_dir/base/constants.h", 302 "$p2p_dir/base/constants.h",
292 ] 303 ]
293 public_deps = [ 304 public_deps = [
294 ":jingle_deps", 305 ":jingle_deps",
295 ] 306 ]
296 configs += [ 307 configs += [ ":jingle_unexported_configs" ]
297 ":jingle_unexported_configs" 308 public_configs = [ ":jingle_direct_dependent_configs" ]
298 ] 309 all_dependent_configs = [ ":jingle_all_dependent_configs" ]
299 public_configs = [
300 ":jingle_direct_dependent_configs",
301 ]
302 all_dependent_configs = [
303 ":jingle_all_dependent_configs",
304 ]
305 } 310 }
306 311
307 # GYP version: third_party/libjingle.gyp:peerconnnection_server 312 # GYP version: third_party/libjingle.gyp:peerconnnection_server
308 #TODO(GYP): Switch to executable when WebRTC dependency is resolved. 313 #TODO(GYP): Switch to executable when WebRTC dependency is resolved.
309 source_set("peerconnnection_server") { 314 source_set("peerconnnection_server") {
310 sources = [ 315 sources = [
311 "source/talk/examples/peerconnection/server/data_socket.cc", 316 "source/talk/examples/peerconnection/server/data_socket.cc",
312 "source/talk/examples/peerconnection/server/data_socket.h", 317 "source/talk/examples/peerconnection/server/data_socket.h",
313 "source/talk/examples/peerconnection/server/main.cc", 318 "source/talk/examples/peerconnection/server/main.cc",
314 "source/talk/examples/peerconnection/server/peer_channel.cc", 319 "source/talk/examples/peerconnection/server/peer_channel.cc",
315 "source/talk/examples/peerconnection/server/peer_channel.h", 320 "source/talk/examples/peerconnection/server/peer_channel.h",
316 "source/talk/examples/peerconnection/server/utils.cc", 321 "source/talk/examples/peerconnection/server/utils.cc",
317 "source/talk/examples/peerconnection/server/utils.h", 322 "source/talk/examples/peerconnection/server/utils.h",
318 ] 323 ]
319 include_dirs = [ 324 include_dirs = [ "source" ]
320 "source",
321 ]
322 public_deps = [ 325 public_deps = [
323 ":jingle_deps", 326 ":jingle_deps",
324 ] 327 ]
325 deps = [ 328 deps = [
326 ":libjingle", 329 ":libjingle",
327 ":jingle_deps", 330 ":jingle_deps",
328 ] 331 ]
329 configs += [ 332 configs += [ ":jingle_unexported_configs" ]
330 ":jingle_unexported_configs" 333 public_configs = [ ":jingle_direct_dependent_configs" ]
331 ] 334 all_dependent_configs = [ ":jingle_all_dependent_configs" ]
332 public_configs = [
333 ":jingle_direct_dependent_configs",
334 ]
335 all_dependent_configs = [
336 ":jingle_all_dependent_configs",
337 ]
338 if (is_win) { 335 if (is_win) {
339 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 336 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
340 cflags = [ "/wd4309" ] 337 cflags = [ "/wd4309" ]
341 } 338 }
342 } 339 }
343 340
344 if (enable_webrtc) { 341 if (enable_webrtc) {
345
346 source_set("libjingle_webrtc") { 342 source_set("libjingle_webrtc") {
347 sources = [ 343 sources = [
348 "overrides/init_webrtc.cc", 344 "overrides/init_webrtc.cc",
349 "overrides/init_webrtc.h", 345 "overrides/init_webrtc.h",
350 ] 346 ]
351 configs += [ ":jingle_unexported_configs" ] 347 configs += [ ":jingle_unexported_configs" ]
352 public_configs = [ ":jingle_direct_dependent_configs" ] 348 public_configs = [ ":jingle_direct_dependent_configs" ]
353 deps = [ ":libjingle_webrtc_common" ] 349 deps = [
350 ":libjingle_webrtc_common",
351 ]
354 } 352 }
355 353
356 # Note: this does not support the shared library build of libpeerconnection 354 # Note: this does not support the shared library build of libpeerconnection
357 # as is supported in the GYP build. It's not clear what this is used for. 355 # as is supported in the GYP build. It's not clear what this is used for.
358 source_set("libjingle_webrtc_common") { 356 source_set("libjingle_webrtc_common") {
359 sources = [ 357 sources = [
360 "overrides/talk/media/webrtc/webrtcexport.h", 358 "overrides/talk/media/webrtc/webrtcexport.h",
361
362 "source/talk/app/webrtc/audiotrack.cc", 359 "source/talk/app/webrtc/audiotrack.cc",
363 "source/talk/app/webrtc/audiotrack.h", 360 "source/talk/app/webrtc/audiotrack.h",
364 "source/talk/app/webrtc/audiotrackrenderer.cc", 361 "source/talk/app/webrtc/audiotrackrenderer.cc",
365 "source/talk/app/webrtc/audiotrackrenderer.h", 362 "source/talk/app/webrtc/audiotrackrenderer.h",
366 "source/talk/app/webrtc/datachannel.cc", 363 "source/talk/app/webrtc/datachannel.cc",
367 "source/talk/app/webrtc/datachannel.h", 364 "source/talk/app/webrtc/datachannel.h",
368 "source/talk/app/webrtc/dtmfsender.cc", 365 "source/talk/app/webrtc/dtmfsender.cc",
369 "source/talk/app/webrtc/dtmfsender.h", 366 "source/talk/app/webrtc/dtmfsender.h",
370 "source/talk/app/webrtc/jsep.h", 367 "source/talk/app/webrtc/jsep.h",
371 "source/talk/app/webrtc/jsepicecandidate.cc", 368 "source/talk/app/webrtc/jsepicecandidate.cc",
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 "source/talk/app/webrtc/java/src/org/webrtc/SdpObserver.java", 582 "source/talk/app/webrtc/java/src/org/webrtc/SdpObserver.java",
586 "source/talk/app/webrtc/java/src/org/webrtc/StatsObserver.java", 583 "source/talk/app/webrtc/java/src/org/webrtc/StatsObserver.java",
587 "source/talk/app/webrtc/java/src/org/webrtc/StatsReport.java", 584 "source/talk/app/webrtc/java/src/org/webrtc/StatsReport.java",
588 "source/talk/app/webrtc/java/src/org/webrtc/SessionDescription.java", 585 "source/talk/app/webrtc/java/src/org/webrtc/SessionDescription.java",
589 "source/talk/app/webrtc/java/src/org/webrtc/VideoCapturer.java", 586 "source/talk/app/webrtc/java/src/org/webrtc/VideoCapturer.java",
590 "source/talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java", 587 "source/talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java",
591 "source/talk/app/webrtc/java/src/org/webrtc/VideoSource.java", 588 "source/talk/app/webrtc/java/src/org/webrtc/VideoSource.java",
592 "source/talk/app/webrtc/java/src/org/webrtc/VideoTrack.java", 589 "source/talk/app/webrtc/java/src/org/webrtc/VideoTrack.java",
593 ] 590 ]
594 } 591 }
595
596 } # enable_webrtc 592 } # enable_webrtc
597
598 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block. 593 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block.
OLDNEW
« no previous file with comments | « third_party/libaddressinput/BUILD.gn ('k') | third_party/libpng/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698