xref: /aosp_15_r20/external/pdfium/core/fpdfapi/font/BUILD.gn (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1# Copyright 2018 The PDFium Authors
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("font") {
9  sources = [
10    "cfx_cttgsubtable.cpp",
11    "cfx_cttgsubtable.h",
12    "cfx_stockfontarray.cpp",
13    "cfx_stockfontarray.h",
14    "cpdf_cid2unicodemap.cpp",
15    "cpdf_cid2unicodemap.h",
16    "cpdf_cidfont.cpp",
17    "cpdf_cidfont.h",
18    "cpdf_cmap.cpp",
19    "cpdf_cmap.h",
20    "cpdf_cmapparser.cpp",
21    "cpdf_cmapparser.h",
22    "cpdf_font.cpp",
23    "cpdf_font.h",
24    "cpdf_fontencoding.cpp",
25    "cpdf_fontencoding.h",
26    "cpdf_fontglobals.cpp",
27    "cpdf_fontglobals.h",
28    "cpdf_simplefont.cpp",
29    "cpdf_simplefont.h",
30    "cpdf_tounicodemap.cpp",
31    "cpdf_tounicodemap.h",
32    "cpdf_truetypefont.cpp",
33    "cpdf_truetypefont.h",
34    "cpdf_type1font.cpp",
35    "cpdf_type1font.h",
36    "cpdf_type3char.cpp",
37    "cpdf_type3char.h",
38    "cpdf_type3font.cpp",
39    "cpdf_type3font.h",
40  ]
41  configs += [
42    "../../../:pdfium_strict_config",
43    "../../../:pdfium_noshorten_config",
44  ]
45  deps = [
46    "../../../constants",
47    "../../fxcrt",
48    "../../fxge",
49    "../cmaps",
50    "../parser",
51  ]
52  visibility = [ "../../../*" ]
53  if (is_mac) {
54    frameworks = [ "CoreFoundation.framework" ]
55  }
56}
57
58pdfium_unittest_source_set("unittests") {
59  sources = [
60    "cpdf_cidfont_unittest.cpp",
61    "cpdf_cmapparser_unittest.cpp",
62    "cpdf_tounicodemap_unittest.cpp",
63  ]
64  deps = [
65    ":font",
66    "../page:unit_test_support",
67    "../parser",
68    "../parser:unit_test_support",
69    "../render",
70  ]
71  pdfium_root_dir = "../../../"
72}
73