| # Copyright 2015 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//mojo/public/tools/bindings/mojom.gni") |
| import("//printing/buildflags/buildflags.gni") |
| |
| assert(enable_printing) |
| |
| static_library("common") { |
| sources = [ |
| "cloud_print_cdd_conversion.cc", |
| "cloud_print_cdd_conversion.h", |
| "print_params.cc", |
| "print_params.h", |
| ] |
| |
| deps = [ |
| ":mojo_interfaces", |
| "//base", |
| "//components/cloud_devices/common", |
| "//printing", |
| "//printing/backend", |
| "//printing/common", |
| "//printing/mojom", |
| ] |
| } |
| |
| mojom("mojo_interfaces") { |
| sources = [ "print.mojom" ] |
| |
| public_deps = [ |
| "//mojo/public/mojom/base", |
| "//printing/mojom", |
| "//ui/accessibility/mojom", |
| "//ui/gfx/geometry/mojom", |
| ] |
| |
| enabled_features = [] |
| if (enable_print_preview) { |
| enabled_features += [ "enable_print_preview" ] |
| } |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "cloud_print_cdd_conversion_unittest.cc" ] |
| deps = [ |
| ":common", |
| "//base/test:test_support", |
| "//printing/backend", |
| "//printing/backend:test_support", |
| "//testing/gtest", |
| "//ui/gfx/geometry", |
| ] |
| |
| if (is_chromeos) { |
| deps += [ "//printing" ] |
| } |
| |
| # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and |
| # enable the diagnostic by removing this line. |
| configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
| } |