• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_static {
2    name: "libpdfiumfxcrt",
3    defaults: ["pdfium-defaults"],
4
5    arch: {
6        arm64: {
7            cflags: [
8                "-D_FX_CPU_=_FX_X64_",
9                "-fPIC",
10            ],
11        },
12    },
13
14    cflags: [
15        "-DOPJ_STATIC",
16        "-DV8_DEPRECATION_WARNINGS",
17        "-D_CRT_SECURE_NO_WARNINGS",
18
19        // Mask some warnings. These are benign, but we probably want to fix them
20        // upstream at some point.
21        "-Wno-sign-compare",
22        "-Wno-unused-parameter",
23    ],
24
25    srcs: [
26        "core/fxcrt/fx_basic_array.cpp",
27        "core/fxcrt/fx_basic_bstring.cpp",
28        "core/fxcrt/fx_basic_buffer.cpp",
29        "core/fxcrt/fx_basic_coords.cpp",
30        "core/fxcrt/fx_basic_gcc.cpp",
31        "core/fxcrt/fx_basic_memmgr.cpp",
32        "core/fxcrt/fx_basic_utf.cpp",
33        "core/fxcrt/fx_basic_util.cpp",
34        "core/fxcrt/fx_basic_wstring.cpp",
35        "core/fxcrt/fx_bidi.cpp",
36        "core/fxcrt/fx_extension.cpp",
37        "core/fxcrt/fx_ucddata.cpp",
38        "core/fxcrt/fx_unicode.cpp",
39        "core/fxcrt/fx_xml_composer.cpp",
40        "core/fxcrt/fx_xml_parser.cpp",
41        "core/fxcrt/fxcrt_posix.cpp",
42        "core/fxcrt/fxcrt_stream.cpp",
43        "core/fxcrt/fxcrt_windows.cpp",
44    ],
45}
46