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