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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
51 # generated depending on the content of the input idl file. | 51 # generated depending on the content of the input idl file. |
52 outputs = [ | 52 outputs = [ |
53 "$out_dir/$header_file", | 53 "$out_dir/$header_file", |
54 "$out_dir/$dlldata_file", | 54 "$out_dir/$dlldata_file", |
55 "$out_dir/$interface_identifier_file", | 55 "$out_dir/$interface_identifier_file", |
56 "$out_dir/$proxy_file", | 56 "$out_dir/$proxy_file", |
57 ] | 57 ] |
58 | 58 |
59 if (current_cpu == "x86") { | 59 if (cpu_arch == "x86") { |
60 win_tool_arch = "environment.x86" | 60 win_tool_arch = "environment.x86" |
61 idl_target_platform = "win32" | 61 idl_target_platform = "win32" |
62 } else if (current_cpu == "x64") { | 62 } else if (cpu_arch == "x64") { |
63 win_tool_arch = "environment.x64" | 63 win_tool_arch = "environment.x64" |
64 idl_target_platform = "x64" | 64 idl_target_platform = "x64" |
65 } else { | 65 } else { |
66 assert(false, "Need environment for this arch") | 66 assert(false, "Need environment for this arch") |
67 } | 67 } |
68 | 68 |
69 args = [ | 69 args = [ |
70 "midl-wrapper", | 70 "midl-wrapper", |
71 win_tool_arch, | 71 win_tool_arch, |
72 rebase_path(out_dir, root_build_dir), | 72 rebase_path(out_dir, root_build_dir), |
(...skipping 18 matching lines...) Expand all Loading... |
91 | 91 |
92 # 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. |
93 sources = process_file_template(invoker.sources, | 93 sources = process_file_template(invoker.sources, |
94 [ "$out_dir/$interface_identifier_file" ]) | 94 [ "$out_dir/$interface_identifier_file" ]) |
95 | 95 |
96 deps = [ | 96 deps = [ |
97 ":$action_name", | 97 ":$action_name", |
98 ] | 98 ] |
99 } | 99 } |
100 } | 100 } |
OLD | NEW |