-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
63 lines (59 loc) · 1.85 KB
/
BUILD.bazel
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
load("@chameleon//:bazel/build_settings.bzl", "gc_switch")
gc_switch(
name = "gc",
build_setting_default = "disable",
)
config_setting(
name = "with_gc",
flag_values = {
":gc" : "enable",
}
)
config_setting(
name = "without_gc",
flag_values = {
":gc" : "disable",
}
)
cc_library(
name = "chameleon",
srcs = ["//src/Base:base_srcs",
"//src/Parser:parser_source",
"//src/Parser:external_parser_src",
"//src:utility_src",
"//src:refl_src",
"//src/Base/Concepts:concepts_srcs",
"//src/Misc/testLanguage:testLang_parser_srcs",
"//src/Api:api_srcs",
"//src/TransEngine/Rewrite:rewrite_srcs",
"//src/TransEngine/TransLang:chameleons_parser_srcs",
"//src/TransEngine/TransLang:chameleons_compiler_srcs",
"//src/TransEngine:pattern_matching",
"//src/Analysis:analyzer_src",
],
hdrs = ["//src/Base:base_hdrs",
"//src/Parser:parser_hdrs",
"//src/Parser:external_parser_hdrs",
"//src:utility_hdrs",
"//src:refl_src",
"//src/Base/Concepts:concepts_srcs",
"//src/Api:api_srcs",
"//src/TransEngine/Rewrite:rewrite_hdrs",
"//src/Analysis:analyzer_src",
"//src/TransEngine:pattern_matching",
],
deps = ["@antlr4_runtime//:antlr4_runtime",
"//parsers:wgsl_parser",
"@rapidcheck//:rapidcheck",
"@plog//:plog",
] + select({
"with_gc" : ["@oilpan//:cppgc"],
"without_gc" : [],
}),
copts = select({
"with_gc" : ["-DENABLE_GC=true"],
"without_gc" : ["-DENABLE_GC=false"],
}),
includes = ["src"],
visibility = ["//visibility:public"]
)