1 2package { 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 8license { 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 19cc_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 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 45cc_library_headers { 46 name: "libdynamic_depth-public_headers", 47 host_supported: true, 48 export_include_dirs: ["includes"], 49} 50 51cc_library_headers { 52 name: "libdynamic_depth-internal_headers", 53 host_supported: true, 54 export_include_dirs: ["internal"], 55} 56 57cc_library { 58 name: "libdynamic_depth", 59 host_supported: true, 60 defaults: ["libdynamic_depth-defaults"], 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} 72 73cc_library_static { 74 name: "libdynamic_depth_ndk", 75 defaults: ["libdynamic_depth-defaults"], 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} 96