OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 assert(is_win, "This only runs on Windows.") | 5 assert(is_win, "This only runs on Windows.") |
6 | 6 |
7 # Makes the .h/.rc files from the .man file. | 7 # Makes the .h/.rc files from the .man file. |
8 action("chrome_events_win") { | 8 action("chrome_events_win_generate") { |
9 visibility = [ | 9 visibility = [ ":*" ] |
10 "//base/trace_event/*", | |
11 "//chrome:main_dll", | |
12 ] | |
13 script = "build/message_compiler.py" | 10 script = "build/message_compiler.py" |
14 | 11 |
15 sources = [ | 12 sources = [ |
16 "chrome_events_win.man", | 13 "chrome_events_win.man", |
17 ] | 14 ] |
18 | 15 |
19 outputs = [ | 16 outputs = [ |
20 "$target_gen_dir/chrome_events_win.h", | 17 "$target_gen_dir/chrome_events_win.h", |
21 "$target_gen_dir/chrome_events_win.rc", | 18 "$target_gen_dir/chrome_events_win.rc", |
22 ] | 19 ] |
23 | 20 |
24 args = [ | 21 args = [ |
25 # Where to put the header. | 22 # Where to put the header. |
26 "-h", | 23 "-h", |
27 rebase_path("$target_gen_dir", root_build_dir), | 24 rebase_path("$target_gen_dir", root_build_dir), |
28 | 25 |
29 # Where to put the .rc file. | 26 # Where to put the .rc file. |
30 "-r", | 27 "-r", |
31 rebase_path("$target_gen_dir", root_build_dir), | 28 rebase_path("$target_gen_dir", root_build_dir), |
32 | 29 |
33 # Generate the user-mode code. | 30 # Generate the user-mode code. |
34 "-um", | 31 "-um", |
35 rebase_path("chrome_events_win.man", root_build_dir), | 32 rebase_path("chrome_events_win.man", root_build_dir), |
36 ] | 33 ] |
37 } | 34 } |
| 35 |
| 36 # Compile the generated files. |
| 37 source_set("chrome_events_win") { |
| 38 visibility = [ |
| 39 "//base/trace_event/*", |
| 40 "//chrome:main_dll", |
| 41 ] |
| 42 |
| 43 sources = get_target_outputs(":chrome_events_win_generate") |
| 44 |
| 45 deps = [ |
| 46 ":chrome_events_win_generate", |
| 47 ] |
| 48 } |
OLD | NEW |