-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
50 lines (46 loc) · 1.02 KB
/
BUILD.gn
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
import("//build/ohos.gni")
config("weight_raft_headers") {
include_dirs = [
"include",
"//third_party/json/include",
]
}
ohos_shared_library("weight_raft") {
sources = [
"src/server.cpp",
"src/service.pb.cc",
"src/utils.cpp",
"src/weight_raft.cpp",
]
include_dirs = [
"include",
"//third_party/json/include",
]
public_configs = [ ":weight_raft_headers" ]
public_deps = [
"//third_party/braft:braft",
"//third_party/brpc:brpc",
]
use_rtti = true
use_exceptions = true
part_name = "weight_raft"
install_enable = true
}
ohos_executable("weight_raft_client") {
sources = [ "client_main.cpp" ]
include_dirs = [ "include" ]
deps = [ ":weight_raft" ]
use_rtti = true
use_exceptions = true
part_name = "weight_raft"
install_enable = true
}
ohos_executable("weight_raft_server") {
sources = [ "server_main.cpp" ]
include_dirs = [ "include" ]
deps = [ ":weight_raft" ]
use_rtti = true
use_exceptions = true
part_name = "weight_raft"
install_enable = true
}