Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: base/trace_event/etw_manifest/BUILD.gn

Issue 1440693003: Unify mc.exe calling in GN, set environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/trace_event/etw_manifest/BUILD/message_compiler.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/etw_manifest/BUILD/message_compiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698