Merge "gn2bp: Use AOSP libc and NDK"
This commit is contained in:
@@ -931,6 +931,7 @@ cc_library_static {
|
|||||||
],
|
],
|
||||||
header_libs: [
|
header_libs: [
|
||||||
"jni_headers",
|
"jni_headers",
|
||||||
|
"media_ndk_headers",
|
||||||
],
|
],
|
||||||
cpp_std: "c++20",
|
cpp_std: "c++20",
|
||||||
target: {
|
target: {
|
||||||
@@ -3377,24 +3378,6 @@ cc_defaults {
|
|||||||
"-fvisibility=hidden",
|
"-fvisibility=hidden",
|
||||||
],
|
],
|
||||||
stl: "none",
|
stl: "none",
|
||||||
target: {
|
|
||||||
android_x86: {
|
|
||||||
export_system_include_dirs: [
|
|
||||||
"build/linux/debian_bullseye_i386-sysroot/usr/include",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
android_x86_64: {
|
|
||||||
export_system_include_dirs: [
|
|
||||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
|
||||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
host: {
|
|
||||||
export_system_include_dirs: [
|
|
||||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GN: //ipc:param_traits
|
// GN: //ipc:param_traits
|
||||||
|
|||||||
@@ -131,6 +131,9 @@ additional_args = {
|
|||||||
# that doesn't depend on rtti. undefined symbol: typeinfo 'class' errors appears.
|
# that doesn't depend on rtti. undefined symbol: typeinfo 'class' errors appears.
|
||||||
('rtti', True), # go/undefined-symbol-typeinfo
|
('rtti', True), # go/undefined-symbol-typeinfo
|
||||||
],
|
],
|
||||||
|
'cronet_aml_base_base': [
|
||||||
|
('header_libs', set(["media_ndk_headers"])),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Android equivalents for third-party libraries that the upstream project
|
# Android equivalents for third-party libraries that the upstream project
|
||||||
@@ -1219,19 +1222,6 @@ def create_blueprint_for_targets(gn, targets):
|
|||||||
'-Wno-unreachable-code-loop-increment', # needed for icui18n
|
'-Wno-unreachable-code-loop-increment', # needed for icui18n
|
||||||
'-O2',
|
'-O2',
|
||||||
]
|
]
|
||||||
# TODO: can we get these from somewhere else?
|
|
||||||
# TODO: what to do for arm?
|
|
||||||
defaults.target['android_x86'].export_system_include_dirs = [
|
|
||||||
'build/linux/debian_bullseye_i386-sysroot/usr/include',
|
|
||||||
]
|
|
||||||
defaults.target['android_x86_64'].export_system_include_dirs = [
|
|
||||||
'build/linux/debian_bullseye_amd64-sysroot/usr/include',
|
|
||||||
'build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu',
|
|
||||||
]
|
|
||||||
defaults.target['host'].export_system_include_dirs = [
|
|
||||||
# TODO: do we need this?
|
|
||||||
'third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include',
|
|
||||||
]
|
|
||||||
defaults.stl = 'none'
|
defaults.stl = 'none'
|
||||||
blueprint.add_module(defaults)
|
blueprint.add_module(defaults)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user