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 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 45cc_library_headers { 46 name: "libdynamic_depth-public_headers", 47 export_include_dirs: ["includes"], 48} 49 50cc_library_headers { 51 name: "libdynamic_depth-internal_headers", 52 export_include_dirs: ["internal"], 53} 54 55cc_library { 56 name: "libdynamic_depth", 57 defaults: ["libdynamic_depth-defaults"], 58 header_libs: [ 59 "libdynamic_depth-public_headers", 60 "libdynamic_depth-internal_headers", 61 ], 62 srcs: ["internal/**/*.cc"], 63 shared_libs: [ 64 "libbase", 65 "libimage_io", 66 "libxml2", 67 ], 68} 69 70cc_library_static { 71 name: "libdynamic_depth_ndk", 72 defaults: ["libdynamic_depth-defaults"], 73 export_include_dirs: [ 74 "includes", 75 "internal" 76 ], 77 srcs: ["internal/**/*.cc"], 78 shared_libs: [ 79 "liblog", 80 ], 81 static_libs: [ 82 "libimage_io_ndk", 83 "libbase_ndk", 84 "libxml2_ndk", 85 ], 86 cflags: [ 87 "-fvisibility=hidden", 88 "-DSTATIC_LIBXML=1", 89 ], 90 sdk_version: "current", 91 stl: "c++_static", 92} 93