Index: base/trace_event/etw_manifest/BUILD.gn |
diff --git a/base/trace_event/etw_manifest/BUILD.gn b/base/trace_event/etw_manifest/BUILD.gn |
index 07cf80edcc9dadb3a5e4198d7f88a820c9a02188..f62e356b118ba343c540863123b28cdf96c90229 100644 |
--- a/base/trace_event/etw_manifest/BUILD.gn |
+++ b/base/trace_event/etw_manifest/BUILD.gn |
@@ -5,11 +5,8 @@ |
assert(is_win, "This only runs on Windows.") |
# Makes the .h/.rc files from the .man file. |
-action("chrome_events_win") { |
- visibility = [ |
- "//base/trace_event/*", |
- "//chrome:main_dll", |
- ] |
+action("chrome_events_win_generate") { |
+ visibility = [ ":*" ] |
script = "build/message_compiler.py" |
sources = [ |
@@ -35,3 +32,17 @@ action("chrome_events_win") { |
rebase_path("chrome_events_win.man", root_build_dir), |
] |
} |
+ |
+# Compile the generated files. |
+source_set("chrome_events_win") { |
+ visibility = [ |
+ "//base/trace_event/*", |
+ "//chrome:main_dll", |
+ ] |
+ |
+ sources = get_target_outputs(":chrome_events_win_generate") |
+ |
+ deps = [ |
+ ":chrome_events_win_generate", |
+ ] |
+} |