Debian Codegraph @

llvm-project/llvm/utils/gn/secondary/clang-tools-extra/pseudo/include/BUILD.gn

raw
1 import("//llvm/utils/gn/build/compiled_action.gni")
2
3 template("gen") {
4 compiled_action(target_name) {
5 tool = "//clang-tools-extra/pseudo/gen:clang-pseudo-gen"
6 inputs = [ "../lib/cxx/cxx.bnf" ]
7 outputs = [ "$target_gen_dir/$target_name" ]
8 args = [
9 "--grammar",
10 rebase_path(inputs[0], root_build_dir),
11 "-o",
12 rebase_path(outputs[0], root_build_dir),
13 invoker.flag,
14 ]
15 }
16 }
17
18 gen("CXXSymbols.inc") {
19 flag = "--emit-symbol-list"
20 }
21
22 gen("CXXBNF.inc") {
23 flag = "--emit-grammar-content"
24 }
25
26 config("cxx_gen_config") {
27 visibility = [ ":cxx_gen" ]
28 include_dirs = [ target_gen_dir ]
29 }
30
31 group("cxx_gen") {
32 deps = [
33 ":CXXBNF.inc",
34 ":CXXSymbols.inc",
35 ]
36
37 # Let targets depending on this find the generated files.
38 public_configs = [ ":cxx_gen_config" ]
39 }