forked from Tencent/Pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
49 lines (46 loc) · 953 Bytes
/
BUILD
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
gen_rule(
name = 'gen_tutorial',
srcs = [
'tutorial.pebble',
],
cmd = '$BUILD_DIR/source/rpc/compiler/cpp/src/pebble -r -out $BUILD_DIR/tutorial/rpc --gen cpp $SRCS',
deps = [
'//source/rpc/compiler/cpp/src:pebble'
],
outs = [
'tutorial.cpp',
'tutorial_BaseService.cpp',
],
)
cc_binary(
name = 'client',
srcs = [
'client.cpp',
'tutorial.cpp',
'tutorial_BaseService.cpp',
],
incs = [
'../../source/rpc/',
'../../source/',
],
deps = [
'//source/rpc:pebble_rpc',
':gen_tutorial'
]
)
cc_binary(
name = 'server',
srcs = [
'server.cpp',
'tutorial.cpp',
'tutorial_BaseService.cpp',
],
incs = [
'../../source/app/',
'../../source/',
],
deps = [
'//source/app:pebble_app',
':gen_tutorial'
]
)