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