Chih-Hung Hsieh | 1ee5781 | 2017-09-29 10:32:27 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "piex_default_cflags", |
| 3 | cflags: ["-Wall", "-Werror", "-Wsign-compare"], |
| 4 | } |
| 5 | |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 6 | cc_library_static { |
| 7 | name: "libbinary_parse", |
Jerome Gaillard | b33dd7d | 2018-07-10 16:07:54 +0100 | [diff] [blame] | 8 | host_supported: true, |
Chih-Hung Hsieh | 1ee5781 | 2017-09-29 10:32:27 -0700 | [diff] [blame] | 9 | defaults: ["piex_default_cflags"], |
Jiyong Park | ac5a309 | 2017-06-14 19:03:15 +0900 | [diff] [blame] | 10 | vendor_available: true, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 11 | srcs: [ |
| 12 | "src/binary_parse/cached_paged_byte_array.cc", |
| 13 | "src/binary_parse/range_checked_byte_ptr.cc", |
| 14 | ], |
Jerome Gaillard | 1ef9d0c | 2018-11-29 14:50:11 +0000 | [diff] [blame] | 15 | target: { |
| 16 | windows: { |
| 17 | enabled: true, |
| 18 | }, |
| 19 | }, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | cc_library_static { |
| 23 | name: "libimage_type_recognition", |
Jerome Gaillard | b33dd7d | 2018-07-10 16:07:54 +0100 | [diff] [blame] | 24 | host_supported: true, |
Chih-Hung Hsieh | 1ee5781 | 2017-09-29 10:32:27 -0700 | [diff] [blame] | 25 | defaults: ["piex_default_cflags"], |
Jiyong Park | ac5a309 | 2017-06-14 19:03:15 +0900 | [diff] [blame] | 26 | vendor_available: true, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 27 | srcs: [ |
| 28 | "src/image_type_recognition/image_type_recognition_lite.cc", |
| 29 | ], |
| 30 | static_libs: ["libbinary_parse"], |
Jerome Gaillard | 1ef9d0c | 2018-11-29 14:50:11 +0000 | [diff] [blame] | 31 | target: { |
| 32 | windows: { |
| 33 | enabled: true, |
| 34 | }, |
| 35 | }, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_library_static { |
| 39 | name: "libtiff_directory", |
Jerome Gaillard | b33dd7d | 2018-07-10 16:07:54 +0100 | [diff] [blame] | 40 | host_supported: true, |
Chih-Hung Hsieh | 1ee5781 | 2017-09-29 10:32:27 -0700 | [diff] [blame] | 41 | defaults: ["piex_default_cflags"], |
Jiyong Park | ac5a309 | 2017-06-14 19:03:15 +0900 | [diff] [blame] | 42 | vendor_available: true, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 43 | srcs: [ |
| 44 | "src/tiff_directory/tiff_directory.cc", |
| 45 | ], |
| 46 | static_libs: ["libbinary_parse"], |
Jerome Gaillard | 1ef9d0c | 2018-11-29 14:50:11 +0000 | [diff] [blame] | 47 | target: { |
| 48 | windows: { |
| 49 | enabled: true, |
| 50 | }, |
| 51 | }, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 52 | } |
| 53 | |
Jerome Gaillard | fe0cffa | 2019-06-27 19:31:37 +0100 | [diff] [blame] | 54 | cc_library { |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 55 | name: "libpiex", |
Jerome Gaillard | b33dd7d | 2018-07-10 16:07:54 +0100 | [diff] [blame] | 56 | host_supported: true, |
Chih-Hung Hsieh | 1ee5781 | 2017-09-29 10:32:27 -0700 | [diff] [blame] | 57 | defaults: ["piex_default_cflags"], |
Jayant Chowdhary | 6660354 | 2017-05-17 14:31:25 -0700 | [diff] [blame] | 58 | vendor_available: true, |
Justin Yun | 878bf5c | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 59 | vndk: { |
| 60 | enabled: true, |
| 61 | }, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 62 | srcs: [ |
| 63 | "src/tiff_parser.cc", |
| 64 | "src/piex.cc", |
| 65 | ], |
Colin Cross | b57a64f | 2016-12-05 13:52:47 -0800 | [diff] [blame] | 66 | export_include_dirs: ["."], |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 67 | static_libs: [ |
| 68 | "libbinary_parse", |
| 69 | "libimage_type_recognition", |
| 70 | "libtiff_directory", |
| 71 | ], |
Jerome Gaillard | 1ef9d0c | 2018-11-29 14:50:11 +0000 | [diff] [blame] | 72 | target: { |
| 73 | windows: { |
| 74 | enabled: true, |
| 75 | }, |
| 76 | }, |
Colin Cross | cdd77cc | 2016-12-01 17:37:01 -0800 | [diff] [blame] | 77 | } |