-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathBUILD
86 lines (76 loc) · 1.84 KB
/
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
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
78
79
80
81
82
83
84
85
86
// Test objects
[
{ "config": {
"component": "testdata",
"plugins": [ "//testdata/plugin:simple_plugin" ]
} },
{ "cc_library": {
"name" : "foo",
"cc_sources" : [ "foo.cc" ],
"cc_headers" : [ "foo.h" ],
"dependencies": [ "//testdata/a:foo_pred_a",
"//testdata/b:foo_pred_b",
"//testdata/c:foo_pred_c",
"//testdata/d:foo_pred_d"
]
}
},
{ "cc_embed_data": {
"name": "bar_data",
"files": [ "bar_data.txt", "bar_data2.txt" ],
"namespace": [ "testdata", "bar_data" ]
} },
{ "cc_library": {
"name" : "bar",
"cc_sources" : [ "ba*.cc" ],
"cc_headers" : [ "bar.h" ],
"dependencies": [ "//testdata/b:bar_pred_b",
":bar_data"
],
"cc_compile_args": [ "-O3" ]
}
},
{ "cc_shared_library": {
"name" : "bar_shared",
"cc_headers" : [ "bar.h" ],
"dependencies": [ ":bar" ],
"major_version": "3",
"minor_version": "1",
"release_version": "0"
}
},
{ "cc_binary": {
"name" : "main",
"cc_sources" : [ "main.cc" ],
"dependencies": [ ":foo", ":bar" ],
"cc_linker_args": [ "-lm" ]
}
},
{ "py_binary": {
"name" : "py_main",
"py_sources" : [ "test.py" ],
"dependencies": [ "//common/base:py_flags",
"//testdata/a:test" ]
}
},
{ "java_binary": {
"name" : "java_main",
"java_sources" : [ "MainClass.java" ],
"dependencies": [ "//testdata/a:test_java" ]
}
},
{ "go_binary": {
"name": "go_main",
"go_sources": [ "main.go" ],
"dependencies": [ "//testdata/a:bar_go" ]
} },
{ "go_test": {
"name": "go_main_test",
"go_sources": [ "main_test.go" ],
"dependencies": [ "//testdata/a:bar_go" ]
} },
{ "simple_plugin": {
"name": "my_name",
"sources": [ "main2.go" ]
} }
]