1cc_defaults {
2    name: "pdfium-common",
3    cflags: [
4        "-O3",
5        "-fstrict-aliasing",
6        "-fprefetch-loop-arrays",
7        "-fexceptions",
8
9        "-Wextra",
10        "-Wall",
11        "-Wno-non-virtual-dtor",
12        "-Wno-null-pointer-arithmetic",
13        "-Wno-unused-parameter",
14        "-Wno-sign-compare",
15        "-Wno-missing-field-initializers",
16        "-Werror",
17
18        "-DOPJ_STATIC",
19        "-DPNG_PREFIX",
20        "-DPNG_USE_READ_MACROS",
21    ],
22
23    arch: {
24        arm: {
25            instruction_set: "arm",
26        },
27    },
28
29    header_libs: [
30        "pdfium-headers",
31        "pdfium-third-party-headers"
32    ],
33}
34
35cc_defaults {
36    name: "pdfium-core",
37    cflags: [
38        "-DV8_DEPRECATION_WARNINGS",
39    ],
40
41    defaults: [
42        "pdfium-common"
43    ]
44}
45
46
47cc_library_headers {
48    name: "pdfium-headers",
49    export_include_dirs: ["."],
50}
51
52cc_library_headers {
53    name: "pdfium-third-party-headers",
54    export_include_dirs: ["third_party"],
55}
56
57build = [
58    "pdfiumfdrm.bp",
59    "pdfiumfpdfapi.bp",
60    "pdfiumfpdfdoc.bp",
61    "pdfiumfpdftext.bp",
62    "pdfiumfxcodec.bp",
63    "pdfiumfxcrt.bp",
64    "pdfiumfxge.bp",
65    "pdfiumpwl.bp",
66    "pdfiumformfiller.bp",
67
68    "pdfiumfxjs.bp",
69    "pdfium.bp",
70]
71
72subdirs = ["third_party"]
73