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 # 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/linux/pkg_config.gni") | 11 import("//build/config/linux/pkg_config.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("build/webrtc.gni") | 13 import("build/webrtc.gni") |
14 import("//third_party/protobuf/proto_library.gni") | 14 import("//third_party/protobuf/proto_library.gni") |
15 if (is_android) { | |
16 import("//build/config/android/config.gni") | |
17 import("//build/config/android/rules.gni") | |
18 } | |
15 | 19 |
16 # Contains the defines and includes in common.gypi that are duplicated both as | 20 # Contains the defines and includes in common.gypi that are duplicated both as |
17 # target_defaults and direct_dependent_settings. | 21 # target_defaults and direct_dependent_settings. |
18 config("common_inherited_config") { | 22 config("common_inherited_config") { |
19 defines = [] | 23 defines = [] |
20 cflags = [] | 24 cflags = [] |
21 ldflags = [] | 25 ldflags = [] |
22 if (build_with_mozilla) { | 26 if (build_with_mozilla) { |
23 defines += [ "WEBRTC_MOZILLA_BUILD" ] | 27 defines += [ "WEBRTC_MOZILLA_BUILD" ] |
24 } | 28 } |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
825 if (is_mac) { | 829 if (is_mac) { |
826 sources += [ "base/macsocketserver_unittest.cc" ] | 830 sources += [ "base/macsocketserver_unittest.cc" ] |
827 } | 831 } |
828 if (is_clang) { | 832 if (is_clang) { |
829 # Suppress warnings from the Chromium Clang plugin. | 833 # Suppress warnings from the Chromium Clang plugin. |
830 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 834 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
831 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 835 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
832 } | 836 } |
833 } | 837 } |
834 } | 838 } |
839 | |
840 if (is_android) { | |
kjellander_webrtc
2016/09/16 11:13:34
Just put this into
if (rtc_include_tests) {
inste
| |
841 junit_binary("android_junit_tests") { | |
842 java_files = [ "androidjunit/src/org/webrtc/CameraEnumerationTest.java" ] | |
843 | |
844 deps = [ | |
845 "//webrtc/api:libjingle_peerconnection_java", | |
846 "//webrtc/api:libjingle_peerconnection_jni", | |
847 ] | |
848 } | |
849 } | |
OLD | NEW |