1 template("gen_decision_forest") {
3 filename = invoker.filename
4 cpp_class = invoker.cpp_class
5 if (defined(invoker.deps)) {
6 extra_deps = invoker.deps
11 action("${target_name}Cpp") {
12 script = "//clang-tools-extra/clangd/quality/CompletionModelCodegen.py"
14 "$target_gen_dir/$filename.cpp",
15 "$target_gen_dir/$filename.h",
18 "$model/features.json",
23 rebase_path(model, root_build_dir),
25 rebase_path(target_gen_dir, root_build_dir),
33 config("${target_name}Config") {
34 cflags = [ "-Wno-unused-label" ]
37 source_set(target_name) {
39 "//llvm/utils/gn/build:clang_code",
40 ":${target_name}Config",
42 deps = [ ":${target_name}Cpp" ] + extra_deps
43 include_dirs = [ "." ]
44 sources = get_target_outputs(":${target_name}Cpp")