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