OLD | NEW |
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 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 # This file contains common settings for building WebRTC components. | 9 # This file contains common settings for building WebRTC components. |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 ['build_with_chromium==1', { | 35 ['build_with_chromium==1', { |
36 'webrtc_root%': '<(DEPTH)/third_party/webrtc', | 36 'webrtc_root%': '<(DEPTH)/third_party/webrtc', |
37 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', | 37 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', |
38 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', | 38 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', |
39 }, { | 39 }, { |
40 'webrtc_root%': '<(DEPTH)/webrtc', | 40 'webrtc_root%': '<(DEPTH)/webrtc', |
41 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', | 41 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', |
42 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, | 42 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, |
43 }], | 43 }], |
| 44 |
| 45 # Controls whether we use libevent on posix platforms. |
| 46 ['OS=="win" or OS=="mac" or OS=="ios"', { |
| 47 'build_libevent%': 0, |
| 48 }, { |
| 49 'build_libevent%': 1, |
| 50 }], |
44 ], | 51 ], |
45 }, | 52 }, |
46 'build_with_chromium%': '<(build_with_chromium)', | 53 'build_with_chromium%': '<(build_with_chromium)', |
47 'build_with_mozilla%': '<(build_with_mozilla)', | 54 'build_with_mozilla%': '<(build_with_mozilla)', |
| 55 'build_libevent%': '<(build_libevent)', |
48 'webrtc_root%': '<(webrtc_root)', | 56 'webrtc_root%': '<(webrtc_root)', |
49 'apk_tests_path%': '<(apk_tests_path)', | 57 'apk_tests_path%': '<(apk_tests_path)', |
50 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 58 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
51 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', | 59 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', |
52 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', | 60 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', |
53 'include_ilbc%': '<(include_ilbc)', | 61 'include_ilbc%': '<(include_ilbc)', |
54 'include_opus%': '<(include_opus)', | 62 'include_opus%': '<(include_opus)', |
55 'opus_dir%': '<(DEPTH)/third_party/opus', | 63 'opus_dir%': '<(DEPTH)/third_party/opus', |
56 }, | 64 }, |
57 'build_with_chromium%': '<(build_with_chromium)', | 65 'build_with_chromium%': '<(build_with_chromium)', |
58 'build_with_mozilla%': '<(build_with_mozilla)', | 66 'build_with_mozilla%': '<(build_with_mozilla)', |
| 67 'build_libevent%': '<(build_libevent)', |
59 'webrtc_root%': '<(webrtc_root)', | 68 'webrtc_root%': '<(webrtc_root)', |
60 'apk_tests_path%': '<(apk_tests_path)', | 69 'apk_tests_path%': '<(apk_tests_path)', |
61 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', | 70 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', |
62 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 71 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
63 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', | 72 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', |
64 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', | 73 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', |
65 'include_ilbc%': '<(include_ilbc)', | 74 'include_ilbc%': '<(include_ilbc)', |
66 'include_opus%': '<(include_opus)', | 75 'include_opus%': '<(include_opus)', |
67 'rtc_relative_path%': 1, | 76 'rtc_relative_path%': 1, |
68 'external_libraries%': '0', | 77 'external_libraries%': '0', |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 ], | 319 ], |
311 }], | 320 }], |
312 ['clang==1', { | 321 ['clang==1', { |
313 'cflags': [ | 322 'cflags': [ |
314 '-Wimplicit-fallthrough', | 323 '-Wimplicit-fallthrough', |
315 '-Wthread-safety', | 324 '-Wthread-safety', |
316 ], | 325 ], |
317 }], | 326 }], |
318 ], | 327 ], |
319 }], | 328 }], |
| 329 ['build_libevent==1', { |
| 330 'defines': [ |
| 331 'WEBRTC_BUILD_LIBEVENT', |
| 332 ], |
| 333 }], |
320 ['target_arch=="arm64"', { | 334 ['target_arch=="arm64"', { |
321 'defines': [ | 335 'defines': [ |
322 'WEBRTC_ARCH_ARM64', | 336 'WEBRTC_ARCH_ARM64', |
323 'WEBRTC_HAS_NEON', | 337 'WEBRTC_HAS_NEON', |
324 ], | 338 ], |
325 }], | 339 }], |
326 ['target_arch=="arm"', { | 340 ['target_arch=="arm"', { |
327 'defines': [ | 341 'defines': [ |
328 'WEBRTC_ARCH_ARM', | 342 'WEBRTC_ARCH_ARM', |
329 ], | 343 ], |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 # For access to standard POSIXish features, use WEBRTC_POSIX instead | 516 # For access to standard POSIXish features, use WEBRTC_POSIX instead |
503 # of a more specific macro. | 517 # of a more specific macro. |
504 'defines': [ | 518 'defines': [ |
505 'WEBRTC_POSIX', | 519 'WEBRTC_POSIX', |
506 ], | 520 ], |
507 }], | 521 }], |
508 ], | 522 ], |
509 }, | 523 }, |
510 }, # target_defaults | 524 }, # target_defaults |
511 } | 525 } |
OLD | NEW |