Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 1 | // Copyright 2010 The Android Open Source Project |
| 2 | |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 3 | cc_library { |
| 4 | name: "libsparse", |
| 5 | host_supported: true, |
| 6 | unique_host_soname: true, |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 7 | srcs: [ |
| 8 | "backed_block.c", |
| 9 | "output_file.c", |
| 10 | "sparse.c", |
| 11 | "sparse_crc32.c", |
| 12 | "sparse_err.c", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 13 | "sparse_read.cpp", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 14 | ], |
| 15 | cflags: ["-Werror"], |
| 16 | local_include_dirs: ["include"], |
| 17 | export_include_dirs: ["include"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 18 | target: { |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 19 | host: { |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 20 | shared_libs: [ |
| 21 | "libz-host", |
| 22 | "libbase", |
| 23 | ], |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 24 | }, |
| 25 | android: { |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 26 | shared_libs: [ |
| 27 | "libz", |
| 28 | "libbase", |
| 29 | ], |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 30 | }, |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 31 | windows: { |
| 32 | enabled: true, |
| 33 | }, |
| 34 | }, |
| 35 | } |
| 36 | |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 37 | cc_binary { |
| 38 | name: "simg2img", |
| 39 | host_supported: true, |
| 40 | srcs: [ |
| 41 | "simg2img.c", |
| 42 | "sparse_crc32.c", |
| 43 | ], |
| 44 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 45 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 46 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 47 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 48 | ], |
| 49 | |
| 50 | cflags: ["-Werror"], |
| 51 | } |
| 52 | |
| 53 | cc_binary { |
| 54 | name: "img2simg", |
| 55 | host_supported: true, |
| 56 | srcs: ["img2simg.c"], |
| 57 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 58 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 59 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 60 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 61 | ], |
| 62 | |
| 63 | cflags: ["-Werror"], |
| 64 | } |
| 65 | |
| 66 | cc_binary_host { |
| 67 | name: "append2simg", |
| 68 | srcs: ["append2simg.c"], |
| 69 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 70 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 71 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 72 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | cflags: ["-Werror"], |
| 76 | } |