Dan Willemsen | c0a0f2d | 2017-09-09 13:37:03 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2008 The Android Open Source Project |
| 3 | // |
| 4 | // Zip alignment tool |
| 5 | // |
| 6 | |
| 7 | cc_binary_host { |
| 8 | name: "zipalign", |
| 9 | |
| 10 | srcs: [ |
| 11 | "ZipAlign.cpp", |
| 12 | "ZipEntry.cpp", |
| 13 | "ZipFile.cpp", |
| 14 | ], |
| 15 | |
Chih-Hung Hsieh | 2a5bc9d | 2017-10-03 13:45:03 -0700 | [diff] [blame] | 16 | cflags: ["-Wall", "-Werror"], |
| 17 | |
Narayan Kamath | 887c645 | 2017-11-06 11:40:07 +0000 | [diff] [blame] | 18 | // NOTE: Do not add any shared_libs dependencies because they will break the |
| 19 | // static_sdk_tools target. |
Dan Willemsen | c0a0f2d | 2017-09-09 13:37:03 -0700 | [diff] [blame] | 20 | static_libs: [ |
Dan Willemsen | c0a0f2d | 2017-09-09 13:37:03 -0700 | [diff] [blame] | 21 | "libutils", |
| 22 | "libcutils", |
| 23 | "liblog", |
Narayan Kamath | 887c645 | 2017-11-06 11:40:07 +0000 | [diff] [blame] | 24 | "libziparchive", |
| 25 | "libz", |
| 26 | "libbase", |
Dan Willemsen | c0a0f2d | 2017-09-09 13:37:03 -0700 | [diff] [blame] | 27 | "libzopfli", |
Narayan Kamath | 0e4110e | 2017-10-26 18:00:13 +0100 | [diff] [blame] | 28 | ], |
| 29 | |
Dan Willemsen | c0a0f2d | 2017-09-09 13:37:03 -0700 | [diff] [blame] | 30 | target: { |
| 31 | windows: { |
| 32 | host_ldlibs: ["-lpthread"], |
| 33 | enabled: true, |
| 34 | }, |
| 35 | }, |
| 36 | } |