vchigrin | ae7a0ae | 2015-01-14 21:39:51 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/toolchain/win/midl.gni") |
| 6 | |
| 7 | config("google_update_config") { |
| 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 = [ |
| 15 | "google_update_idl.idl", |
| 16 | ] |
| 17 | } |
| 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 | } |