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 | 5cfa006 | 2017-09-27 16:24:45 -0700 | [diff] [blame] | 18 | shared_libs: [ |
| 19 | "libz", |
| 20 | "libbase", |
| 21 | ], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 22 | target: { |
| 23 | windows: { |
| 24 | enabled: true, |
| 25 | }, |
| 26 | }, |
| 27 | } |
| 28 | |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 29 | cc_binary { |
| 30 | name: "simg2img", |
| 31 | host_supported: true, |
| 32 | srcs: [ |
| 33 | "simg2img.c", |
| 34 | "sparse_crc32.c", |
| 35 | ], |
| 36 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 37 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 38 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 39 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | cflags: ["-Werror"], |
| 43 | } |
| 44 | |
| 45 | cc_binary { |
| 46 | name: "img2simg", |
| 47 | host_supported: true, |
| 48 | srcs: ["img2simg.c"], |
| 49 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 50 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 51 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 52 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 53 | ], |
| 54 | |
| 55 | cflags: ["-Werror"], |
| 56 | } |
| 57 | |
| 58 | cc_binary_host { |
| 59 | name: "append2simg", |
| 60 | srcs: ["append2simg.c"], |
| 61 | static_libs: [ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 62 | "libsparse", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 63 | "libz", |
Chris Fries | a7eeb22 | 2017-04-17 21:53:16 -0500 | [diff] [blame] | 64 | "libbase", |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 65 | ], |
| 66 | |
| 67 | cflags: ["-Werror"], |
| 68 | } |