Skip to content
Snippets Groups Projects
Commit 4d02aae0 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "zlib: changes so external/angle can reuse this copy of zlib."

parents 65ebc43f f4fb11d4
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,15 @@ cc_defaults { ...@@ -98,7 +98,15 @@ cc_defaults {
], ],
stl: "none", stl: "none",
export_include_dirs: ["."], export_include_dirs: ["."],
srcs: libz_srcs,
host_supported: true,
native_bridge_supported: true,
vendor_available: true,
product_available: true,
ramdisk_available: true,
vendor_ramdisk_available: true,
recovery_available: true,
arch: { arch: {
arm: { arm: {
...@@ -139,6 +147,9 @@ cc_defaults { ...@@ -139,6 +147,9 @@ cc_defaults {
"-DARMV8_OS_MACOS", "-DARMV8_OS_MACOS",
], ],
}, },
linux_bionic: {
enabled: true,
},
linux_arm64: { linux_arm64: {
cflags: [ cflags: [
// Since we're building for the platform, we claim to be Linux rather than // Since we're building for the platform, we claim to be Linux rather than
...@@ -147,6 +158,9 @@ cc_defaults { ...@@ -147,6 +158,9 @@ cc_defaults {
"-DARMV8_OS_LINUX", "-DARMV8_OS_LINUX",
], ],
}, },
windows: {
enabled: true,
},
}, },
} }
...@@ -154,29 +168,15 @@ cc_library { ...@@ -154,29 +168,15 @@ cc_library {
name: "libz", name: "libz",
defaults: ["libz_defaults"], defaults: ["libz_defaults"],
host_supported: true, whole_static_libs: ["libz_static"],
unique_host_soname: true, unique_host_soname: true,
static_ndk_lib: true, static_ndk_lib: true,
vendor_available: true,
product_available: true,
vndk: { vndk: {
enabled: true, enabled: true,
support_system_process: true, support_system_process: true,
}, },
ramdisk_available: true,
vendor_ramdisk_available: true,
recovery_available: true,
native_bridge_supported: true,
target: {
linux_bionic: {
enabled: true,
},
windows: {
enabled: true,
},
},
stubs: { stubs: {
versions: [ versions: [
...@@ -187,6 +187,21 @@ cc_library { ...@@ -187,6 +187,21 @@ cc_library {
}, },
} }
cc_library {
name: "libz_static",
defaults: ["libz_defaults"],
visibility: ["//external/angle"],
srcs: libz_srcs,
sdk_version: "minimum",
apex_available: [
"com.android.runtime",
"//apex_available:platform",
],
}
// A more stable build of libz. Build configuration of this library should be // A more stable build of libz. Build configuration of this library should be
// the same for different targets. This is only used by imgdiff. // the same for different targets. This is only used by imgdiff.
...@@ -254,22 +269,38 @@ cc_binary { ...@@ -254,22 +269,38 @@ cc_binary {
}, },
} }
cc_library {
name: "zlib_google_compression_utils_portable",
defaults: ["libz_defaults"],
srcs: [
"google/compression_utils_portable.cc",
],
export_include_dirs: ["google"],
host_supported: true,
shared_libs: ["libz"],
sdk_version: "minimum",
visibility: ["//external/angle"],
apex_available: [
"com.android.runtime",
"//apex_available:platform",
],
}
cc_test { cc_test {
name: "zlib_tests", name: "zlib_tests",
srcs: [ srcs: [
"contrib/tests/infcover.cc", "contrib/tests/infcover.cc",
"contrib/tests/utils_unittest.cc", "contrib/tests/utils_unittest.cc",
"google/compression_utils_portable.cc",
], ],
cflags: [ cflags: [
"-Wno-unused-parameter", "-Wno-unused-parameter",
], ],
include_dirs: [ include_dirs: [
"external/zlib/google",
// These tests include "gtest.h" rather than the usual "gtest/gtest.h". // These tests include "gtest.h" rather than the usual "gtest/gtest.h".
"external/googletest/googletest/include/gtest/", "external/googletest/googletest/include/gtest/",
], ],
shared_libs: ["libz"], shared_libs: ["libz"],
static_libs: ["zlib_google_compression_utils_portable"],
host_supported: true, host_supported: true,
test_suites: ["device-tests"], test_suites: ["device-tests"],
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment