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

Side by Side Diff: build/toolchain/win/midl.gni

Issue 2286413002: Move gyp-win-tool to the GN Windows toolchain. (Closed)
Patch Set: fix Created 4 years, 3 months 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 | « build/toolchain/win/BUILD.gn ('k') | build/toolchain/win/tool_wrapper.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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) 5 assert(is_win)
6 6
7 import("//build/config/win/visual_studio_version.gni") 7 import("//build/config/win/visual_studio_version.gni")
8 8
9 # This template defines a rule to invoke the MS IDL compiler. The generated 9 # This template defines a rule to invoke the MS IDL compiler. The generated
10 # source code will be compiled and linked into targets that depend on this. 10 # source code will be compiled and linked into targets that depend on this.
(...skipping 26 matching lines...) Expand all
37 interface_identifier_file = "{{source_name_part}}_i.c" 37 interface_identifier_file = "{{source_name_part}}_i.c"
38 proxy_file = "{{source_name_part}}_p.c" 38 proxy_file = "{{source_name_part}}_p.c"
39 type_library_file = "{{source_name_part}}.tlb" 39 type_library_file = "{{source_name_part}}.tlb"
40 40
41 action_foreach(action_name) { 41 action_foreach(action_name) {
42 visibility = [ ":$source_set_name" ] 42 visibility = [ ":$source_set_name" ]
43 43
44 # This functionality is handled by the win-tool because the GYP build has 44 # This functionality is handled by the win-tool because the GYP build has
45 # MIDL support built-in. 45 # MIDL support built-in.
46 # TODO(brettw) move this to a separate MIDL wrapper script for better 46 # TODO(brettw) move this to a separate MIDL wrapper script for better
47 # clarity once GYP support is not needed. 47 # clarity.
48 script = "$root_build_dir/gyp-win-tool" 48 script = "//build/toolchain/win/tool_wrapper.py"
49 49
50 sources = invoker.sources 50 sources = invoker.sources
51 51
52 # Note that .tlb is not included in the outputs as it is not always 52 # Note that .tlb is not included in the outputs as it is not always
53 # generated depending on the content of the input idl file. 53 # generated depending on the content of the input idl file.
54 outputs = [ 54 outputs = [
55 "$out_dir/$header_file", 55 "$out_dir/$header_file",
56 "$out_dir/$dlldata_file", 56 "$out_dir/$dlldata_file",
57 "$out_dir/$interface_identifier_file", 57 "$out_dir/$interface_identifier_file",
58 "$out_dir/$proxy_file", 58 "$out_dir/$proxy_file",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 sources = process_file_template(invoker.sources, 95 sources = process_file_template(invoker.sources,
96 [ "$out_dir/$interface_identifier_file" ]) 96 [ "$out_dir/$interface_identifier_file" ])
97 97
98 public_deps = [ 98 public_deps = [
99 ":$action_name", 99 ":$action_name",
100 ] 100 ]
101 101
102 configs += [ "//build/config/win:midl_warnings" ] 102 configs += [ "//build/config/win:midl_warnings" ]
103 } 103 }
104 } 104 }
OLDNEW
« no previous file with comments | « build/toolchain/win/BUILD.gn ('k') | build/toolchain/win/tool_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698