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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 group("cloud_print") { | |
8 if (is_win) { | |
9 public_deps = [ | |
10 "//cloud_print/service/win:cloud_print_service", | |
11 "//cloud_print/service/win:cloud_print_service_config", | |
12 "//cloud_print/service/win:cloud_print_service_setup", | |
13 "//cloud_print/virtual_driver/win/install:virtual_driver_setup", | |
14 "//cloud_print/virtual_driver/win/port_monitor", | |
15 ] | |
16 | |
17 # When compiling 32-bit, also reference the 64-bit driver for installing on | |
18 # 64-bit systems. | |
19 if (target_cpu == "x86" && current_cpu == "x86") { | |
20 # TODO(brettw) enable this when Windows cross-compiles are set up. | |
21 # public_deps += [ "//cloud_print/virtual_driver/win/port_monitor(//build/
toolchain/win:x64)" ] | |
22 } | |
23 } | |
24 } | |
25 | |
26 test("cloud_print_unittests") { | 7 test("cloud_print_unittests") { |
27 sources = [ | 8 sources = [ |
28 "service/service_state_unittest.cc", | 9 "service/service_state_unittest.cc", |
29 ] | 10 ] |
30 | 11 |
31 deps = [ | 12 deps = [ |
32 "//base", | 13 "//base", |
33 "//base/test:run_all_unittests", | 14 "//base/test:run_all_unittests", |
34 "//cloud_print/service:lib", | 15 "//cloud_print/service:cloud_print_service_lib", |
35 "//testing/gmock", | 16 "//testing/gmock", |
36 "//testing/gtest", | 17 "//testing/gtest", |
37 ] | 18 ] |
38 | 19 |
39 if (is_win) { | 20 # TODO(GYP) |
40 sources += [ | 21 # if (is_win) { |
41 "service/win/service_ipc_unittest.cc", | 22 # sources += [ |
42 "virtual_driver/win/port_monitor/port_monitor_unittest.cc", | 23 # "service/win/service_ipc_unittest.cc", |
43 ] | 24 # "virtual_driver/win/port_monitor/port_monitor_unittest.cc", |
44 deps += [ "//cloud_print/virtual_driver/win/port_monitor:lib" ] | 25 # ] |
45 libs = [ "secur32.lib" ] | 26 # |
46 } | 27 # deps += [ "virtual_driver/win:gcp_portmon_lib" ] |
| 28 #} |
47 } | 29 } |
OLD | NEW |