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 } | |
19 | 15 |
20 # 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 |
21 # target_defaults and direct_dependent_settings. | 17 # target_defaults and direct_dependent_settings. |
22 config("common_inherited_config") { | 18 config("common_inherited_config") { |
23 defines = [] | 19 defines = [] |
24 cflags = [] | 20 cflags = [] |
25 ldflags = [] | 21 ldflags = [] |
26 if (build_with_mozilla) { | 22 if (build_with_mozilla) { |
27 defines += [ "WEBRTC_MOZILLA_BUILD" ] | 23 defines += [ "WEBRTC_MOZILLA_BUILD" ] |
28 } | 24 } |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 if (is_mac) { | 825 if (is_mac) { |
830 sources += [ "base/macsocketserver_unittest.cc" ] | 826 sources += [ "base/macsocketserver_unittest.cc" ] |
831 } | 827 } |
832 if (is_clang) { | 828 if (is_clang) { |
833 # Suppress warnings from the Chromium Clang plugin. | 829 # Suppress warnings from the Chromium Clang plugin. |
834 # 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. |
835 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 831 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
836 } | 832 } |
837 } | 833 } |
838 } | 834 } |
839 | |
840 if (is_android) { | |
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 |