| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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("//webrtc/build/webrtc.gni") | 9 import("//webrtc/build/webrtc.gni") |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 61 | 61 |
| 62 if (is_win) { | 62 if (is_win) { |
| 63 cflags += [ | 63 cflags += [ |
| 64 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. | 64 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. |
| 65 "/wd4389", # signed/unsigned mismatch. | 65 "/wd4389", # signed/unsigned mismatch. |
| 66 ] | 66 ] |
| 67 } | 67 } |
| 68 | 68 |
| 69 deps = [ | 69 deps = [ |
| 70 "//webrtc/api:libjingle_peerconnection", | 70 "//webrtc/pc:libjingle_peerconnection", |
| 71 ] | 71 ] |
| 72 | 72 |
| 73 if (rtc_build_libyuv) { | 73 if (rtc_build_libyuv) { |
| 74 deps += [ "$rtc_libyuv_dir" ] | 74 deps += [ "$rtc_libyuv_dir" ] |
| 75 public_deps = [ | 75 public_deps = [ |
| 76 "$rtc_libyuv_dir", | 76 "$rtc_libyuv_dir", |
| 77 ] | 77 ] |
| 78 } else { | 78 } else { |
| 79 # Need to add a directory normally exported by libyuv. | 79 # Need to add a directory normally exported by libyuv. |
| 80 include_dirs = [ "$rtc_libyuv_dir/include" ] | 80 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 rtc_static_library("libjingle_peerconnection_metrics_default_jni") { | 84 rtc_static_library("libjingle_peerconnection_metrics_default_jni") { |
| 85 sources = [ | 85 sources = [ |
| 86 "src/jni/androidmetrics_jni.cc", | 86 "src/jni/androidmetrics_jni.cc", |
| 87 ] | 87 ] |
| 88 | 88 |
| 89 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] | 89 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] |
| 90 | 90 |
| 91 deps = [ | 91 deps = [ |
| 92 "//webrtc/api:libjingle_peerconnection", | 92 "//webrtc/pc:libjingle_peerconnection", |
| 93 "//webrtc/system_wrappers:field_trial_default", | 93 "//webrtc/system_wrappers:field_trial_default", |
| 94 "//webrtc/system_wrappers:metrics_default", | 94 "//webrtc/system_wrappers:metrics_default", |
| 95 ] | 95 ] |
| 96 } | 96 } |
| 97 | 97 |
| 98 rtc_shared_library("libjingle_peerconnection_so") { | 98 rtc_shared_library("libjingle_peerconnection_so") { |
| 99 sources = [ | 99 sources = [ |
| 100 "src/jni/jni_onload.cc", | 100 "src/jni/jni_onload.cc", |
| 101 ] | 101 ] |
| 102 | 102 |
| 103 suppressed_configs += [ "//build/config/android:hide_native_jni_exports" ] | 103 suppressed_configs += [ "//build/config/android:hide_native_jni_exports" ] |
| 104 | 104 |
| 105 deps = [ | 105 deps = [ |
| 106 ":libjingle_peerconnection_jni", | 106 ":libjingle_peerconnection_jni", |
| 107 ":libjingle_peerconnection_metrics_default_jni", | 107 ":libjingle_peerconnection_metrics_default_jni", |
| 108 "//webrtc/api:libjingle_peerconnection", | 108 "//webrtc/pc:libjingle_peerconnection", |
| 109 ] | 109 ] |
| 110 output_extension = "so" | 110 output_extension = "so" |
| 111 } | 111 } |
| 112 | 112 |
| 113 dist_jar("libwebrtc") { | 113 dist_jar("libwebrtc") { |
| 114 _target_dir_name = get_label_info(":$target_name", "dir") | 114 _target_dir_name = get_label_info(":$target_name", "dir") |
| 115 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" | 115 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
| 116 direct_deps_only = true | 116 direct_deps_only = true |
| 117 use_interface_jars = false | 117 use_interface_jars = false |
| 118 deps = [ | 118 deps = [ |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 "//third_party/android_support_test_runner:runner_java", | 230 "//third_party/android_support_test_runner:runner_java", |
| 231 "//third_party/junit", | 231 "//third_party/junit", |
| 232 "//webrtc/base:base_java", | 232 "//webrtc/base:base_java", |
| 233 "//webrtc/sdk/android:libjingle_peerconnection_java", | 233 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 234 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", | 234 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", |
| 235 ] | 235 ] |
| 236 | 236 |
| 237 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] | 237 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] |
| 238 } | 238 } |
| 239 } | 239 } |
| OLD | NEW |