-
Notifications
You must be signed in to change notification settings - Fork 17
/
Android.bp
54 lines (49 loc) · 1.34 KB
/
Android.bp
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
package {
default_applicable_licenses: ["external_realm_cpp_license"],
}
license {
name: "external_realm_cpp_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0"
],
license_text: [
"LICENSE",
],
}
genrule {
name: "gen_realmcxx_version_numbers",
srcs: [
"dependencies.list",
"src/cpprealm/internal/version_numbers.hpp.in",
],
out: ["cpprealm/version_numbers.hpp"],
tool_files: ["tools/generate-version-numbers-for-soong.sh"],
cmd: "$(location) $(in) > $(out)",
}
cc_defaults {
name: "realm_cpp_defaults",
cflags: [
"-DREALM_AOSP_VENDOR=1"
],
cppflags: [
"-Wno-delete-non-abstract-non-virtual-dtor",
"-Wno-mismatched-tags",
"-Wno-unused-parameter",
"-Wno-reorder-ctor",
"-Wno-unused-function",
"-Wno-unused-local-typedef",
"-Wno-unused-variable"
],
generated_headers: ["gen_realmcxx_version_numbers"]
}
cc_library_static {
name: "realm-cpp",
defaults: ["realm_consumer_defaults", "realm_defaults", "realm_cpp_defaults"],
srcs: ["src/cpprealm/**/*.cpp"],
export_include_dirs: ["include"],
export_generated_headers: ["gen_realmcxx_version_numbers"],
static_libs: ["realm"],
include_build_directory: false,
vendor: true
}