| 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") |
| 8 |
| 7 # This template defines a rule to invoke the MS IDL compiler. | 9 # This template defines a rule to invoke the MS IDL compiler. |
| 8 # | 10 # |
| 9 # Parameters | 11 # Parameters |
| 10 # | 12 # |
| 11 # sources | 13 # sources |
| 12 # List of .idl file to process. | 14 # List of .idl file to process. |
| 13 # | 15 # |
| 14 # out_dir (optional) | 16 # out_dir (optional) |
| 15 # Directory to write the generated files to. Defaults to target_gen_dir. | 17 # Directory to write the generated files to. Defaults to target_gen_dir. |
| 16 # | 18 # |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 type_library_file, | 72 type_library_file, |
| 71 header_file, | 73 header_file, |
| 72 dlldata_file, | 74 dlldata_file, |
| 73 interface_identifier_file, | 75 interface_identifier_file, |
| 74 proxy_file, | 76 proxy_file, |
| 75 "{{source}}", | 77 "{{source}}", |
| 76 "/char", "signed", | 78 "/char", "signed", |
| 77 "/env", idl_target_platform, | 79 "/env", idl_target_platform, |
| 78 "/Oicf", | 80 "/Oicf", |
| 79 ] | 81 ] |
| 82 |
| 83 foreach(include, system_include_dirs) { |
| 84 args += [ "/I", include ] |
| 85 } |
| 80 } | 86 } |
| 81 | 87 |
| 82 source_set(target_name) { | 88 source_set(target_name) { |
| 83 if (defined(invoker.visibility)) { | 89 if (defined(invoker.visibility)) { |
| 84 visibility = invoker.visibility | 90 visibility = invoker.visibility |
| 85 } | 91 } |
| 86 | 92 |
| 87 # 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. |
| 88 sources = process_file_template( | 94 sources = process_file_template( |
| 89 invoker.sources, | 95 invoker.sources, |
| 90 [ "$out_dir/$interface_identifier_file" ]) | 96 [ "$out_dir/$interface_identifier_file" ]) |
| 91 | 97 |
| 92 deps = [ ":$action_name" ] | 98 deps = [ ":$action_name" ] |
| 93 } | 99 } |
| 94 } | 100 } |
| OLD | NEW |