OLD | NEW |
(Empty) | |
| 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("//testing/test.gni") |
| 6 |
| 7 assert(is_win) |
| 8 |
| 9 shared_library("gcapi") { |
| 10 output_name = "gcapi_dll" |
| 11 |
| 12 sources = [ |
| 13 "gcapi.def", |
| 14 "gcapi_dll.cc", |
| 15 ] |
| 16 |
| 17 deps = [ |
| 18 ":lib", |
| 19 "//base", |
| 20 ] |
| 21 } |
| 22 |
| 23 source_set("lib") { |
| 24 sources = [ |
| 25 "gcapi.cc", |
| 26 "gcapi.h", |
| 27 "gcapi_omaha_experiment.cc", |
| 28 "gcapi_omaha_experiment.h", |
| 29 "gcapi_reactivation.cc", |
| 30 "gcapi_reactivation.h", |
| 31 ] |
| 32 |
| 33 deps = [ |
| 34 "//base", |
| 35 "//chrome/installer/util", |
| 36 "//chrome/installer/launcher_support", |
| 37 "//components/variations", |
| 38 "//google_update", |
| 39 ] |
| 40 } |
| 41 |
| 42 test("gcapi_test") { |
| 43 sources = [ |
| 44 "gcapi_last_run_test.cc", |
| 45 "gcapi_omaha_experiment_test.cc", |
| 46 "gcapi_reactivation_test.cc", |
| 47 "gcapi_test.cc", |
| 48 "gcapi_test.rc", |
| 49 "gcapi_test_registry_overrider.cc", |
| 50 "gcapi_test_registry_overrider.h", |
| 51 "resource.h", |
| 52 ] |
| 53 |
| 54 deps = [ |
| 55 ":lib", |
| 56 "//base/test:test_support", |
| 57 "//chrome/installer/util", |
| 58 "//components/variations", |
| 59 "//testing/gtest", |
| 60 ] |
| 61 |
| 62 data_deps = [ |
| 63 ":gcapi", # Runtime dependency on this DLL. |
| 64 ] |
| 65 } |
OLD | NEW |