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

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

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for Android Created 4 years, 3 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("../../build/webrtc.gni")
10 import("audio_coding.gni") 10 import("audio_coding.gni")
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 "../../system_wrappers", 974 "../../system_wrappers",
975 "../../system_wrappers:system_wrappers_default", 975 "../../system_wrappers:system_wrappers_default",
976 "../../test:test_support", 976 "../../test:test_support",
977 "../rtp_rtcp", 977 "../rtp_rtcp",
978 "//build/config/sanitizers:deps", 978 "//build/config/sanitizers:deps",
979 "//testing/gtest", 979 "//testing/gtest",
980 "//third_party/gflags:gflags", 980 "//third_party/gflags:gflags",
981 ] 981 ]
982 } # insert_packet_with_timing 982 } # insert_packet_with_timing
983 983
984 if (is_android || is_ios) {
985 audio_decoder_unittests_resources =
986 [ "//resources/audio_coding/testfile32kHz.pcm" ]
987 }
988
989 if (is_ios) {
990 bundle_data("audio_decoder_unittests_bundle_data") {
991 testonly = true
992 sources = audio_decoder_unittests_resources
993 outputs = [
994 "{{bundle_resources_dir}}/{{source_file_part}}",
995 ]
996 }
997 }
998
984 test("audio_decoder_unittests") { 999 test("audio_decoder_unittests") {
985 testonly = true 1000 testonly = true
986 sources = [ 1001 sources = [
987 "neteq/audio_decoder_unittest.cc", 1002 "neteq/audio_decoder_unittest.cc",
988 ] 1003 ]
989 1004
990 configs += [ "../..:common_config" ] 1005 configs += [ "../..:common_config" ]
991 public_configs = [ "../..:common_inherited_config" ] 1006 public_configs = [ "../..:common_inherited_config" ]
992 1007
993 if (is_clang) { 1008 if (is_clang) {
(...skipping 12 matching lines...) Expand all
1006 ":isac_fix", 1021 ":isac_fix",
1007 ":neteq", 1022 ":neteq",
1008 ":neteq_unittest_tools", 1023 ":neteq_unittest_tools",
1009 "../../common_audio/", 1024 "../../common_audio/",
1010 "../../test:test_support_main", 1025 "../../test:test_support_main",
1011 "//testing/gtest", 1026 "//testing/gtest",
1012 ] 1027 ]
1013 1028
1014 if (is_android) { 1029 if (is_android) {
1015 deps += [ "//testing/android/native_test:native_test_native_code" ] 1030 deps += [ "//testing/android/native_test:native_test_native_code" ]
1031 data = audio_decoder_unittests_resources
1016 shard_timeout = 900 1032 shard_timeout = 900
1017 } 1033 }
1018 1034 if (is_ios) {
1019 if (is_android || is_ios) { 1035 deps += [ ":audio_decoder_unittests_bundle_data" ]
1020 data = [
1021 "//resources/audio_coding/testfile32kHz.pcm",
1022 ]
1023 } 1036 }
1024 } # audio_decoder_unittests 1037 } # audio_decoder_unittests
1025 1038
1026 if (rtc_enable_protobuf) { 1039 if (rtc_enable_protobuf) {
1027 proto_library("neteq_unittest_proto") { 1040 proto_library("neteq_unittest_proto") {
1028 sources = [ 1041 sources = [
1029 "neteq/neteq_unittest.proto", 1042 "neteq/neteq_unittest.proto",
1030 ] 1043 ]
1031 proto_out_dir = "webrtc/audio_coding/neteq" 1044 proto_out_dir = "webrtc/audio_coding/neteq"
1032 } 1045 }
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 "//testing/gtest", 1679 "//testing/gtest",
1667 ] 1680 ]
1668 1681
1669 if (is_clang) { 1682 if (is_clang) {
1670 # Suppress warnings from Chrome's Clang plugins. 1683 # Suppress warnings from Chrome's Clang plugins.
1671 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 1684 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
1672 configs -= [ "//build/config/clang:find_bad_constructs" ] 1685 configs -= [ "//build/config/clang:find_bad_constructs" ]
1673 } 1686 }
1674 } 1687 }
1675 } 1688 }
OLDNEW
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/test/BUILD.gn » ('j') | webrtc/tools/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698