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

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

Issue 809783002: Fix ui/gl and gpu target building with GN on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and remove usage of system_include_dirs. Created 6 years 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/config/win/visual_studio_version.gni ('k') | build/toolchain/win/setup_toolchain.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. 9 # This template defines a rule to invoke the MS IDL compiler.
10 # 10 #
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 dlldata_file, 75 dlldata_file,
76 interface_identifier_file, 76 interface_identifier_file,
77 proxy_file, 77 proxy_file,
78 "{{source}}", 78 "{{source}}",
79 "/char", 79 "/char",
80 "signed", 80 "signed",
81 "/env", 81 "/env",
82 idl_target_platform, 82 idl_target_platform,
83 "/Oicf", 83 "/Oicf",
84 ] 84 ]
85
86 foreach(include, system_include_dirs) {
87 args += [
88 "/I",
89 include,
90 ]
91 }
92 } 85 }
93 86
94 source_set(target_name) { 87 source_set(target_name) {
95 if (defined(invoker.visibility)) { 88 if (defined(invoker.visibility)) {
96 visibility = invoker.visibility 89 visibility = invoker.visibility
97 } 90 }
98 91
99 # We only compile the IID files from the IDL tool rather than all outputs. 92 # We only compile the IID files from the IDL tool rather than all outputs.
100 sources = process_file_template(invoker.sources, 93 sources = process_file_template(invoker.sources,
101 [ "$out_dir/$interface_identifier_file" ]) 94 [ "$out_dir/$interface_identifier_file" ])
102 95
103 deps = [ 96 deps = [
104 ":$action_name", 97 ":$action_name",
105 ] 98 ]
106 } 99 }
107 } 100 }
OLDNEW
« no previous file with comments | « build/config/win/visual_studio_version.gni ('k') | build/toolchain/win/setup_toolchain.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698