Skip to content

Commit

Permalink
[gn build] (manually) port c91ce94 (HTMLForestResources.inc)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jul 19, 2022
1 parent 9d1ea17 commit 374db8f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
action("HTMLForestResources") {
script = "bundle_resources.py"
inputs = [
"HTMLForest.css",
"HTMLForest.js",
"HTMLForest.html",
]
outputs = [ "$target_gen_dir/HTMLForestResources.inc" ]
args =
rebase_path(outputs, root_build_dir) + rebase_path(inputs, root_build_dir)
}

executable("clang-pseudo") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
":HTMLForestResources",
"//clang-tools-extra/pseudo/lib",
"//clang-tools-extra/pseudo/lib/cli",
"//clang/lib/Basic",
"//llvm/lib/Support",
]
include_dirs = [ "../include" ]
sources = [ "ClangPseudo.cpp" ]
include_dirs = [
"../include",

# To pick up HTMLForestResources.inc:
target_gen_dir,
]
sources = [
"ClangPseudo.cpp",
"HTMLForest.cpp",
]
}

0 comments on commit 374db8f

Please sign in to comment.