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 |
| 42 rtc_build_libjpeg = true |
| 43 rtc_build_libsrtp = true |
39 rtc_build_libvpx = true | 44 rtc_build_libvpx = true |
40 rtc_build_libyuv = true | 45 rtc_build_libyuv = true |
41 rtc_build_openmax_dl = true | 46 rtc_build_openmax_dl = true |
42 rtc_build_opus = true | 47 rtc_build_opus = true |
43 rtc_build_ssl = true | 48 rtc_build_ssl = true |
| 49 rtc_build_usrsctp = true |
44 | 50 |
45 # Disable by default. | 51 # Disable by default. |
46 rtc_have_dbus_glib = false | 52 rtc_have_dbus_glib = false |
47 | 53 |
48 # Enable to use the Mozilla internal settings. | 54 # Enable to use the Mozilla internal settings. |
49 build_with_mozilla = false | 55 build_with_mozilla = false |
50 | 56 |
51 rtc_enable_android_opensl = false | 57 rtc_enable_android_opensl = false |
52 | 58 |
53 # Link-Time Optimizations. | 59 # Link-Time Optimizations. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on | 100 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on |
95 # all platforms except Android and iOS. Because FFmpeg can be built | 101 # all platforms except Android and iOS. Because FFmpeg can be built |
96 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a | 102 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a |
97 # value that includes H.264, for example "Chrome". If FFmpeg is built without | 103 # value that includes H.264, for example "Chrome". If FFmpeg is built without |
98 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See | 104 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See |
99 # also: |rtc_initialize_ffmpeg|. | 105 # also: |rtc_initialize_ffmpeg|. |
100 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. | 106 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. |
101 # http://www.openh264.org, https://www.ffmpeg.org/ | 107 # http://www.openh264.org, https://www.ffmpeg.org/ |
102 rtc_use_h264 = proprietary_codecs && !is_android && !is_ios | 108 rtc_use_h264 = proprietary_codecs && !is_android && !is_ios |
103 | 109 |
| 110 # Determines whether QUIC code will be built. |
| 111 rtc_use_quic = false |
| 112 |
104 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done | 113 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done |
105 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must | 114 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must |
106 # only be initialized once. Projects that initialize FFmpeg externally, such | 115 # only be initialized once. Projects that initialize FFmpeg externally, such |
107 # as Chromium, must turn this flag off so that WebRTC does not also | 116 # as Chromium, must turn this flag off so that WebRTC does not also |
108 # initialize. | 117 # initialize. |
109 rtc_initialize_ffmpeg = !build_with_chromium | 118 rtc_initialize_ffmpeg = !build_with_chromium |
| 119 |
| 120 # Build sources requiring GTK. NOTICE: This is not present in Chrome OS |
| 121 # build environments, even if available for Chromium builds. |
| 122 rtc_use_gtk = !build_with_chromium |
110 } | 123 } |
111 | 124 |
112 # A second declare_args block, so that declarations within it can | 125 # A second declare_args block, so that declarations within it can |
113 # depend on the possibly overridden variables in the first | 126 # depend on the possibly overridden variables in the first |
114 # declare_args block. | 127 # declare_args block. |
115 declare_args() { | 128 declare_args() { |
116 # Include the iLBC audio codec? | 129 # Include the iLBC audio codec? |
117 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 130 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
118 } | 131 } |
119 | 132 |
120 # Make it possible to provide custom locations for some libraries (move these | 133 # Make it possible to provide custom locations for some libraries (move these |
121 # up into declare_args should we need to actually use them for the GN build). | 134 # up into declare_args should we need to actually use them for the GN build). |
122 rtc_libvpx_dir = "//third_party/libvpx" | 135 rtc_libvpx_dir = "//third_party/libvpx" |
123 rtc_libyuv_dir = "//third_party/libyuv" | 136 rtc_libyuv_dir = "//third_party/libyuv" |
124 rtc_opus_dir = "//third_party/opus" | 137 rtc_opus_dir = "//third_party/opus" |
OLD | NEW |