| 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 19 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |