aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: d11b36ecb96e30332ddcd298d9c0f4762a930df5 (plain)
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
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",
        "-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"]