Lei Zhang | 1da18cf | 2018-01-27 07:18:29 | [diff] [blame] | 1 | # Copyright 2018 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 | |
Scott Violet | 318a55f | 2018-03-30 19:08:19 | [diff] [blame] | 5 | import("//printing/buildflags/buildflags.gni") |
Lei Zhang | 1da18cf | 2018-01-27 07:18:29 | [diff] [blame] | 6 | |
| 7 | assert(enable_print_preview) |
| 8 | |
| 9 | static_library("pwg_encoder") { |
| 10 | sources = [ |
| 11 | "bitmap_image.cc", |
| 12 | "bitmap_image.h", |
| 13 | "pwg_encoder.cc", |
| 14 | "pwg_encoder.h", |
| 15 | ] |
| 16 | |
| 17 | deps = [ |
| 18 | "//base", |
| 19 | "//ui/gfx/geometry", |
| 20 | ] |
| 21 | } |
| 22 | |
| 23 | source_set("unit_tests") { |
| 24 | testonly = true |
| 25 | |
| 26 | sources = [ |
| 27 | "pwg_encoder_unittest.cc", |
| 28 | ] |
| 29 | |
| 30 | deps = [ |
| 31 | ":pwg_encoder", |
| 32 | "//base/test:test_support", |
| 33 | "//testing/gtest", |
| 34 | ] |
| 35 | } |