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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 ['target_arch == "ia32"', { | 208 ['target_arch == "ia32"', { |
196 'defines': [ | 209 'defines': [ |
197 '_USE_32BIT_TIME_T', | 210 '_USE_32BIT_TIME_T', |
198 ], | 211 ], |
199 }], | 212 }], |
200 ], | 213 ], |
201 }], | 214 }], |
202 ['OS=="linux"', { | 215 ['OS=="linux"', { |
203 'defines': [ | 216 'defines': [ |
204 'LINUX', | 217 'LINUX', |
| 218 'WEBRTC_LINUX', |
205 ], | 219 ], |
206 }], | 220 }], |
207 ['OS=="mac"', { | 221 ['OS=="mac"', { |
208 'defines': [ | 222 'defines': [ |
209 'OSX', | 223 'OSX', |
| 224 'WEBRTC_MAC', |
| 225 ], |
| 226 }], |
| 227 ['OS=="win"', { |
| 228 'defines': [ |
| 229 'WEBRTC_WIN', |
210 ], | 230 ], |
211 }], | 231 }], |
212 ['OS=="ios"', { | 232 ['OS=="ios"', { |
213 'defines': [ | 233 'defines': [ |
214 'IOS', | 234 'IOS', |
| 235 'WEBRTC_MAC', |
| 236 'WEBRTC_IOS', |
215 ], | 237 ], |
216 }], | 238 }], |
217 ['os_posix == 1', { | 239 ['os_posix == 1', { |
218 'defines': [ | 240 'defines': [ |
219 'POSIX', | 241 'POSIX', |
| 242 'WEBRTC_POSIX', |
220 ], | 243 ], |
221 }], | 244 }], |
222 ['os_bsd==1', { | 245 ['os_bsd==1', { |
223 'defines': [ | 246 'defines': [ |
224 'BSD', | 247 'BSD', |
225 ], | 248 ], |
226 }], | 249 }], |
227 ['OS=="openbsd"', { | 250 ['OS=="openbsd"', { |
228 'defines': [ | 251 'defines': [ |
229 'OPENBSD', | 252 'OPENBSD', |
230 ], | 253 ], |
231 }], | 254 }], |
232 ['OS=="freebsd"', { | 255 ['OS=="freebsd"', { |
233 'defines': [ | 256 'defines': [ |
234 'FREEBSD', | 257 'FREEBSD', |
235 ], | 258 ], |
236 }], | 259 }], |
237 ], | 260 ], |
238 }, | 261 }, |
239 'targets': [ | 262 'targets': [ |
240 { | 263 { |
241 'target_name': 'libjingle', | 264 'target_name': 'libjingle', |
242 'type': 'static_library', | 265 'type': 'static_library', |
243 'includes': [ 'libjingle_common.gypi' ], | 266 'includes': [ 'libjingle_common.gypi' ], |
244 'sources': [ | |
245 'overrides/talk/base/basictypes.h', | |
246 'overrides/talk/base/constructormagic.h', | |
247 'overrides/talk/base/win32socketinit.cc', | |
248 | |
249 # Overrides logging.h/.cc because libjingle logging should be done to | |
250 # the same place as the chromium logging. | |
251 'overrides/talk/base/logging.cc', | |
252 'overrides/talk/base/logging.h', | |
253 ], | |
254 'sources!' : [ | 267 'sources!' : [ |
255 # Compiled as part of libjingle_p2p_constants. | 268 # Compiled as part of libjingle_p2p_constants. |
256 '<(libjingle_source)/talk/p2p/base/constants.cc', | 269 '<(libjingle_source)/talk/p2p/base/constants.cc', |
257 '<(libjingle_source)/talk/p2p/base/constants.h', | 270 '<(libjingle_source)/talk/p2p/base/constants.h', |
258 | |
259 # Replaced with logging.cc in the overrides. | |
260 '<(libjingle_source)/talk/base/logging.h', | |
261 '<(libjingle_source)/talk/base/logging.cc', | |
262 ], | 271 ], |
263 'dependencies': [ | 272 'dependencies': [ |
| 273 '<(DEPTH)/third_party/webrtc/base/base.gyp:webrtc_base', |
264 'libjingle_p2p_constants', | 274 'libjingle_p2p_constants', |
265 '<@(libjingle_additional_deps)', | 275 '<@(libjingle_additional_deps)', |
266 ], | 276 ], |
267 }, # target libjingle | 277 }, # target libjingle |
268 # This has to be is a separate project due to a bug in MSVS 2008 and the | 278 # This has to be is a separate project due to a bug in MSVS 2008 and the |
269 # current toolset on android. The problem is that we have two files named | 279 # current toolset on android. The problem is that we have two files named |
270 # "constants.cc" and MSVS/android doesn't handle this properly. | 280 # "constants.cc" and MSVS/android doesn't handle this properly. |
271 # GYP currently has guards to catch this, so if you want to remove it, | 281 # GYP currently has guards to catch this, so if you want to remove it, |
272 # run GYP and if GYP has removed the validation check, then we can assume | 282 # run GYP and if GYP has removed the validation check, then we can assume |
273 # that the toolchains have been fixed (we currently use VS2010 and later, | 283 # 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... |
501 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.cc', | 511 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.cc', |
502 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.h', | 512 '<(libjingle_source)/talk/sound/platformsoundsystemfactory.h', |
503 '<(libjingle_source)/talk/sound/soundsysteminterface.cc', | 513 '<(libjingle_source)/talk/sound/soundsysteminterface.cc', |
504 '<(libjingle_source)/talk/sound/soundsysteminterface.h', | 514 '<(libjingle_source)/talk/sound/soundsysteminterface.h', |
505 '<(libjingle_source)/talk/sound/soundsystemproxy.cc', | 515 '<(libjingle_source)/talk/sound/soundsystemproxy.cc', |
506 '<(libjingle_source)/talk/sound/soundsystemproxy.h', | 516 '<(libjingle_source)/talk/sound/soundsystemproxy.h', |
507 ], | 517 ], |
508 'conditions': [ | 518 'conditions': [ |
509 ['OS=="win"', { | 519 ['OS=="win"', { |
510 'sources': [ | 520 'sources': [ |
511 '<(libjingle_source)/talk/base/win32window.cc', | |
512 '<(libjingle_source)/talk/base/win32window.h', | |
513 '<(libjingle_source)/talk/base/win32windowpicker.cc', | |
514 '<(libjingle_source)/talk/base/win32windowpicker.h', | |
515 '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc', | 521 '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc', |
516 '<(libjingle_source)/talk/media/devices/win32devicemanager.c
c', | 522 '<(libjingle_source)/talk/media/devices/win32devicemanager.c
c', |
517 '<(libjingle_source)/talk/media/devices/win32devicemanager.h
', | 523 '<(libjingle_source)/talk/media/devices/win32devicemanager.h
', |
518 ], | 524 ], |
519 }], | 525 }], |
520 ['OS=="linux"', { | 526 ['OS=="linux"', { |
521 'sources': [ | 527 'sources': [ |
522 '<(libjingle_source)/talk/base/linuxwindowpicker.cc', | |
523 '<(libjingle_source)/talk/base/linuxwindowpicker.h', | |
524 '<(libjingle_source)/talk/media/devices/libudevsymboltable.c
c', | 528 '<(libjingle_source)/talk/media/devices/libudevsymboltable.c
c', |
525 '<(libjingle_source)/talk/media/devices/libudevsymboltable.h
', | 529 '<(libjingle_source)/talk/media/devices/libudevsymboltable.h
', |
526 '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc', | 530 '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc', |
527 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.c
c', | 531 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.c
c', |
528 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h
', | 532 '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h
', |
529 '<(libjingle_source)/talk/media/devices/v4llookup.cc', | 533 '<(libjingle_source)/talk/media/devices/v4llookup.cc', |
530 '<(libjingle_source)/talk/media/devices/v4llookup.h', | 534 '<(libjingle_source)/talk/media/devices/v4llookup.h', |
531 '<(libjingle_source)/talk/sound/alsasoundsystem.cc', | 535 '<(libjingle_source)/talk/sound/alsasoundsystem.cc', |
532 '<(libjingle_source)/talk/sound/alsasoundsystem.h', | 536 '<(libjingle_source)/talk/sound/alsasoundsystem.h', |
533 '<(libjingle_source)/talk/sound/alsasymboltable.cc', | 537 '<(libjingle_source)/talk/sound/alsasymboltable.cc', |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 # in this directory and not lib.target as will otherwise be | 647 # in this directory and not lib.target as will otherwise be |
644 # the case with make builds. | 648 # the case with make builds. |
645 'product_dir': '<(PRODUCT_DIR)/lib', | 649 'product_dir': '<(PRODUCT_DIR)/lib', |
646 }], | 650 }], |
647 ], | 651 ], |
648 }, # target libpeerconnection | 652 }, # target libpeerconnection |
649 ], | 653 ], |
650 }], | 654 }], |
651 ], | 655 ], |
652 } | 656 } |
OLD | NEW |