| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//testing/test.gni") |
| 6 import("//third_party/pdfium/pdfium.gni") | 7 import("//third_party/pdfium/pdfium.gni") |
| 7 | 8 |
| 8 assert(enable_pdf) | 9 assert(enable_pdf) |
| 9 | 10 |
| 10 pdf_engine = 0 # 0 PDFium | 11 pdf_engine = 0 # 0 PDFium |
| 11 | 12 |
| 12 static_library("pdf") { | 13 static_library("pdf") { |
| 13 deps = [ | 14 deps = [ |
| 14 "//base", | 15 "//base", |
| 15 "//gin", | 16 "//gin", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 "pdfium/pdfium_range.cc", | 64 "pdfium/pdfium_range.cc", |
| 64 "pdfium/pdfium_range.h", | 65 "pdfium/pdfium_range.h", |
| 65 ] | 66 ] |
| 66 } | 67 } |
| 67 | 68 |
| 68 defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] | 69 defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] |
| 69 if (pdf_enable_xfa) { | 70 if (pdf_enable_xfa) { |
| 70 defines += [ "PDF_ENABLE_XFA" ] | 71 defines += [ "PDF_ENABLE_XFA" ] |
| 71 } | 72 } |
| 72 } | 73 } |
| 74 |
| 75 test("pdf_unittests") { |
| 76 sources = [ |
| 77 "chunk_stream_unittest.cc", |
| 78 "run_all_unittests.cc", |
| 79 ] |
| 80 |
| 81 deps = [ |
| 82 ":pdf", |
| 83 "//base", |
| 84 "//base/test:test_support", |
| 85 "//ppapi/c", |
| 86 "//ppapi/cpp", |
| 87 "//testing/gmock", |
| 88 "//testing/gtest", |
| 89 ] |
| 90 } |
| OLD | NEW |