1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 assert(is_win, "This only runs on Windows.")
7 # Makes the .h/.rc files from the .man file.
8 action("chrome_events_win_generate") {
10 script = "build/message_compiler.py"
13 "chrome_events_win.man",
17 "$target_gen_dir/chrome_events_win.h",
18 "$target_gen_dir/chrome_events_win.rc",
22 # Where to put the header.
24 rebase_path("$target_gen_dir", root_build_dir),
26 # Where to put the .rc file.
28 rebase_path("$target_gen_dir", root_build_dir),
30 # Generate the user-mode code.
32 rebase_path("chrome_events_win.man", root_build_dir),
36 # Compile the generated files.
37 source_set("chrome_events_win") {
39 "//base/trace_event/*",
43 sources = get_target_outputs(":chrome_events_win_generate")
46 ":chrome_events_win_generate",