• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The PDFium 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
5import("../../../pdfium.gni")
6import("../../../testing/test.gni")
7
8source_set("render") {
9  sources = [
10    "cpdf_charposlist.cpp",
11    "cpdf_charposlist.h",
12    "cpdf_devicebuffer.cpp",
13    "cpdf_devicebuffer.h",
14    "cpdf_docrenderdata.cpp",
15    "cpdf_docrenderdata.h",
16    "cpdf_imagecacheentry.cpp",
17    "cpdf_imagecacheentry.h",
18    "cpdf_imageloader.cpp",
19    "cpdf_imageloader.h",
20    "cpdf_imagerenderer.cpp",
21    "cpdf_imagerenderer.h",
22    "cpdf_pagerendercache.cpp",
23    "cpdf_pagerendercache.h",
24    "cpdf_pagerendercontext.cpp",
25    "cpdf_pagerendercontext.h",
26    "cpdf_progressiverenderer.cpp",
27    "cpdf_progressiverenderer.h",
28    "cpdf_rendercontext.cpp",
29    "cpdf_rendercontext.h",
30    "cpdf_renderoptions.cpp",
31    "cpdf_renderoptions.h",
32    "cpdf_rendershading.cpp",
33    "cpdf_rendershading.h",
34    "cpdf_renderstatus.cpp",
35    "cpdf_renderstatus.h",
36    "cpdf_scaledrenderbuffer.cpp",
37    "cpdf_scaledrenderbuffer.h",
38    "cpdf_textrenderer.cpp",
39    "cpdf_textrenderer.h",
40    "cpdf_type3cache.cpp",
41    "cpdf_type3cache.h",
42    "cpdf_type3glyphmap.cpp",
43    "cpdf_type3glyphmap.h",
44  ]
45  configs += [ "../../../:pdfium_core_config" ]
46  deps = [
47    "../../../constants",
48    "../../fxcodec",
49    "../../fxcrt",
50    "../../fxge",
51    "../font",
52    "../page",
53    "../parser",
54  ]
55  if (is_win) {
56    sources += [
57      "cpdf_windowsrenderdevice.cpp",
58      "cpdf_windowsrenderdevice.h",
59    ]
60  }
61  visibility = [ "../../../*" ]
62}
63
64pdfium_unittest_source_set("unittests") {
65  sources = [ "cpdf_docrenderdata_unittest.cpp" ]
66  deps = [
67    ":render",
68    "../page",
69    "../parser",
70  ]
71  pdfium_root_dir = "../../../"
72}
73
74pdfium_embeddertest_source_set("embeddertests") {
75  sources = [
76    "fpdf_progressive_render_embeddertest.cpp",
77    "fpdf_render_pattern_embeddertest.cpp",
78  ]
79  pdfium_root_dir = "../../../"
80}
81