| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |