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

Side by Side Diff: webrtc/modules/audio_device/BUILD.gn

Issue 2610823002: Fixing package-boundary violation with srjar_deps (Closed)
Patch Set: Created 3 years, 11 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
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 import("../../build/webrtc.gni") 9 import("//webrtc/build/webrtc.gni")
kjellander_webrtc 2017/01/04 14:25:21 Please restore this one. Otherwise it'll break in
mbonadei 2017/01/04 15:19:06 Acknowledged. Ok, I was wondering why there was
10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni")
10 12
11 config("audio_device_config") { 13 config("audio_device_config") {
12 include_dirs = [ 14 include_dirs = [
13 "../include", 15 "../include",
14 "include", 16 "include",
15 "dummy", # Contains dummy audio device implementations. 17 "dummy", # Contains dummy audio device implementations.
16 ] 18 ]
17 if (is_ios) { 19 if (is_ios) {
18 # GN orders flags on a target before flags from configs. In order to be able 20 # GN orders flags on a target before flags from configs. In order to be able
19 # suppress the -Wthread-safety-analysis warning, it has come from a config 21 # suppress the -Wthread-safety-analysis warning, it has come from a config
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 "../../system_wrappers", 291 "../../system_wrappers",
290 "../../test:test_main", 292 "../../test:test_main",
291 "../../test:test_support", 293 "../../test:test_support",
292 "../rtp_rtcp", 294 "../rtp_rtcp",
293 "../utility", 295 "../utility",
294 "//testing/gtest", 296 "//testing/gtest",
295 ] 297 ]
296 public_configs = [ ":audio_device_config" ] 298 public_configs = [ ":audio_device_config" ]
297 } 299 }
298 } 300 }
301
302 if (is_android) {
303 template("android_shared_srcjar") {
kjellander_webrtc 2017/01/04 14:25:21 Let's put this template into webrtc/build/webrtc.g
mbonadei 2017/01/04 15:19:06 Acknowledged.
304 action(target_name) {
305 check_includes = false
306 set_sources_assignment_filter([])
307 assert(defined(invoker.sources))
308
309 forward_variables_from(invoker,
310 [
311 "sources",
312 "testonly",
313 "visibility",
314 ])
315 script = "//webrtc/generate_srcjar.py"
316 _srcjar_path = "${target_gen_dir}/${target_name}.srcjar"
317 _rebased_srcjar_path = rebase_path(_srcjar_path, root_build_dir)
318 _rebased_sources = rebase_path(invoker.sources, root_build_dir)
319
320 args = [ "--srcjar=$_rebased_srcjar_path" ] + _rebased_sources
321
322 outputs = [
323 _srcjar_path,
324 ]
325 }
326 }
327
328 android_shared_srcjar("audio_device_java") {
329 sources = [
330 "android/java/src/org/webrtc/voiceengine/BuildInfo.java",
331 "android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
332 "android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
333 "android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
334 "android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
335 "android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
336 ]
337 }
338 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698