blob: 550d9341f2c90f38076a283046c00ec10b04809b [file] [log] [blame]
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",
// The new pass manager causes non-deterministic build result.
// http://b/135660678
"-fno-experimental-new-pass-manager",
"-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"]