OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
11 import("//build/config/mips.gni") | 11 import("//build/config/mips.gni") |
12 import("//build_overrides/webrtc.gni") | 12 import("//build_overrides/webrtc.gni") |
13 | 13 |
14 declare_args() { | 14 declare_args() { |
15 # Disable this to avoid building the Opus audio codec. | 15 # Disable this to avoid building the Opus audio codec. |
16 rtc_include_opus = true | 16 rtc_include_opus = true |
17 | 17 |
| 18 # Disable to use absolute header paths for some libraries. |
| 19 rtc_relative_path = true |
| 20 |
18 # Used to specify an external Jsoncpp include path when not compiling the | 21 # Used to specify an external Jsoncpp include path when not compiling the |
19 # library that comes with WebRTC (i.e. rtc_build_json == 0). | 22 # library that comes with WebRTC (i.e. rtc_build_json == 0). |
20 rtc_jsoncpp_root = "//third_party/jsoncpp/source/include" | 23 rtc_jsoncpp_root = "//third_party/jsoncpp/source/include" |
21 | 24 |
22 # Used to specify an external OpenSSL include path when not compiling the | 25 # Used to specify an external OpenSSL include path when not compiling the |
23 # library that comes with WebRTC (i.e. rtc_build_ssl == 0). | 26 # library that comes with WebRTC (i.e. rtc_build_ssl == 0). |
24 rtc_ssl_root = "" | 27 rtc_ssl_root = "" |
25 | 28 |
26 # Selects fixed-point code where possible. | 29 # Selects fixed-point code where possible. |
27 rtc_prefer_fixed_point = false | 30 rtc_prefer_fixed_point = false |
28 | 31 |
29 # Enable data logging. Produces text files with data logged within engines | 32 # Enable data logging. Produces text files with data logged within engines |
30 # which can be easily parsed for offline processing. | 33 # which can be easily parsed for offline processing. |
31 rtc_enable_data_logging = false | 34 rtc_enable_data_logging = false |
32 | 35 |
33 # Enables the use of protocol buffers for debug recordings. | 36 # Enables the use of protocol buffers for debug recordings. |
34 rtc_enable_protobuf = true | 37 rtc_enable_protobuf = true |
35 | 38 |
36 # Disable these to not build components which can be externally provided. | 39 # Disable these to not build components which can be externally provided. |
37 rtc_build_expat = true | 40 rtc_build_expat = true |
38 rtc_build_json = true | 41 rtc_build_json = true |
39 rtc_build_libjpeg = true | 42 rtc_build_libjpeg = true |
| 43 rtc_build_libsrtp = true |
40 rtc_build_libvpx = true | 44 rtc_build_libvpx = true |
41 rtc_build_libyuv = true | 45 rtc_build_libyuv = true |
42 rtc_build_openmax_dl = true | 46 rtc_build_openmax_dl = true |
43 rtc_build_opus = true | 47 rtc_build_opus = true |
44 rtc_build_ssl = true | 48 rtc_build_ssl = true |
| 49 rtc_build_usrsctp = true |
45 | 50 |
46 # Disable by default. | 51 # Disable by default. |
47 rtc_have_dbus_glib = false | 52 rtc_have_dbus_glib = false |
48 | 53 |
49 # Enable to use the Mozilla internal settings. | 54 # Enable to use the Mozilla internal settings. |
50 build_with_mozilla = false | 55 build_with_mozilla = false |
51 | 56 |
52 rtc_enable_android_opensl = false | 57 rtc_enable_android_opensl = false |
53 | 58 |
54 # Link-Time Optimizations. | 59 # Link-Time Optimizations. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on | 93 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on |
89 # all platforms except Android and iOS. Because FFmpeg can be built | 94 # all platforms except Android and iOS. Because FFmpeg can be built |
90 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a | 95 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a |
91 # value that includes H.264, for example "Chrome". If FFmpeg is built without | 96 # value that includes H.264, for example "Chrome". If FFmpeg is built without |
92 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See | 97 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See |
93 # also: |rtc_initialize_ffmpeg|. | 98 # also: |rtc_initialize_ffmpeg|. |
94 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. | 99 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. |
95 # http://www.openh264.org, https://www.ffmpeg.org/ | 100 # http://www.openh264.org, https://www.ffmpeg.org/ |
96 rtc_use_h264 = proprietary_codecs && !is_android && !is_ios | 101 rtc_use_h264 = proprietary_codecs && !is_android && !is_ios |
97 | 102 |
| 103 # Determines whether QUIC code will be built. |
| 104 rtc_use_quic = false |
| 105 |
98 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done | 106 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done |
99 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must | 107 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must |
100 # only be initialized once. Projects that initialize FFmpeg externally, such | 108 # only be initialized once. Projects that initialize FFmpeg externally, such |
101 # as Chromium, must turn this flag off so that WebRTC does not also | 109 # as Chromium, must turn this flag off so that WebRTC does not also |
102 # initialize. | 110 # initialize. |
103 rtc_initialize_ffmpeg = !build_with_chromium | 111 rtc_initialize_ffmpeg = !build_with_chromium |
| 112 |
| 113 # Build sources requiring GTK. NOTICE: This is not present in Chrome OS |
| 114 # build environments, even if available for Chromium builds. |
| 115 rtc_use_gtk = !build_with_chromium |
104 } | 116 } |
105 | 117 |
106 # A second declare_args block, so that declarations within it can | 118 # A second declare_args block, so that declarations within it can |
107 # depend on the possibly overridden variables in the first | 119 # depend on the possibly overridden variables in the first |
108 # declare_args block. | 120 # declare_args block. |
109 declare_args() { | 121 declare_args() { |
110 # Include the iLBC audio codec? | 122 # Include the iLBC audio codec? |
111 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 123 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
112 } | 124 } |
113 | 125 |
114 # Make it possible to provide custom locations for some libraries (move these | 126 # Make it possible to provide custom locations for some libraries (move these |
115 # up into declare_args should we need to actually use them for the GN build). | 127 # up into declare_args should we need to actually use them for the GN build). |
116 rtc_libvpx_dir = "//third_party/libvpx" | 128 rtc_libvpx_dir = "//third_party/libvpx" |
117 rtc_libyuv_dir = "//third_party/libyuv" | 129 rtc_libyuv_dir = "//third_party/libyuv" |
118 rtc_opus_dir = "//third_party/opus" | 130 rtc_opus_dir = "//third_party/opus" |
OLD | NEW |