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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 | 824 |
821 if (is_mac) { | 825 if (is_mac) { |
822 sources += [ "base/macsocketserver_unittest.cc" ] | 826 sources += [ "base/macsocketserver_unittest.cc" ] |
823 } | 827 } |
824 if (is_clang) { | 828 if (is_clang) { |
825 # Suppress warnings from the Chromium Clang plugin. | 829 # Suppress warnings from the Chromium Clang plugin. |
826 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 830 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
827 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 831 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
828 } | 832 } |
829 } | 833 } |
| 834 |
| 835 if (is_android) { |
| 836 junit_binary("android_junit_tests") { |
| 837 java_files = [ "androidjunit/src/org/webrtc/CameraEnumerationTest.java" ] |
| 838 |
| 839 deps = [ |
| 840 "//webrtc/api:libjingle_peerconnection_java", |
| 841 "//webrtc/api:libjingle_peerconnection_jni", |
| 842 ] |
| 843 } |
| 844 } |
830 } | 845 } |
OLD | NEW |