gn2bp: Add flags and include_dirs to target
Test: ./update_results.sh Change-Id: Iac05e49a7f195afec72e229f667a402bae8a1742
This commit is contained in:
@@ -189,24 +189,14 @@ cc_library_static {
|
||||
"cronet_aml_third_party_android_ndk_cpu_features",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DIS_PARTITION_ALLOC_IMPL",
|
||||
"-DPA_PCSCAN_STACK_SUPPORTED",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -219,10 +209,6 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
@@ -233,6 +219,30 @@ cc_library_static {
|
||||
"base/allocator/partition_allocator/partition_alloc_base/native_library_posix.cc",
|
||||
"base/allocator/partition_allocator/partition_alloc_base/time/time_android.cc",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -876,32 +886,20 @@ cc_library_static {
|
||||
],
|
||||
cflags: [
|
||||
"-DABSL_ALLOCATOR_NOTHROW=1",
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DBASE_IMPLEMENTATION",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DGLOG_EXPORT=",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_CHROMIUM_ICU=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_SYMBOLIZE",
|
||||
"-DUSE_UDEV",
|
||||
"-DU_ENABLE_DYLOAD=0",
|
||||
"-DU_ENABLE_RESOURCE_TRACING=0",
|
||||
"-DU_ENABLE_TRACING=1",
|
||||
"-DU_STATIC_IMPLEMENTATION",
|
||||
"-DU_USING_ICU_NAMESPACE=0",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -915,13 +913,9 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/abseil-cpp/",
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"third_party/boringssl/src/include/",
|
||||
"third_party/icu/source/common/",
|
||||
"third_party/icu/source/i18n/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
header_libs: [
|
||||
"jni_headers",
|
||||
@@ -1008,6 +1002,15 @@ cc_library_static {
|
||||
"base/threading/platform_thread_android.cc",
|
||||
"base/time/time_android.cc",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
srcs: [
|
||||
@@ -1026,6 +1029,21 @@ cc_library_static {
|
||||
"base/stack_canary_linux.cc",
|
||||
"base/threading/platform_thread_linux.cc",
|
||||
],
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DGLOG_EXPORT=",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_SYMBOLIZE",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1312,22 +1330,12 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -1340,11 +1348,35 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //base:build_date
|
||||
@@ -1643,22 +1675,12 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -1671,11 +1693,35 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //base/third_party/dynamic_annotations:dynamic_annotations
|
||||
@@ -1689,22 +1735,12 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -1715,11 +1751,35 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //base/third_party/symbolize:symbolize
|
||||
@@ -1753,7 +1813,6 @@ cc_library_static {
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -1802,7 +1861,6 @@ cc_library_static {
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -1846,7 +1904,6 @@ cc_library_static {
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D__STDC_CONSTANT_MACROS",
|
||||
"-D__STDC_FORMAT_MACROS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -2667,23 +2724,13 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCRYPTO_IMPLEMENTATION",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -2693,16 +2740,11 @@ cc_library_static {
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/nspr",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/nss",
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/abseil-cpp/",
|
||||
"third_party/boringssl/src/include/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
@@ -2712,11 +2754,36 @@ cc_library_static {
|
||||
"liblog",
|
||||
],
|
||||
},
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
srcs: [
|
||||
"crypto/nss_key_util.cc",
|
||||
"crypto/nss_util.cc",
|
||||
],
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/nspr",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/nss",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -5493,26 +5560,16 @@ cc_library_static {
|
||||
"cronet_aml_third_party_boringssl_src_third_party_fiat_fiat_license",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DBORINGSSL_ALLOW_CXX_RUNTIME",
|
||||
"-DBORINGSSL_IMPLEMENTATION",
|
||||
"-DBORINGSSL_NO_STATIC_INITIALIZER",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DOPENSSL_SMALL",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -5526,11 +5583,35 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/boringssl/src/include/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/boringssl:boringssl_asm
|
||||
@@ -5910,22 +5991,15 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_DLOPEN=0",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
|
||||
"-DUCONFIG_ONLY_HTML_CONVERSION=1",
|
||||
"-DUCONFIG_USE_WINDOWS_LCID_MAPPING_API=0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_CHROMIUM_ICU=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-DU_CHARSET_IS_UTF8=1",
|
||||
"-DU_ENABLE_DYLOAD=0",
|
||||
"-DU_ENABLE_RESOURCE_TRACING=0",
|
||||
@@ -5934,10 +6008,7 @@ cc_library_static {
|
||||
"-DU_STATIC_IMPLEMENTATION",
|
||||
"-DU_USING_ICU_NAMESPACE=0",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -5950,12 +6021,36 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/icu/source/common/",
|
||||
"third_party/icu/source/i18n/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
rtti: true,
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/icu:icuuc_private
|
||||
@@ -6168,22 +6263,15 @@ cc_library_static {
|
||||
"cronet_aml_third_party_icu_icuuc_public",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_DLOPEN=0",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
|
||||
"-DUCONFIG_ONLY_HTML_CONVERSION=1",
|
||||
"-DUCONFIG_USE_WINDOWS_LCID_MAPPING_API=0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_CHROMIUM_ICU=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-DU_CHARSET_IS_UTF8=1",
|
||||
"-DU_COMMON_IMPLEMENTATION",
|
||||
"-DU_ENABLE_DYLOAD=0",
|
||||
@@ -6193,10 +6281,7 @@ cc_library_static {
|
||||
"-DU_STATIC_IMPLEMENTATION",
|
||||
"-DU_USING_ICU_NAMESPACE=0",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -6211,12 +6296,36 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/icu/source/common/",
|
||||
"third_party/icu/source/i18n/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
rtti: true,
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/icu:icuuc_public
|
||||
@@ -6248,23 +6357,13 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_CONFIG_H",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -6275,13 +6374,37 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/libevent/android/",
|
||||
"third_party/libevent/linux/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
"third_party/libevent/android/",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"third_party/libevent/linux/",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/metrics_proto:metrics_proto
|
||||
@@ -6434,22 +6557,12 @@ cc_library_static {
|
||||
"cronet_aml_defaults",
|
||||
],
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -6462,11 +6575,35 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/protobuf:protobuf_full
|
||||
@@ -6589,7 +6726,6 @@ cc_library_static {
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -6723,7 +6859,6 @@ cc_binary {
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
"-D_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))",
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -6863,7 +6998,6 @@ cc_library_static {
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-UANDROID",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"./",
|
||||
@@ -6909,29 +7043,19 @@ cc_library_static {
|
||||
],
|
||||
cflags: [
|
||||
"-DADLER32_SIMD_SSSE3",
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DCRC32_SIMD_SSE42_PCLMUL",
|
||||
"-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
|
||||
"-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DDCHECK_ALWAYS_ON=1",
|
||||
"-DDEFLATE_SLIDE_HASH_SSE2",
|
||||
"-DDYNAMIC_ANNOTATIONS_ENABLED=1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
"-DINFLATE_CHUNK_READ_64LE",
|
||||
"-DINFLATE_CHUNK_SIMD_SSE2",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-DX86_NOT_WINDOWS",
|
||||
"-DZLIB_DEBUG",
|
||||
"-DZLIB_IMPLEMENTATION",
|
||||
"-D_DEBUG",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
|
||||
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
||||
"-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
|
||||
@@ -6946,13 +7070,37 @@ cc_library_static {
|
||||
"buildtools/third_party/libc++/",
|
||||
"buildtools/third_party/libc++/trunk/include",
|
||||
"buildtools/third_party/libc++abi/trunk/include",
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"third_party/zlib/",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
cpp_std: "c++20",
|
||||
target: {
|
||||
android_x86_64: {
|
||||
cflags: [
|
||||
"-DANDROID",
|
||||
"-DANDROID_NDK_VERSION_ROLL=r23_1",
|
||||
"-DHAVE_SYS_UIO_H",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"third_party/android_ndk/sources/android/cpufeatures/",
|
||||
"third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: [
|
||||
"-DCR_SYSROOT_KEY=20220331T153654Z-0",
|
||||
"-DUSE_AURA=1",
|
||||
"-DUSE_OZONE=1",
|
||||
"-DUSE_UDEV",
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
],
|
||||
local_include_dirs: [
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include",
|
||||
"build/linux/debian_bullseye_amd64-sysroot/usr/include/x86_64-linux-gnu",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// GN: //third_party/zlib:zlib_adler32_simd
|
||||
|
||||
@@ -957,8 +957,9 @@ def _get_cflags(cflags, defines):
|
||||
# -DANDROID is added by default but target.defines contain -DANDROID if it's required.
|
||||
# So adding -UANDROID to cancel default -DANDROID if it's not specified.
|
||||
# This is needed for some targets(e.g. symbolize)
|
||||
if "ANDROID" not in defines:
|
||||
cflags.add("-UANDROID")
|
||||
# TODO: Set -UANDROID considering common define
|
||||
# if "ANDROID" not in defines:
|
||||
# cflags.add("-UANDROID")
|
||||
return cflags
|
||||
|
||||
def set_module_flags(module, cflags, defines):
|
||||
@@ -1077,6 +1078,10 @@ def create_modules_from_target(blueprint, gn, gn_target_name):
|
||||
if target.type in gn_utils.LINKER_UNIT_TYPES:
|
||||
set_module_flags(module, target.cflags, target.defines)
|
||||
set_module_include_dirs(module, target.cflags, target.include_dirs)
|
||||
# TODO: set_module_xxx is confusing, apply similar function to module and target in better way.
|
||||
for arch_name, arch in target.arch.items():
|
||||
set_module_flags(module.target[arch_name], arch.cflags, arch.defines)
|
||||
set_module_include_dirs(module.target[arch_name], arch.cflags, arch.include_dirs)
|
||||
|
||||
if module.is_compiled():
|
||||
module.host_supported = target.host_supported()
|
||||
|
||||
@@ -198,22 +198,16 @@ class GnParser(object):
|
||||
|
||||
# Target contains the intersection of arch-dependent properties
|
||||
self.sources = set.intersection(*[arch.sources for arch in self.arch.values()])
|
||||
self.cflags = set.intersection(*[arch.cflags for arch in self.arch.values()])
|
||||
self.defines = set.intersection(*[arch.defines for arch in self.arch.values()])
|
||||
self.include_dirs = set.intersection(*[arch.include_dirs for arch in self.arch.values()])
|
||||
|
||||
# Deduplicate arch-dependent properties
|
||||
for arch in self.arch.keys():
|
||||
self.arch[arch].sources -= self.sources
|
||||
|
||||
# TODO: Keep cflags per arch
|
||||
for arch_value in self.arch.values():
|
||||
self.cflags = self.cflags.union(arch_value.cflags)
|
||||
|
||||
# TODO: Keep defines per arch
|
||||
for arch_value in self.arch.values():
|
||||
self.defines = self.defines.union(arch_value.defines)
|
||||
|
||||
# TODO: Keep include_dirs per arch
|
||||
for arch_value in self.arch.values():
|
||||
self.include_dirs = self.include_dirs.union(arch_value.include_dirs)
|
||||
self.arch[arch].cflags -= self.cflags
|
||||
self.arch[arch].defines -= self.defines
|
||||
self.arch[arch].include_dirs -= self.include_dirs
|
||||
|
||||
def __init__(self):
|
||||
self.all_targets = {}
|
||||
|
||||
Reference in New Issue
Block a user