| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/toolchain/win/midl.gni") | 5 import("//build/toolchain/win/midl.gni") |
| 6 | 6 |
| 7 config("google_update_config") { | 7 midl("google_update") { |
| 8 # Chromium uses include paths like "google_update/google_update_idl.h", | |
| 9 # so add root_gen_dir, rather then target_gen_dir to include dirs. | |
| 10 include_dirs = [ "$root_gen_dir" ] | |
| 11 } | |
| 12 | |
| 13 midl("google_update_idl") { | |
| 14 sources = [ | 8 sources = [ |
| 15 "google_update_idl.idl", | 9 "google_update_idl.idl", |
| 16 ] | 10 ] |
| 17 } | 11 } |
| 18 | |
| 19 static_library("google_update") { | |
| 20 sources = [ | |
| 21 "$target_gen_dir/google_update_idl.h", | |
| 22 "$target_gen_dir/google_update_idl_i.c", | |
| 23 ] | |
| 24 | |
| 25 public_configs = [ ":google_update_config" ] | |
| 26 | |
| 27 deps = [ | |
| 28 ":google_update_idl", | |
| 29 ] | |
| 30 } | |
| OLD | NEW |