OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../build/win_precompile.gypi', | 7 '../../build/win_precompile.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'enabled_libjingle_device_manager%': 0, | 10 'enabled_libjingle_device_manager%': 0, |
11 'libjingle_additional_deps%': [], | 11 'libjingle_additional_deps%': [], |
12 'libjingle_peerconnection_additional_deps%': [], | 12 'libjingle_peerconnection_additional_deps%': [], |
13 'libjingle_source%': "source", | 13 'libjingle_source%': "source", |
14 'libpeer_target_type%': 'static_library', | 14 'libpeer_target_type%': 'static_library', |
15 'libpeer_allocator_shim%': 0, | 15 'libpeer_allocator_shim%': 0, |
16 }, | 16 }, |
17 'target_defaults': { | 17 'target_defaults': { |
18 'defines': [ | 18 'defines': [ |
19 'EXPAT_RELATIVE_PATH', | 19 'EXPAT_RELATIVE_PATH', |
20 'FEATURE_ENABLE_SSL', | 20 'FEATURE_ENABLE_SSL', |
21 'GTEST_RELATIVE_PATH', | 21 'GTEST_RELATIVE_PATH', |
22 'HAVE_SRTP', | 22 'HAVE_SRTP', |
23 'HAVE_WEBRTC_VIDEO', | 23 'HAVE_WEBRTC_VIDEO', |
24 'HAVE_WEBRTC_VOICE', | 24 'HAVE_WEBRTC_VOICE', |
25 'LOGGING_INSIDE_LIBJINGLE', | 25 'LOGGING_INSIDE_WEBRTC', |
26 'NO_MAIN_THREAD_WRAPPING', | 26 'NO_MAIN_THREAD_WRAPPING', |
27 'NO_SOUND_SYSTEM', | 27 'NO_SOUND_SYSTEM', |
28 'SRTP_RELATIVE_PATH', | 28 'SRTP_RELATIVE_PATH', |
29 'USE_WEBRTC_DEV_BRANCH', | 29 'USE_WEBRTC_DEV_BRANCH', |
30 'ENABLE_EXTERNAL_AUTH', | 30 'ENABLE_EXTERNAL_AUTH', |
31 ], | 31 ], |
32 'configurations': { | 32 'configurations': { |
33 'Debug': { | 33 'Debug': { |
34 'defines': [ | 34 'defines': [ |
35 # TODO(sergeyu): Fix libjingle to use NDEBUG instead of | 35 # TODO(sergeyu): Fix libjingle to use NDEBUG instead of |
36 # _DEBUG and remove this define. See below as well. | 36 # _DEBUG and remove this define. See below as well. |
37 '_DEBUG', | 37 '_DEBUG', |
38 ], | 38 ], |
39 } | 39 } |
40 }, | 40 }, |
41 'include_dirs': [ | 41 'include_dirs': [ |
42 './overrides', | 42 './overrides', |
| 43 '../../third_party/webrtc/overrides', |
43 './<(libjingle_source)', | 44 './<(libjingle_source)', |
44 '../../third_party/webrtc/overrides', | |
45 '../..', | 45 '../..', |
46 '../../testing/gtest/include', | 46 '../../testing/gtest/include', |
47 '../../third_party', | 47 '../../third_party', |
48 '../../third_party/libyuv/include', | 48 '../../third_party/libyuv/include', |
49 '../../third_party/usrsctp', | 49 '../../third_party/usrsctp', |
50 '../../third_party/webrtc', | |
51 ], | 50 ], |
52 'dependencies': [ | 51 'dependencies': [ |
53 '<(DEPTH)/base/base.gyp:base', | 52 '<(DEPTH)/base/base.gyp:base', |
54 '<(DEPTH)/net/net.gyp:net', | 53 '<(DEPTH)/net/net.gyp:net', |
55 '<(DEPTH)/third_party/expat/expat.gyp:expat', | 54 '<(DEPTH)/third_party/expat/expat.gyp:expat', |
56 ], | 55 ], |
57 'export_dependent_settings': [ | 56 'export_dependent_settings': [ |
58 '<(DEPTH)/third_party/expat/expat.gyp:expat', | 57 '<(DEPTH)/third_party/expat/expat.gyp:expat', |
59 ], | 58 ], |
60 'direct_dependent_settings': { | 59 'direct_dependent_settings': { |
61 'include_dirs': [ | 60 'include_dirs': [ |
| 61 '../../third_party/webrtc/overrides', |
62 './overrides', | 62 './overrides', |
63 './<(libjingle_source)', | 63 './<(libjingle_source)', |
64 '../../third_party/webrtc/overrides', | |
65 '../..', | 64 '../..', |
66 '../../testing/gtest/include', | 65 '../../testing/gtest/include', |
67 '../../third_party', | 66 '../../third_party', |
68 '../../third_party/webrtc', | |
69 ], | 67 ], |
70 'defines': [ | 68 'defines': [ |
71 'FEATURE_ENABLE_SSL', | 69 'FEATURE_ENABLE_SSL', |
72 'FEATURE_ENABLE_VOICEMAIL', | 70 'FEATURE_ENABLE_VOICEMAIL', |
73 'EXPAT_RELATIVE_PATH', | 71 'EXPAT_RELATIVE_PATH', |
74 'GTEST_RELATIVE_PATH', | 72 'GTEST_RELATIVE_PATH', |
75 'NO_MAIN_THREAD_WRAPPING', | 73 'NO_MAIN_THREAD_WRAPPING', |
76 'NO_SOUND_SYSTEM', | 74 'NO_SOUND_SYSTEM', |
77 ], | 75 ], |
78 'conditions': [ | 76 'conditions': [ |
(...skipping 12 matching lines...) Expand all Loading... |
91 ], | 89 ], |
92 'defines': [ | 90 'defines': [ |
93 '_CRT_SECURE_NO_WARNINGS', # Suppres warnings about _vsnprinf | 91 '_CRT_SECURE_NO_WARNINGS', # Suppres warnings about _vsnprinf |
94 ], | 92 ], |
95 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 93 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
96 'msvs_disabled_warnings': [ 4267 ], | 94 'msvs_disabled_warnings': [ 4267 ], |
97 }], | 95 }], |
98 ['OS=="linux"', { | 96 ['OS=="linux"', { |
99 'defines': [ | 97 'defines': [ |
100 'LINUX', | 98 'LINUX', |
| 99 'WEBRTC_LINUX', |
101 ], | 100 ], |
102 }], | 101 }], |
103 ['OS=="mac"', { | 102 ['OS=="mac"', { |
104 'defines': [ | 103 'defines': [ |
105 'OSX', | 104 'OSX', |
| 105 'WEBRTC_MAC', |
| 106 ], |
| 107 }], |
| 108 ['OS=="ios"', { |
| 109 'defines': [ |
| 110 'IOS', |
| 111 'WEBRTC_MAC', |
| 112 'WEBRTC_IOS', |
| 113 ], |
| 114 }], |
| 115 ['OS=="win"', { |
| 116 'defines': [ |
| 117 'WEBRTC_WIN', |
106 ], | 118 ], |
107 }], | 119 }], |
108 ['OS=="android"', { | 120 ['OS=="android"', { |
109 'defines': [ | 121 'defines': [ |
110 'ANDROID', | 122 'ANDROID', |
111 ], | 123 ], |
112 }], | 124 }], |
113 ['os_posix==1', { | 125 ['os_posix==1', { |
114 'defines': [ | 126 'defines': [ |
115 'POSIX', | 127 'POSIX', |
| 128 'WEBRTC_POSIX', |
116 ], | 129 ], |
117 }], | 130 }], |
118 ['os_bsd==1', { | 131 ['os_bsd==1', { |
119 'defines': [ | 132 'defines': [ |
120 'BSD', | 133 'BSD', |
121 ], | 134 ], |
122 }], | 135 }], |
123 ['OS=="openbsd"', { | 136 ['OS=="openbsd"', { |
124 'defines': [ | 137 'defines': [ |
125 'OPENBSD', | 138 'OPENBSD', |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 '-Wstring-conversion', | 213 '-Wstring-conversion', |
201 ], | 214 ], |
202 }, | 215 }, |
203 'cflags!': [ | 216 'cflags!': [ |
204 '-Wstring-conversion', | 217 '-Wstring-conversion', |
205 ], | 218 ], |
206 }], | 219 }], |
207 ['OS=="linux"', { | 220 ['OS=="linux"', { |
208 'defines': [ | 221 'defines': [ |
209 'LINUX', | 222 'LINUX', |
| 223 'WEBRTC_LINUX', |
210 ], | 224 ], |
211 }], | 225 }], |
212 ['OS=="mac"', { | 226 ['OS=="mac"', { |
213 'defines': [ | 227 'defines': [ |
214 'OSX', | 228 'OSX', |
| 229 'WEBRTC_MAC', |
| 230 ], |
| 231 }], |
| 232 ['OS=="win"', { |
| 233 'defines': [ |
| 234 'WEBRTC_WIN', |
215 ], | 235 ], |
216 }], | 236 }], |
217 ['OS=="ios"', { | 237 ['OS=="ios"', { |
218 'defines': [ | 238 'defines': [ |
219 'IOS', | 239 'IOS', |
| 240 'WEBRTC_MAC', |
| 241 'WEBRTC_IOS', |
220 ], | 242 ], |
221 }], | 243 }], |
222 ['os_posix == 1', { | 244 ['os_posix == 1', { |
223 'defines': [ | 245 'defines': [ |
224 'POSIX', | 246 'POSIX', |
| 247 'WEBRTC_POSIX', |
225 ], | 248 ], |
226 }], | 249 }], |
227 ['os_bsd==1', { | 250 ['os_bsd==1', { |
228 'defines': [ | 251 'defines': [ |
229 'BSD', | 252 'BSD', |
230 ], | 253 ], |
231 }], | 254 }], |
232 ['OS=="openbsd"', { | 255 ['OS=="openbsd"', { |
233 'defines': [ | 256 'defines': [ |
234 'OPENBSD', | 257 'OPENBSD', |
235 ], | 258 ], |
236 }], | 259 }], |
237 ['OS=="freebsd"', { | 260 ['OS=="freebsd"', { |
238 'defines': [ | 261 'defines': [ |
239 'FREEBSD', | 262 'FREEBSD', |
240 ], | 263 ], |
241 }], | 264 }], |
242 ], | 265 ], |
243 }, | 266 }, |
244 'targets': [ | 267 'targets': [ |
245 { | 268 { |
246 'target_name': 'libjingle', | 269 'target_name': 'libjingle', |
247 'type': 'static_library', | 270 'type': 'static_library', |
248 'includes': [ 'libjingle_common.gypi' ], | 271 'includes': [ 'libjingle_common.gypi' ], |
249 'sources': [ | |
250 'overrides/talk/base/basictypes.h', | |
251 'overrides/talk/base/constructormagic.h', | |
252 'overrides/talk/base/win32socketinit.cc', | |
253 | |
254 # Overrides logging.h/.cc because libjingle logging should be done to | |
255 # the same place as the chromium logging. | |
256 'overrides/talk/base/logging.cc', | |
257 'overrides/talk/base/logging.h', | |
258 ], | |
259 'sources!' : [ | 272 'sources!' : [ |
260 # Compiled as part of libjingle_p2p_constants. | 273 # Compiled as part of libjingle_p2p_constants. |
261 '<(libjingle_source)/talk/p2p/base/constants.cc', | 274 '<(libjingle_source)/talk/p2p/base/constants.cc', |
262 '<(libjingle_source)/talk/p2p/base/constants.h', | 275 '<(libjingle_source)/talk/p2p/base/constants.h', |
263 | |
264 # Replaced with logging.cc in the overrides. | |
265 '<(libjingle_source)/talk/base/logging.h', | |
266 '<(libjingle_source)/talk/base/logging.cc', | |
267 ], | 276 ], |
268 'dependencies': [ | 277 'dependencies': [ |
| 278 '<(DEPTH)/third_party/webrtc/base/base.gyp:webrtc_base', |
269 'libjingle_p2p_constants', | 279 'libjingle_p2p_constants', |
270 '<@(libjingle_additional_deps)', | 280 '<@(libjingle_additional_deps)', |
271 ], | 281 ], |
272 }, # target libjingle | 282 }, # target libjingle |
273 # This has to be is a separate project due to a bug in MSVS 2008 and the | 283 # This has to be is a separate project due to a bug in MSVS 2008 and the |
274 # current toolset on android. The problem is that we have two files named | 284 # current toolset on android. The problem is that we have two files named |
275 # "constants.cc" and MSVS/android doesn't handle this properly. | 285 # "constants.cc" and MSVS/android doesn't handle this properly. |
276 # GYP currently has guards to catch this, so if you want to remove it, | 286 # GYP currently has guards to catch this, so if you want to remove it, |
277 # run GYP and if GYP has removed the validation check, then we can assume | 287 # run GYP and if GYP has removed the validation check, then we can assume |
278 # that the toolchains have been fixed (we currently use VS2010 and later, | 288 # that the toolchains have been fixed (we currently use VS2010 and later, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.cc', | 516 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.cc', |
507 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.h', | 517 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.h', |
508 '<(libjingle_source)/talk/sound/soundsysteminterface.cc', | 518 '<(libjingle_source)/talk/sound/soundsysteminterface.cc', |
509 '<(libjingle_source)/talk/sound/soundsysteminterface.h', | 519 '<(libjingle_source)/talk/sound/soundsysteminterface.h', |
510 '<(libjingle_source)/talk/sound/soundsystemproxy.cc', | 520 '<(libjingle_source)/talk/sound/soundsystemproxy.cc', |
511 '<(libjingle_source)/talk/sound/soundsystemproxy.h', | 521 '<(libjingle_source)/talk/sound/soundsystemproxy.h', |
512 ], | 522 ], |
513 'conditions': [ | 523 'conditions': [ |
514 ['OS=="win"', { | 524 ['OS=="win"', { |
515 'sources': [ | 525 'sources': [ |
516 '<(libjingle_source)/talk/base/win32window.cc', | |
517 '<(libjingle_source)/talk/base/win32window.h', | |
518 '<(libjingle_source)/talk/base/win32windowpicker.cc', | |
519 '<(libjingle_source)/talk/base/win32windowpicker.h', | |
520 '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc', | 526 '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc', |
521 '<(libjingle_source)/talk/media/devices/win32devicemanager.c
c', | 527 '<(libjingle_source)/talk/media/devices/win32devicemanager.c
c', |
522 '<(libjingle_source)/talk/media/devices/win32devicemanager.h
', | 528 '<(libjingle_source)/talk/media/devices/win32devicemanager.h
', |
523 ], | 529 ], |
524 }], | 530 }], |
525 ['OS=="linux"', { | 531 ['OS=="linux"', { |
526 'sources': [ | 532 'sources': [ |
527 '<(libjingle_source)/talk/base/linuxwindowpicker.cc', | |
528 '<(libjingle_source)/talk/base/linuxwindowpicker.h', | |
529 '<(libjingle_source)/talk/media/devices/libudevsymboltable.c
c', | 533 '<(libjingle_source)/talk/media/devices/libudevsymboltable.c
c', |
530 '<(libjingle_source)/talk/media/devices/libudevsymboltable.h
', | 534 '<(libjingle_source)/talk/media/devices/libudevsymboltable.h
', |
531 '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc', | 535 '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc', |
532 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.c
c', | 536 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.c
c', |
533 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h
', | 537 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h
', |
534 '<(libjingle_source)/talk/media/devices/v4llookup.cc', | 538 '<(libjingle_source)/talk/media/devices/v4llookup.cc', |
535 '<(libjingle_source)/talk/media/devices/v4llookup.h', | 539 '<(libjingle_source)/talk/media/devices/v4llookup.h', |
536 '<(libjingle_source)/talk/sound/alsasoundsystem.cc', | 540 '<(libjingle_source)/talk/sound/alsasoundsystem.cc', |
537 '<(libjingle_source)/talk/sound/alsasoundsystem.h', | 541 '<(libjingle_source)/talk/sound/alsasoundsystem.h', |
538 '<(libjingle_source)/talk/sound/alsasymboltable.cc', | 542 '<(libjingle_source)/talk/sound/alsasymboltable.cc', |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 # in this directory and not lib.target as will otherwise be | 652 # in this directory and not lib.target as will otherwise be |
649 # the case with make builds. | 653 # the case with make builds. |
650 'product_dir': '<(PRODUCT_DIR)/lib', | 654 'product_dir': '<(PRODUCT_DIR)/lib', |
651 }], | 655 }], |
652 ], | 656 ], |
653 }, # target libpeerconnection | 657 }, # target libpeerconnection |
654 ], | 658 ], |
655 }], | 659 }], |
656 ], | 660 ], |
657 } | 661 } |
OLD | NEW |