platform_build/tools/zipalign/Android.bp
Narayan Kamath 887c645e02 zipalign: Fix build failure in static_sdk_tools.
Convert all dependencies to static deps.

Test: make -j50 static_sdk_tools BUILD_HOST_static=1
Bug: 35246701
Bug: 68804545

Change-Id: Ia46ac30e5c05226f1bfec82a84f05e4be945bf74
2017-11-06 11:12:08 -08:00

36 lines
648 B
Text

//
// Copyright 2008 The Android Open Source Project
//
// Zip alignment tool
//
cc_binary_host {
name: "zipalign",
srcs: [
"ZipAlign.cpp",
"ZipEntry.cpp",
"ZipFile.cpp",
],
cflags: ["-Wall", "-Werror"],
// NOTE: Do not add any shared_libs dependencies because they will break the
// static_sdk_tools target.
static_libs: [
"libutils",
"libcutils",
"liblog",
"libziparchive",
"libz",
"libbase",
"libzopfli",
],
target: {
windows: {
host_ldlibs: ["-lpthread"],
enabled: true,
},
},
}