| 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", | 
|  | 13 | "sparse_read.c", | 
|  | 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: { | 
|  | 20 | shared_libs: ["libz-host"], | 
|  | 21 | }, | 
|  | 22 | android: { | 
|  | 23 | shared_libs: ["libz"], | 
|  | 24 | }, | 
| Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 25 | windows: { | 
|  | 26 | enabled: true, | 
|  | 27 | }, | 
|  | 28 | }, | 
|  | 29 | } | 
|  | 30 |  | 
| Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 31 | cc_binary { | 
|  | 32 | name: "simg2img", | 
|  | 33 | host_supported: true, | 
|  | 34 | srcs: [ | 
|  | 35 | "simg2img.c", | 
|  | 36 | "sparse_crc32.c", | 
|  | 37 | ], | 
|  | 38 | static_libs: [ | 
| Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 39 | "libsparse", | 
| Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 40 | "libz", | 
|  | 41 | ], | 
|  | 42 |  | 
|  | 43 | cflags: ["-Werror"], | 
|  | 44 | } | 
|  | 45 |  | 
|  | 46 | cc_binary { | 
|  | 47 | name: "img2simg", | 
|  | 48 | host_supported: true, | 
|  | 49 | srcs: ["img2simg.c"], | 
|  | 50 | static_libs: [ | 
| Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 51 | "libsparse", | 
| Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 52 | "libz", | 
|  | 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", | 
|  | 64 | ], | 
|  | 65 |  | 
|  | 66 | cflags: ["-Werror"], | 
|  | 67 | } |