0390580262
Added SPDX-license-identifier-Apache-2.0 to: target/product/sysconfig/Android.bp tools/apicheck/Android.bp tools/product_config/Android.bp tools/releasetools/Android.bp tools/signapk/Android.bp tools/signtos/Android.bp tools/zipalign/Android.bp tools/ziptime/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-CC-BY SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-LGPL SPDX-license-identifier-MIT legacy_not_a_contribution legacy_restricted to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-CC-BY SPDX-license-identifier-GPL SPDX-license-identifier-MIT to: tools/Android.bp tools/droiddoc/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-LGPL SPDX-license-identifier-MIT to: core/base_rules.mk core/dex_preopt_libart.mk core/package_internal.mk Added SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution to: target/board/Android.mk Added legacy_restricted to: core/tasks/tools/package-modules.mk target/product/gsi/Android.bp target/product/gsi/Android.mk target/product/security/Android.bp target/product/security/Android.mk tools/acp/Android.bp tools/atree/Android.bp tools/fs_config/Android.bp tools/fs_config/Android.mk tools/fs_get_stats/Android.bp tools/libhost/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Id67a4eb1312940f999643b2ae57f45f34f120724
79 lines
1.5 KiB
Text
79 lines
1.5 KiB
Text
//
|
|
// Copyright 2008 The Android Open Source Project
|
|
//
|
|
// Zip alignment tool
|
|
//
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "zipalign_defaults",
|
|
target: {
|
|
windows: {
|
|
host_ldlibs: ["-lpthread"],
|
|
enabled: true,
|
|
},
|
|
},
|
|
}
|
|
|
|
cc_library_host_static {
|
|
name: "libzipalign",
|
|
srcs: [
|
|
"ZipAlign.cpp",
|
|
"ZipEntry.cpp",
|
|
"ZipFile.cpp",
|
|
],
|
|
export_include_dirs: [
|
|
"include",
|
|
],
|
|
cflags: ["-Wall", "-Werror"],
|
|
|
|
// NOTE: Do not add any shared_libs dependencies because they will break the
|
|
// static_sdk_tools target.
|
|
whole_static_libs: [
|
|
"libutils",
|
|
"libcutils",
|
|
"liblog",
|
|
"libziparchive",
|
|
"libz",
|
|
"libbase",
|
|
"libzopfli",
|
|
],
|
|
defaults: ["zipalign_defaults"],
|
|
}
|
|
|
|
cc_binary_host {
|
|
name: "zipalign",
|
|
srcs: [
|
|
"ZipAlignMain.cpp",
|
|
],
|
|
cflags: ["-Wall", "-Werror"],
|
|
static_libs: [
|
|
"libzipalign",
|
|
],
|
|
defaults: ["zipalign_defaults"],
|
|
}
|
|
|
|
cc_test_host {
|
|
name: "zipalign_tests",
|
|
srcs: [
|
|
"tests/src/*_test.cpp",
|
|
],
|
|
test_options: {
|
|
unit_test: true,
|
|
},
|
|
static_libs: [
|
|
"libbase",
|
|
"libzipalign",
|
|
"libgmock",
|
|
],
|
|
data: [
|
|
"tests/data/diffOrders.zip",
|
|
"tests/data/holes.zip",
|
|
"tests/data/unaligned.zip",
|
|
],
|
|
defaults: ["zipalign_defaults"],
|
|
test_suites: ["general-tests"],
|
|
}
|