[gn build] Port a443b3d18ef4 (HTMLLogger.inc)
authorNico Weber <thakis@chromium.org>
Wed, 19 Apr 2023 17:52:40 +0000 (13:52 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 19 Apr 2023 18:04:08 +0000 (14:04 -0400)
Similar to 374db8fc2e49f.

llvm/utils/gn/secondary/clang/lib/Analysis/FlowSensitive/BUILD.gn

index 34261f91d79cb75c0f7a42ea6cd35eb0bafd9dc3..14325a8268dbc96e147b3faa87cea73fe0f19283 100644 (file)
@@ -1,16 +1,34 @@
+action("HTMLLogger") {
+  script = "//clang/utils/bundle_resources.py"
+  outputs = [ "$target_gen_dir/HTMLLogger.inc" ]
+  inputs = [
+    "HTMLLogger.html",
+    "HTMLLogger.css",
+    "HTMLLogger.js",
+  ]
+  args =
+      rebase_path(outputs, root_build_dir) + rebase_path(inputs, root_build_dir)
+}
+
 static_library("FlowSensitive") {
   output_name = "clangAnalysisFlowSensitive"
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
+    ":HTMLLogger",
     "//clang/lib/AST",
     "//clang/lib/Analysis",
   ]
+  include_dirs = [
+    # To pick up HTMLLogger.inc:
+    target_gen_dir,
+  ]
   sources = [
     "Arena.cpp",
     "ControlFlowContext.cpp",
     "DataflowAnalysisContext.cpp",
     "DataflowEnvironment.cpp",
     "DebugSupport.cpp",
+    "HTMLLogger.cpp",
     "Logger.cpp",
     "Transfer.cpp",
     "TypeErasedDataflowAnalysis.cpp",