Roll src/third_party/WebKit 6d85854:7e30d51 (svn 202247:202248)
[chromium-blink-merge.git] / pdf / BUILD.gn
blob9c2d45d545da64d880225dea654e4266b0cb13d7
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
3 # found in the LICENSE file.
5 pdf_engine = 0  # 0 PDFium
7 static_library("pdf") {
8   sources = [
9     "chunk_stream.cc",
10     "chunk_stream.h",
11     "document_loader.cc",
12     "document_loader.h",
13     "draw_utils.cc",
14     "draw_utils.h",
15     "out_of_process_instance.cc",
16     "out_of_process_instance.h",
17     "paint_aggregator.cc",
18     "paint_aggregator.h",
19     "paint_manager.cc",
20     "paint_manager.h",
21     "pdf.cc",
22     "pdf.h",
23     "pdf_engine.h",
24     "preview_mode_client.cc",
25     "preview_mode_client.h",
26     "resource.h",
27     "resource_consts.h",
28   ]
30   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
31   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
33   if (pdf_engine == 0) {
34     sources += [
35       "pdfium/pdfium_api_string_buffer_adapter.cc",
36       "pdfium/pdfium_api_string_buffer_adapter.h",
37       "pdfium/pdfium_assert_matching_enums.cc",
38       "pdfium/pdfium_engine.cc",
39       "pdfium/pdfium_engine.h",
40       "pdfium/pdfium_mem_buffer_file_read.cc",
41       "pdfium/pdfium_mem_buffer_file_read.h",
42       "pdfium/pdfium_mem_buffer_file_write.cc",
43       "pdfium/pdfium_mem_buffer_file_write.h",
44       "pdfium/pdfium_page.cc",
45       "pdfium/pdfium_page.h",
46       "pdfium/pdfium_range.cc",
47       "pdfium/pdfium_range.h",
48     ]
49   }
51   deps = [
52     "//base",
53     "//components/ui/zoom",
54     "//content/public/common",
55     "//net",
56     "//ppapi/cpp:objects",
57     "//ppapi/cpp/private:internal_module",
58     "//third_party/pdfium",
59   ]