GN Templates: Introduce rtc_shared_library
libjingle_peerconnection_so is not including common_config, which is causing some differences is the defines. We'd like to prevent that happening in the future. NOTRY=True BUG=webrtc:5949 Review-Url: https://codereview.webrtc.org/2325603002 Cr-Commit-Position: refs/heads/master@{#14127}
This commit is contained in:
parent
76cd281200
commit
acf9f4785a
@ -220,12 +220,12 @@ if (is_android && !build_with_chromium) {
|
||||
}
|
||||
}
|
||||
|
||||
shared_library("libjingle_peerconnection_so") {
|
||||
rtc_shared_library("libjingle_peerconnection_so") {
|
||||
sources = [
|
||||
"android/jni/jni_onload.cc",
|
||||
]
|
||||
|
||||
configs -= [ "//build/config/android:hide_native_jni_exports" ]
|
||||
suppressed_configs += [ "//build/config/android:hide_native_jni_exports" ]
|
||||
|
||||
deps = [
|
||||
":libjingle_peerconnection",
|
||||
|
||||
@ -215,6 +215,11 @@ set_defaults("rtc_static_library") {
|
||||
suppressed_configs = []
|
||||
}
|
||||
|
||||
set_defaults("rtc_shared_library") {
|
||||
configs = rtc_add_configs
|
||||
suppressed_configs = []
|
||||
}
|
||||
|
||||
template("rtc_test") {
|
||||
test(target_name) {
|
||||
forward_variables_from(invoker,
|
||||
@ -295,3 +300,22 @@ template("rtc_static_library") {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template("rtc_shared_library") {
|
||||
shared_library(target_name) {
|
||||
forward_variables_from(invoker,
|
||||
"*",
|
||||
[
|
||||
"configs",
|
||||
"public_configs",
|
||||
"suppressed_configs",
|
||||
])
|
||||
configs += invoker.configs
|
||||
configs -= rtc_remove_configs
|
||||
configs -= invoker.suppressed_configs
|
||||
public_configs = [ rtc_common_inherited_config ]
|
||||
if (defined(invoker.public_configs)) {
|
||||
public_configs += invoker.public_configs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user