forked from dallison/subspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.bp
More file actions
46 lines (43 loc) · 1.14 KB
/
Copy pathAndroid.bp
File metadata and controls
46 lines (43 loc) · 1.14 KB
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
// Copyright 2023-2026 David Allison
// All Rights Reserved
// See LICENSE file for licensing information.
soong_namespace {}
// Common defaults for all subspace native modules.
cc_defaults {
name: "subspace_defaults",
cflags: [
"-std=c++17",
"-Wall",
"-Wextra",
"-Wno-sign-compare",
"-Wno-missing-field-initializers",
"-Wno-unused-parameter",
],
target: {
android: {
cflags: ["-DSUBSPACE_ANDROID"],
},
},
cppflags: ["-fexceptions"],
local_include_dirs: ["."],
include_dirs: ["external/subspace"],
rtti: true,
stl: "c++_shared",
min_sdk_version: "28",
compile_multilib: "64",
}
// Generate C++ protobuf sources from subspace.proto.
cc_library_static {
name: "libsubspace_proto",
defaults: ["subspace_defaults"],
srcs: ["proto/subspace.proto"],
proto: {
type: "full",
canonical_path_from_root: false,
include_dirs: ["external/protobuf/src"],
export_proto_headers: true,
},
shared_libs: ["libprotobuf-cpp-full"],
export_shared_lib_headers: ["libprotobuf-cpp-full"],
rtti: false,
}