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 |
11 { | 11 { |
12 # Nesting is required in order to use variables for setting other variables. | 12 # Nesting is required in order to use variables for setting other variables. |
13 'variables': { | 13 'variables': { |
14 'variables': { | 14 'variables': { |
15 'variables': { | 15 'variables': { |
16 'variables': { | 16 'variables': { |
17 # This will already be set to zero by supplement.gypi | 17 # This will already be set to zero by supplement.gypi |
18 'build_with_chromium%': 1, | 18 'build_with_chromium%': 1, |
19 }, | 19 }, |
20 'build_with_chromium%': '<(build_with_chromium)', | 20 'build_with_chromium%': '<(build_with_chromium)', |
21 | 21 |
| 22 # Enable to use the Mozilla internal settings. |
| 23 'build_with_mozilla%': 0, |
| 24 |
22 'conditions': [ | 25 'conditions': [ |
23 ['build_with_chromium==1', { | 26 ['build_with_chromium==1', { |
24 'webrtc_root%': '<(DEPTH)/third_party/webrtc', | 27 'webrtc_root%': '<(DEPTH)/third_party/webrtc', |
25 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', | 28 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', |
26 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', | 29 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', |
27 }, { | 30 }, { |
28 'webrtc_root%': '<(DEPTH)/webrtc', | 31 'webrtc_root%': '<(DEPTH)/webrtc', |
29 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', | 32 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', |
30 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, | 33 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, |
31 }], | 34 }], |
32 ], | 35 ], |
33 }, | 36 }, |
34 'build_with_chromium%': '<(build_with_chromium)', | 37 'build_with_chromium%': '<(build_with_chromium)', |
| 38 'build_with_mozilla%': '<(build_with_mozilla)', |
35 'webrtc_root%': '<(webrtc_root)', | 39 'webrtc_root%': '<(webrtc_root)', |
36 'apk_tests_path%': '<(apk_tests_path)', | 40 'apk_tests_path%': '<(apk_tests_path)', |
37 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 41 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
38 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', | 42 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', |
39 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', | 43 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', |
40 'include_opus%': 1, | 44 'include_opus%': 1, |
41 'opus_dir%': '<(DEPTH)/third_party/opus', | 45 'opus_dir%': '<(DEPTH)/third_party/opus', |
42 | 46 |
43 # Enable to use the Mozilla internal settings. | 47 # Include the iLBC audio codec? |
44 'build_with_mozilla%': 0, | 48 'conditions': [ |
| 49 ['build_with_chromium==1 or build_with_mozilla==1', { |
| 50 'include_ilbc%': 0, |
| 51 }, { |
| 52 'include_ilbc%': 1, |
| 53 }], |
| 54 ], |
45 }, | 55 }, |
46 'build_with_chromium%': '<(build_with_chromium)', | 56 'build_with_chromium%': '<(build_with_chromium)', |
47 'build_with_mozilla%': '<(build_with_mozilla)', | 57 'build_with_mozilla%': '<(build_with_mozilla)', |
48 'webrtc_root%': '<(webrtc_root)', | 58 'webrtc_root%': '<(webrtc_root)', |
49 'apk_tests_path%': '<(apk_tests_path)', | 59 'apk_tests_path%': '<(apk_tests_path)', |
50 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 60 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
51 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', | 61 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', |
52 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', | 62 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', |
| 63 'include_ilbc%': '<(include_ilbc)', |
53 'include_opus%': '<(include_opus)', | 64 'include_opus%': '<(include_opus)', |
54 'rtc_relative_path%': 1, | 65 'rtc_relative_path%': 1, |
55 'external_libraries%': '0', | 66 'external_libraries%': '0', |
56 'json_root%': '<(DEPTH)/third_party/jsoncpp/source/include/', | 67 'json_root%': '<(DEPTH)/third_party/jsoncpp/source/include/', |
57 # openssl needs to be defined or gyp will complain. Is is only used when | 68 # openssl needs to be defined or gyp will complain. Is is only used when |
58 # when providing external libraries so just use current directory as a | 69 # when providing external libraries so just use current directory as a |
59 # placeholder. | 70 # placeholder. |
60 'ssl_root%': '.', | 71 'ssl_root%': '.', |
61 | 72 |
62 # The Chromium common.gypi we use treats all gyp files without | 73 # The Chromium common.gypi we use treats all gyp files without |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 # of a more specific macro. | 461 # of a more specific macro. |
451 'defines': [ | 462 'defines': [ |
452 'WEBRTC_POSIX', | 463 'WEBRTC_POSIX', |
453 ], | 464 ], |
454 }], | 465 }], |
455 ], | 466 ], |
456 }, | 467 }, |
457 }, # target_defaults | 468 }, # target_defaults |
458 } | 469 } |
459 | 470 |
OLD | NEW |