Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 1 | |
Bob Badour | 24ec99c | 2021-02-12 20:49:01 -0800 | [diff] [blame] | 2 | package { |
| 3 | default_applicable_licenses: ["external_dynamic_depth_license"], |
| 4 | } |
| 5 | |
| 6 | // Added automatically by a large-scale-change |
| 7 | // See: http://go/android-license-faq |
| 8 | license { |
| 9 | name: "external_dynamic_depth_license", |
| 10 | visibility: [":__subpackages__"], |
| 11 | license_kinds: [ |
| 12 | "SPDX-license-identifier-Apache-2.0", |
| 13 | ], |
| 14 | license_text: [ |
| 15 | "LICENSE", |
| 16 | ], |
| 17 | } |
| 18 | |
Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 19 | cc_defaults { |
| 20 | name: "libdynamic_depth-defaults", |
| 21 | cflags: [ |
| 22 | "-DUNIX_ENV=1", |
| 23 | "-Werror", |
| 24 | "-Wno-reorder", |
| 25 | "-Wno-unused-parameter", |
| 26 | "-Wno-ignored-qualifiers", |
| 27 | "-Wno-macro-redefined", |
| 28 | ], |
| 29 | rtti: true, |
| 30 | cppflags: ["-fno-exceptions"], |
| 31 | clang: true, |
| 32 | sanitize: { |
| 33 | misc_undefined: [ |
| 34 | "unsigned-integer-overflow", |
| 35 | "signed-integer-overflow", |
| 36 | ], |
| 37 | }, |
| 38 | target: { |
| 39 | darwin: { |
| 40 | enabled: false, |
| 41 | }, |
| 42 | }, |
| 43 | } |
| 44 | |
| 45 | cc_library_headers { |
| 46 | name: "libdynamic_depth-public_headers", |
Austin Borger | 2bbd463 | 2021-12-14 23:05:01 +0000 | [diff] [blame] | 47 | host_supported: true, |
Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 48 | export_include_dirs: ["includes"], |
| 49 | } |
| 50 | |
| 51 | cc_library_headers { |
| 52 | name: "libdynamic_depth-internal_headers", |
Austin Borger | 2bbd463 | 2021-12-14 23:05:01 +0000 | [diff] [blame] | 53 | host_supported: true, |
Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 54 | export_include_dirs: ["internal"], |
| 55 | } |
| 56 | |
| 57 | cc_library { |
| 58 | name: "libdynamic_depth", |
Austin Borger | 2bbd463 | 2021-12-14 23:05:01 +0000 | [diff] [blame] | 59 | host_supported: true, |
Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 60 | defaults: ["libdynamic_depth-defaults"], |
Eino-Ville Talvala | 09f199a | 2018-11-15 15:49:02 -0800 | [diff] [blame] | 61 | header_libs: [ |
| 62 | "libdynamic_depth-public_headers", |
| 63 | "libdynamic_depth-internal_headers", |
| 64 | ], |
| 65 | srcs: ["internal/**/*.cc"], |
| 66 | shared_libs: [ |
| 67 | "libbase", |
| 68 | "libimage_io", |
| 69 | "libxml2", |
| 70 | ], |
| 71 | } |
Emilian Peev | 1a5387f | 2019-01-29 08:58:48 -0800 | [diff] [blame] | 72 | |
| 73 | cc_library_static { |
| 74 | name: "libdynamic_depth_ndk", |
| 75 | defaults: ["libdynamic_depth-defaults"], |
Emilian Peev | 1a5387f | 2019-01-29 08:58:48 -0800 | [diff] [blame] | 76 | export_include_dirs: [ |
| 77 | "includes", |
| 78 | "internal" |
| 79 | ], |
| 80 | srcs: ["internal/**/*.cc"], |
| 81 | shared_libs: [ |
| 82 | "liblog", |
| 83 | ], |
| 84 | static_libs: [ |
| 85 | "libimage_io_ndk", |
| 86 | "libbase_ndk", |
| 87 | "libxml2_ndk", |
| 88 | ], |
| 89 | cflags: [ |
| 90 | "-fvisibility=hidden", |
| 91 | "-DSTATIC_LIBXML=1", |
| 92 | ], |
| 93 | sdk_version: "current", |
| 94 | stl: "c++_static", |
| 95 | } |