Home | History | Annotate | Download | only in pdfium
      1 cc_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         "-Wno-implicit-fallthrough",
     17         // cpdf_renderstatus.cpp:1768, cpdf_variabletext.cpp:320,
     18         // and cpwl_edit_impl.cpp:1825 have -Wimplicit-fallthrough.
     19         "-Werror",
     20 
     21         "-DOPJ_STATIC",
     22         "-DPNG_PREFIX",
     23         "-DPNG_USE_READ_MACROS",
     24     ],
     25 
     26     arch: {
     27         arm: {
     28             instruction_set: "arm",
     29         },
     30     },
     31 
     32     header_libs: [
     33         "pdfium-headers",
     34         "pdfium-third-party-headers"
     35     ],
     36 }
     37 
     38 cc_defaults {
     39     name: "pdfium-core",
     40     cflags: [
     41         "-DV8_DEPRECATION_WARNINGS",
     42     ],
     43 
     44     defaults: [
     45         "pdfium-common"
     46     ]
     47 }
     48 
     49 
     50 cc_library_headers {
     51     name: "pdfium-headers",
     52     export_include_dirs: ["."],
     53 }
     54 
     55 cc_library_headers {
     56     name: "pdfium-third-party-headers",
     57     export_include_dirs: ["third_party"],
     58 }
     59 
     60 build = [
     61     "pdfiumfdrm.bp",
     62     "pdfiumfpdfapi.bp",
     63     "pdfiumfpdfdoc.bp",
     64     "pdfiumfpdftext.bp",
     65     "pdfiumfxcodec.bp",
     66     "pdfiumfxcrt.bp",
     67     "pdfiumfxge.bp",
     68     "pdfiumpwl.bp",
     69     "pdfiumformfiller.bp",
     70 
     71     "pdfiumfxjs.bp",
     72     "pdfium.bp",
     73 ]
     74 
     75 subdirs = ["third_party"]
     76