1
2cc_defaults {
3    name: "libdynamic_depth-defaults",
4    cflags: [
5        "-DUNIX_ENV=1",
6        "-Werror",
7        "-Wno-reorder",
8        "-Wno-unused-parameter",
9        "-Wno-ignored-qualifiers",
10        "-Wno-macro-redefined",
11    ],
12    rtti: true,
13    cppflags: ["-fno-exceptions"],
14    clang: true,
15    sanitize: {
16        misc_undefined: [
17            "unsigned-integer-overflow",
18            "signed-integer-overflow",
19        ],
20    },
21    target: {
22        darwin: {
23            enabled: false,
24        },
25    },
26}
27
28cc_library_headers {
29  name: "libdynamic_depth-public_headers",
30  export_include_dirs: ["includes"],
31}
32
33cc_library_headers {
34  name: "libdynamic_depth-internal_headers",
35  export_include_dirs: ["internal"],
36}
37
38cc_library {
39    name: "libdynamic_depth",
40    defaults: ["libdynamic_depth-defaults"],
41    vendor_available: false,
42    header_libs: [
43        "libdynamic_depth-public_headers",
44        "libdynamic_depth-internal_headers",
45    ],
46    srcs: ["internal/**/*.cc"],
47    shared_libs: [
48        "libbase",
49        "libimage_io",
50        "libxml2",
51    ],
52}
53
54cc_library_static {
55    name: "libdynamic_depth_ndk",
56    defaults: ["libdynamic_depth-defaults"],
57    vendor_available: false,
58    export_include_dirs: [
59        "includes",
60        "internal"
61    ],
62    srcs: ["internal/**/*.cc"],
63    shared_libs: [
64        "liblog",
65    ],
66    static_libs: [
67        "libimage_io_ndk",
68        "libbase_ndk",
69        "libxml2_ndk",
70    ],
71    cflags: [
72        "-fvisibility=hidden",
73        "-DSTATIC_LIBXML=1",
74    ],
75    sdk_version: "current",
76    stl: "c++_static",
77}
78