Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: webrtc/BUILD.gn

Issue 1259683003: Includes webrtc/build/protoc.gypi instead of build/protoc.gypi (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/BUILD.gn » ('j') | webrtc/webrtc.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
10 10
11 import("//build/config/crypto.gni") 11 import("//build/config/crypto.gni")
12 import("//build/config/linux/pkg_config.gni") 12 import("//build/config/linux/pkg_config.gni")
13 import("build/webrtc.gni") 13 import("build/webrtc.gni")
14 import("//third_party/protobuf/proto_library.gni")
14 15
15 # Contains the defines and includes in common.gypi that are duplicated both as 16 # Contains the defines and includes in common.gypi that are duplicated both as
16 # target_defaults and direct_dependent_settings. 17 # target_defaults and direct_dependent_settings.
17 config("common_inherited_config") { 18 config("common_inherited_config") {
18 defines = [] 19 defines = []
19 if (build_with_mozilla) { 20 if (build_with_mozilla) {
20 defines += [ "WEBRTC_MOZILLA_BUILD" ] 21 defines += [ "WEBRTC_MOZILLA_BUILD" ]
21 } 22 }
22 if (build_with_chromium) { 23 if (build_with_chromium) {
23 defines = [ "WEBRTC_CHROMIUM_BUILD" ] 24 defines = [ "WEBRTC_CHROMIUM_BUILD" ]
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 169 }
169 170
170 source_set("webrtc") { 171 source_set("webrtc") {
171 sources = [ 172 sources = [
172 "call.h", 173 "call.h",
173 "config.h", 174 "config.h",
174 "frame_callback.h", 175 "frame_callback.h",
175 "transport.h", 176 "transport.h",
176 ] 177 ]
177 178
179 defines = []
178 configs += [ ":common_config" ] 180 configs += [ ":common_config" ]
179 public_configs = [ ":common_inherited_config" ] 181 public_configs = [ ":common_inherited_config" ]
180 182
181 deps = [ 183 deps = [
182 ":webrtc_common", 184 ":webrtc_common",
183 "base:rtc_base", 185 "base:rtc_base",
184 "common_audio", 186 "common_audio",
185 "common_video", 187 "common_video",
186 "modules/audio_coding", 188 "modules/audio_coding",
187 "modules/audio_conference_mixer", 189 "modules/audio_conference_mixer",
(...skipping 11 matching lines...) Expand all
199 "video", 201 "video",
200 "voice_engine", 202 "voice_engine",
201 ] 203 ]
202 204
203 if (build_with_chromium) { 205 if (build_with_chromium) {
204 deps += [ 206 deps += [
205 "modules/video_capture", 207 "modules/video_capture",
206 "modules/video_render", 208 "modules/video_render",
207 ] 209 ]
208 } 210 }
211
212 if (rtc_enable_protobuf) {
213 defines += [ "ENABLE_RTC_EVENT_LOG" ]
214 deps += [ ":rtc_event_log_proto" ]
215 }
209 } 216 }
210 217
211 if (!build_with_chromium) { 218 if (!build_with_chromium) {
212 executable("webrtc_tests") { 219 executable("webrtc_tests") {
213 testonly = true 220 testonly = true
214 deps = [ 221 deps = [
215 ":webrtc", 222 ":webrtc",
216 "modules/video_render:video_render_internal_impl", 223 "modules/video_render:video_render_internal_impl",
217 "modules/video_capture:video_capture_internal_impl", 224 "modules/video_capture:video_capture_internal_impl",
218 "test", 225 "test",
(...skipping 13 matching lines...) Expand all
232 239
233 configs += [ ":common_config" ] 240 configs += [ ":common_config" ]
234 public_configs = [ ":common_inherited_config" ] 241 public_configs = [ ":common_inherited_config" ]
235 } 242 }
236 243
237 source_set("gtest_prod") { 244 source_set("gtest_prod") {
238 sources = [ 245 sources = [
239 "test/testsupport/gtest_prod_util.h", 246 "test/testsupport/gtest_prod_util.h",
240 ] 247 ]
241 } 248 }
249
250 if (rtc_enable_protobuf) {
251 proto_library("rtc_event_log_proto") {
252 sources = [
253 "video/rtc_event_log.proto",
254 ]
255 proto_out_dir = "webrtc/video"
256 }
257 }
258
259 source_set("rtc_event_log") {
260 sources = [
261 "video/rtc_event_log.cc",
262 "video/rtc_event_log.h",
263 ]
264
265 defines = []
266 configs += [ ":common_config" ]
267 public_configs = [ ":common_inherited_config" ]
268
269 deps = [
270 ":webrtc_common",
271 ]
272
273 if (rtc_enable_protobuf) {
274 defines += [ "ENABLE_RTC_EVENT_LOG" ]
275 deps += [ ":rtc_event_log_proto" ]
276 }
277 if (is_clang) {
278 # Suppress warnings from Chrome's Clang plugins.
279 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
280 configs -= [ "//build/config/clang:find_bad_constructs" ]
281 }
282 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/BUILD.gn » ('j') | webrtc/webrtc.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698