[llvm] 374db8f - [gn build] (manually) port c91ce941448 (HTMLForestResources.inc)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 13:51:43 PDT 2022
Author: Nico Weber
Date: 2022-07-19T16:51:30-04:00
New Revision: 374db8fc2e49f7d627e8942681d467422641f4b2
URL: https://github.com/llvm/llvm-project/commit/374db8fc2e49f7d627e8942681d467422641f4b2
DIFF: https://github.com/llvm/llvm-project/commit/374db8fc2e49f7d627e8942681d467422641f4b2.diff
LOG: [gn build] (manually) port c91ce941448 (HTMLForestResources.inc)
Added:
Modified:
llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn
index d891dd22673c7..5de30fda4629b 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/tool/BUILD.gn
@@ -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",
+ ]
}
More information about the llvm-commits
mailing list