Create MemoryPressureObserverChromeOS object after calling the function ChromeBrowser...
[chromium-blink-merge.git] / pdf / BUILD.gn
blob49f49a4048265df980b9791f0045047715fa615b
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     "button.h",
10     "button.cc",
11     "chunk_stream.h",
12     "chunk_stream.cc",
13     "control.h",
14     "control.cc",
15     "document_loader.h",
16     "document_loader.cc",
17     "draw_utils.cc",
18     "draw_utils.h",
19     "fading_control.cc",
20     "fading_control.h",
21     "fading_controls.cc",
22     "fading_controls.h",
23     "instance.cc",
24     "instance.h",
25     "number_image_generator.cc",
26     "number_image_generator.h",
27     "out_of_process_instance.cc",
28     "out_of_process_instance.h",
29     "page_indicator.cc",
30     "page_indicator.h",
31     "paint_aggregator.cc",
32     "paint_aggregator.h",
33     "paint_manager.cc",
34     "paint_manager.h",
35     "pdf.cc",
36     "pdf.h",
37     "progress_control.cc",
38     "progress_control.h",
39     "pdf_engine.h",
40     "preview_mode_client.cc",
41     "preview_mode_client.h",
42     "resource.h",
43     "resource_consts.h",
44     "thumbnail_control.cc",
45     "thumbnail_control.h",
46   ]
48   if (pdf_engine == 0) {
49     sources += [
50       "pdfium/pdfium_api_string_buffer_adapter.cc",
51       "pdfium/pdfium_api_string_buffer_adapter.h",
52       "pdfium/pdfium_assert_matching_enums.cc",
53       "pdfium/pdfium_engine.cc",
54       "pdfium/pdfium_engine.h",
55       "pdfium/pdfium_mem_buffer_file_read.cc",
56       "pdfium/pdfium_mem_buffer_file_read.h",
57       "pdfium/pdfium_mem_buffer_file_write.cc",
58       "pdfium/pdfium_mem_buffer_file_write.h",
59       "pdfium/pdfium_page.cc",
60       "pdfium/pdfium_page.h",
61       "pdfium/pdfium_range.cc",
62       "pdfium/pdfium_range.h",
63     ]
64   }
66   if (is_win) {
67     cflags = [ "/wd4267" ]  # TODO(jschuh) size_t to int truncations.
68   }
70   deps = [
71     "//base",
72     "//components/ui/zoom:ui_zoom",
73     "//content/public/common",
74     "//net",
75     "//ppapi/cpp/private:internal_module",
76     "//third_party/pdfium",
77   ]