aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-04-19 20:32:09 -0700
committerColin Cross <ccross@android.com>2017-04-20 23:57:32 +0000
commitd097d3e23df289fb6de4f363f6e993d841879247 (patch)
treefa25983e29b3bfbb7588195f6430959748cbf529 /Android.bp
parenta3d6bfc2cc6127050ea1e88cbd78ac4ec44e00e6 (diff)
downloadpdfium-d097d3e23df289fb6de4f363f6e993d841879247.tar.gz
Convert external/pdfium to Android.bp
See build/soong/README.md for more information. Test: m -j checkbuild Change-Id: Id230fda51411f772bbb92b1443467212cc2bbdbd (cherry picked from commit 961fd5e39d0c91e4c60d4c4ac1bb0a240cb2a356)
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp43
1 files changed, 43 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 000000000..62cb7b401
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,43 @@
+cc_defaults {
+ name: "pdfium-defaults",
+ cflags: [
+ "-O3",
+ "-fstrict-aliasing",
+ "-fprefetch-loop-arrays",
+ "-fexceptions",
+
+ "-Wno-non-virtual-dtor",
+ "-Wall",
+ ],
+
+ arch: {
+ arm: {
+ instruction_set: "arm",
+ },
+ },
+
+ header_libs: ["pdfium-headers"],
+}
+
+cc_library_headers {
+ name: "pdfium-headers",
+ export_include_dirs: ["."],
+}
+
+build = [
+ "pdfiumfdrm.bp",
+ "pdfiumfpdfapi.bp",
+ "pdfiumfpdfdoc.bp",
+ "pdfiumfpdftext.bp",
+ "pdfiumfxcodec.bp",
+ "pdfiumfxcrt.bp",
+ "pdfiumfxge.bp",
+
+ "pdfiumjavascript.bp",
+ "pdfiumformfiller.bp",
+ "pdfiumfxedit.bp",
+ "pdfiumpdfwindow.bp",
+ "pdfium.bp",
+]
+
+subdirs = ["third_party"]