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

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

Issue 544423002: Convert GN visibility variables to lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 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/secondary/tools/grit/grit_rule.gni ('k') | chrome/BUILD.gn » ('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. 9 # This template defines a rule to invoke the MS IDL compiler.
10 # 10 #
(...skipping 19 matching lines...) Expand all
30 out_dir = target_gen_dir 30 out_dir = target_gen_dir
31 } 31 }
32 32
33 header_file = "{{source_name_part}}.h" 33 header_file = "{{source_name_part}}.h"
34 dlldata_file = "{{source_name_part}}.dlldata.c" 34 dlldata_file = "{{source_name_part}}.dlldata.c"
35 interface_identifier_file = "{{source_name_part}}_i.c" 35 interface_identifier_file = "{{source_name_part}}_i.c"
36 proxy_file = "{{source_name_part}}_p.c" 36 proxy_file = "{{source_name_part}}_p.c"
37 type_library_file = "{{source_name_part}}.tlb" 37 type_library_file = "{{source_name_part}}.tlb"
38 38
39 action_foreach(action_name) { 39 action_foreach(action_name) {
40 visibility = ":$source_set_name" 40 visibility = [ ":$source_set_name" ]
41 41
42 # This functionality is handled by the win-tool because the GYP build has 42 # This functionality is handled by the win-tool because the GYP build has
43 # MIDL support built-in. 43 # MIDL support built-in.
44 # TODO(brettw) move this to a separate MIDL wrapper script for better 44 # TODO(brettw) move this to a separate MIDL wrapper script for better
45 # clarity once GYP support is not needed. 45 # clarity once GYP support is not needed.
46 script = "$root_build_dir/gyp-win-tool" 46 script = "$root_build_dir/gyp-win-tool"
47 47
48 sources = invoker.sources 48 sources = invoker.sources
49 49
50 # Note that .tlb is not included in the outputs as it is not always 50 # Note that .tlb is not included in the outputs as it is not always
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 # We only compile the IID files from the IDL tool rather than all outputs. 93 # We only compile the IID files from the IDL tool rather than all outputs.
94 sources = process_file_template( 94 sources = process_file_template(
95 invoker.sources, 95 invoker.sources,
96 [ "$out_dir/$interface_identifier_file" ]) 96 [ "$out_dir/$interface_identifier_file" ])
97 97
98 deps = [ ":$action_name" ] 98 deps = [ ":$action_name" ]
99 } 99 }
100 } 100 }
OLDNEW
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698