| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 visibility = invoker.visibility | 94 visibility = invoker.visibility |
| 95 } | 95 } |
| 96 | 96 |
| 97 # We only compile the IID files from the IDL tool rather than all outputs. | 97 # We only compile the IID files from the IDL tool rather than all outputs. |
| 98 sources = process_file_template(invoker.sources, | 98 sources = process_file_template(invoker.sources, |
| 99 [ "$out_dir/$interface_identifier_file" ]) | 99 [ "$out_dir/$interface_identifier_file" ]) |
| 100 | 100 |
| 101 public_deps = [ | 101 public_deps = [ |
| 102 ":$action_name", | 102 ":$action_name", |
| 103 ] | 103 ] |
| 104 |
| 105 config("midl_warnings") { |
| 106 if (is_clang) { |
| 107 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_" |
| 108 cflags = [ "-Wno-extra-tokens" ] |
| 109 } |
| 110 } |
| 111 configs += [ ":midl_warnings" ] |
| 104 } | 112 } |
| 105 } | 113 } |
| OLD | NEW |