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("//third_party/pdfium/pdfium.gni") |
| 6 |
5 pdf_engine = 0 # 0 PDFium | 7 pdf_engine = 0 # 0 PDFium |
6 | 8 |
7 static_library("pdf") { | 9 static_library("pdf") { |
8 sources = [ | 10 sources = [ |
9 "chunk_stream.cc", | 11 "chunk_stream.cc", |
10 "chunk_stream.h", | 12 "chunk_stream.h", |
11 "document_loader.cc", | 13 "document_loader.cc", |
12 "document_loader.h", | 14 "document_loader.h", |
13 "draw_utils.cc", | 15 "draw_utils.cc", |
14 "draw_utils.h", | 16 "draw_utils.h", |
(...skipping 24 matching lines...) Expand all Loading... |
39 "pdfium/pdfium_mem_buffer_file_read.h", | 41 "pdfium/pdfium_mem_buffer_file_read.h", |
40 "pdfium/pdfium_mem_buffer_file_write.cc", | 42 "pdfium/pdfium_mem_buffer_file_write.cc", |
41 "pdfium/pdfium_mem_buffer_file_write.h", | 43 "pdfium/pdfium_mem_buffer_file_write.h", |
42 "pdfium/pdfium_page.cc", | 44 "pdfium/pdfium_page.cc", |
43 "pdfium/pdfium_page.h", | 45 "pdfium/pdfium_page.h", |
44 "pdfium/pdfium_range.cc", | 46 "pdfium/pdfium_range.cc", |
45 "pdfium/pdfium_range.h", | 47 "pdfium/pdfium_range.h", |
46 ] | 48 ] |
47 } | 49 } |
48 | 50 |
| 51 if (pdf_enable_xfa) { |
| 52 defines = [ "PDF_ENABLE_XFA" ] |
| 53 } |
| 54 |
49 deps = [ | 55 deps = [ |
50 "//base", | 56 "//base", |
51 "//components/ui/zoom", | 57 "//components/ui/zoom", |
52 "//content/public/common", | 58 "//content/public/common", |
53 "//gin", | 59 "//gin", |
54 "//net", | 60 "//net", |
55 "//ppapi/cpp:objects", | 61 "//ppapi/cpp:objects", |
56 "//ppapi/cpp/private:internal_module", | 62 "//ppapi/cpp/private:internal_module", |
57 "//third_party/pdfium", | 63 "//third_party/pdfium", |
58 ] | 64 ] |
59 } | 65 } |
OLD | NEW |