| 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 import("//build/win/message_compiler.gni") | 
|  | 6 | 
| 5 assert(is_win, "This only runs on Windows.") | 7 assert(is_win, "This only runs on Windows.") | 
| 6 | 8 | 
| 7 # Makes the .h/.rc files from the .man file. | 9 message_compiler("chrome_events_win") { | 
| 8 action("chrome_events_win_generate") { | 10   visibility = [ | 
| 9   visibility = [ ":*" ] | 11     "//base/trace_event/*", | 
| 10   script = "build/message_compiler.py" | 12     "//chrome:main_dll", | 
|  | 13   ] | 
| 11 | 14 | 
| 12   sources = [ | 15   sources = [ | 
| 13     "chrome_events_win.man", | 16     "chrome_events_win.man", | 
| 14   ] | 17   ] | 
| 15 | 18 | 
| 16   outputs = [ | 19   user_mode_logging = true | 
| 17     "$target_gen_dir/chrome_events_win.h", |  | 
| 18     "$target_gen_dir/chrome_events_win.rc", |  | 
| 19   ] |  | 
| 20 |  | 
| 21   args = [ |  | 
| 22     # Where to put the header. |  | 
| 23     "-h", |  | 
| 24     rebase_path("$target_gen_dir", root_build_dir), |  | 
| 25 |  | 
| 26     # Where to put the .rc file. |  | 
| 27     "-r", |  | 
| 28     rebase_path("$target_gen_dir", root_build_dir), |  | 
| 29 |  | 
| 30     # Generate the user-mode code. |  | 
| 31     "-um", |  | 
| 32     rebase_path("chrome_events_win.man", root_build_dir), |  | 
| 33   ] |  | 
| 34 } | 20 } | 
| 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 | 
|---|