naiveproxy/components/printing/service/BUILD.gn

69 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-02-02 13:49:39 +03:00
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//printing/features/features.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//services/service_manager/public/tools/test/service_test.gni")
static_library("service") {
sources = [
"pdf_compositor_impl.cc",
"pdf_compositor_impl.h",
"pdf_compositor_service.cc",
"pdf_compositor_service.h",
]
deps = [
"//base",
"//components/discardable_memory/client",
"//components/discardable_memory/public/interfaces",
"//content/public/child",
"//content/public/common:service_names",
"//content/public/utility",
"//printing/common",
"//skia",
]
public_deps = [
"//components/printing/service/public/cpp:utils",
"//components/printing/service/public/interfaces",
"//services/service_manager/public/cpp",
]
}
service_manifest("pdf_compositor_manifest") {
name = "pdf_compositor"
source = "pdf_compositor_manifest.json"
}
if (enable_basic_printing || enable_print_preview) {
source_set("unit_tests") {
testonly = true
sources = [
"pdf_compositor_service_unittest.cc",
]
include_dirs = [ "testing/gmock/include" ]
deps = [
":service",
"//base/test:test_support",
"//components/printing/service/public/interfaces",
"//mojo/common",
"//services/service_manager/public/cpp:service_test_support",
"//testing/gmock",
"//testing/gtest",
]
data = [
"//components/test/data/printing/google.mskp",
]
}
service_manifest("pdf_compositor_service_unittest_manifest") {
name = "pdf_compositor_service_unittest"
source = "pdf_compositor_service_unittest_manifest.json"
packaged_services = [ ":pdf_compositor_manifest" ]
}
}