| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 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/config/features.gni") |
| 6 import("//printing/features/features.gni") |
| 7 |
| 8 assert(is_chromeos) |
| 9 |
| 10 source_set("printing") { |
| 11 sources = [ |
| 12 "cups_print_job.cc", |
| 13 "cups_print_job.h", |
| 14 "cups_print_job_manager.cc", |
| 15 "cups_print_job_manager.h", |
| 16 "cups_print_job_manager_factory.cc", |
| 17 "cups_print_job_manager_factory.h", |
| 18 "cups_print_job_notification.cc", |
| 19 "cups_print_job_notification.h", |
| 20 "cups_print_job_notification_manager.cc", |
| 21 "cups_print_job_notification_manager.h", |
| 22 "fake_printer_discoverer.cc", |
| 23 "fake_printer_discoverer.h", |
| 24 "ppd_provider_factory.cc", |
| 25 "ppd_provider_factory.h", |
| 26 "printer_discoverer.h", |
| 27 "printers_manager.cc", |
| 28 "printers_manager.h", |
| 29 "printers_manager_factory.cc", |
| 30 "printers_manager_factory.h", |
| 31 "printers_sync_bridge.cc", |
| 32 "printers_sync_bridge.h", |
| 33 "specifics_translation.cc", |
| 34 "specifics_translation.h", |
| 35 ] |
| 36 |
| 37 if (use_cups) { |
| 38 sources += [ |
| 39 "cups_print_job_manager_impl.cc", |
| 40 "cups_print_job_manager_impl.h", |
| 41 ] |
| 42 } else { |
| 43 sources += [ |
| 44 "fake_cups_print_job_manager.cc", |
| 45 "fake_cups_print_job_manager.h", |
| 46 ] |
| 47 } |
| 48 |
| 49 deps = [ |
| 50 "//chromeos", |
| 51 "//components/sync/protocol", |
| 52 "//printing", |
| 53 ] |
| 54 } |
| 55 |
| 56 source_set("unit_tests") { |
| 57 testonly = true |
| 58 |
| 59 sources = [ |
| 60 "printers_manager_unittest.cc", |
| 61 "specifics_translation_unittest.cc", |
| 62 ] |
| 63 |
| 64 deps = [ |
| 65 ":printing", |
| 66 "//components/sync/protocol", |
| 67 "//testing/gmock", |
| 68 "//testing/gtest", |
| 69 ] |
| 70 } |
| OLD | NEW |