blob: d376d8ff67f0abd6562ffd8eeafd1448c6352fce [file] [log] [blame]
Bob Badouraacf8942021-02-12 15:34:51 -08001package {
2 default_applicable_licenses: ["external_piex_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "external_piex_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "SPDX-license-identifier-Apache-2.0",
12 ],
13 license_text: [
14 "LICENSE",
15 ],
16}
17
Chih-Hung Hsieh1ee57812017-09-29 10:32:27 -070018cc_defaults {
19 name: "piex_default_cflags",
20 cflags: ["-Wall", "-Werror", "-Wsign-compare"],
21}
22
Colin Crosscdd77cc2016-12-01 17:37:01 -080023cc_library_static {
24 name: "libbinary_parse",
Jerome Gaillardb33dd7d2018-07-10 16:07:54 +010025 host_supported: true,
Chih-Hung Hsieh1ee57812017-09-29 10:32:27 -070026 defaults: ["piex_default_cflags"],
Jiyong Parkac5a3092017-06-14 19:03:15 +090027 vendor_available: true,
Justin Yun12084de2020-11-11 18:22:26 +090028 product_available: true,
Colin Crosscdd77cc2016-12-01 17:37:01 -080029 srcs: [
30 "src/binary_parse/cached_paged_byte_array.cc",
31 "src/binary_parse/range_checked_byte_ptr.cc",
32 ],
Jerome Gaillard1ef9d0c2018-11-29 14:50:11 +000033 target: {
34 windows: {
35 enabled: true,
36 },
37 },
Colin Crosscdd77cc2016-12-01 17:37:01 -080038}
39
40cc_library_static {
41 name: "libimage_type_recognition",
Jerome Gaillardb33dd7d2018-07-10 16:07:54 +010042 host_supported: true,
Chih-Hung Hsieh1ee57812017-09-29 10:32:27 -070043 defaults: ["piex_default_cflags"],
Jiyong Parkac5a3092017-06-14 19:03:15 +090044 vendor_available: true,
Justin Yun12084de2020-11-11 18:22:26 +090045 product_available: true,
Colin Crosscdd77cc2016-12-01 17:37:01 -080046 srcs: [
47 "src/image_type_recognition/image_type_recognition_lite.cc",
48 ],
49 static_libs: ["libbinary_parse"],
Jerome Gaillard1ef9d0c2018-11-29 14:50:11 +000050 target: {
51 windows: {
52 enabled: true,
53 },
54 },
Colin Crosscdd77cc2016-12-01 17:37:01 -080055}
56
57cc_library_static {
58 name: "libtiff_directory",
Jerome Gaillardb33dd7d2018-07-10 16:07:54 +010059 host_supported: true,
Chih-Hung Hsieh1ee57812017-09-29 10:32:27 -070060 defaults: ["piex_default_cflags"],
Jiyong Parkac5a3092017-06-14 19:03:15 +090061 vendor_available: true,
Justin Yun12084de2020-11-11 18:22:26 +090062 product_available: true,
Colin Crosscdd77cc2016-12-01 17:37:01 -080063 srcs: [
64 "src/tiff_directory/tiff_directory.cc",
65 ],
66 static_libs: ["libbinary_parse"],
Jerome Gaillard1ef9d0c2018-11-29 14:50:11 +000067 target: {
68 windows: {
69 enabled: true,
70 },
71 },
Colin Crosscdd77cc2016-12-01 17:37:01 -080072}
73
Jerome Gaillardfe0cffa2019-06-27 19:31:37 +010074cc_library {
Colin Crosscdd77cc2016-12-01 17:37:01 -080075 name: "libpiex",
Jerome Gaillardb33dd7d2018-07-10 16:07:54 +010076 host_supported: true,
Chih-Hung Hsieh1ee57812017-09-29 10:32:27 -070077 defaults: ["piex_default_cflags"],
Jayant Chowdhary66603542017-05-17 14:31:25 -070078 vendor_available: true,
Justin Yun12084de2020-11-11 18:22:26 +090079 product_available: true,
Justin Yun878bf5c2017-07-24 15:19:44 +090080 vndk: {
81 enabled: true,
82 },
Colin Crosscdd77cc2016-12-01 17:37:01 -080083 srcs: [
Colin Crosscdd77cc2016-12-01 17:37:01 -080084 "src/piex.cc",
Nick Chusidaf84d1d2021-06-08 14:23:18 -040085 "src/piex_cr3.cc",
86 "src/tiff_parser.cc",
Colin Crosscdd77cc2016-12-01 17:37:01 -080087 ],
Colin Crossb57a64f2016-12-05 13:52:47 -080088 export_include_dirs: ["."],
Colin Crosscdd77cc2016-12-01 17:37:01 -080089 static_libs: [
90 "libbinary_parse",
91 "libimage_type_recognition",
92 "libtiff_directory",
93 ],
Jerome Gaillard1ef9d0c2018-11-29 14:50:11 +000094 target: {
95 windows: {
96 enabled: true,
97 },
98 },
Colin Crosscdd77cc2016-12-01 17:37:01 -080099}