1cc_library_shared { 2 name: "libpdfium", 3 defaults: ["pdfium-core"], 4 5 static_libs: [ 6 "libpdfiumfdrm", 7 "libpdfiumformfiller", 8 "libpdfiumfpdfapi", 9 "libpdfiumfpdfdoc", 10 "libpdfiumfpdftext", 11 "libpdfiumfxcodec", 12 "libpdfiumfxcrt", 13 "libpdfiumfxge", 14 "libpdfiumfxjs", 15 "libpdfiumpwl", 16 "libpdfiumfx_agg", 17 "libpdfiumbigint", 18 "libpdfiumpdfiumbase", 19 "libpdfiumlcms2", 20 "libpdfiumfx_libopenjpeg", 21 ], 22 23 // TODO: figure out why turning on exceptions requires manually linking libdl 24 shared_libs: [ 25 "libdl", 26 "libft2", 27 "libz", 28 "libjpeg", 29 ], 30 31 srcs: [ 32 "fpdfsdk/cba_annotiterator.cpp", 33 "fpdfsdk/cfx_systemhandler.cpp", 34 "fpdfsdk/cpdfsdk_annot.cpp", 35 "fpdfsdk/cpdfsdk_annothandlermgr.cpp", 36 "fpdfsdk/cpdfsdk_annotiteration.cpp", 37 "fpdfsdk/cpdfsdk_baannot.cpp", 38 "fpdfsdk/cpdfsdk_baannothandler.cpp", 39 "fpdfsdk/cpdfsdk_datetime.cpp", 40 "fpdfsdk/cpdfsdk_formfillenvironment.cpp", 41 "fpdfsdk/cpdfsdk_interform.cpp", 42 "fpdfsdk/cpdfsdk_pageview.cpp", 43 "fpdfsdk/cpdfsdk_widget.cpp", 44 "fpdfsdk/cpdfsdk_widgethandler.cpp", 45 "fpdfsdk/fpdf_dataavail.cpp", 46 "fpdfsdk/fpdf_ext.cpp", 47 "fpdfsdk/fpdf_flatten.cpp", 48 "fpdfsdk/fpdf_progressive.cpp", 49 "fpdfsdk/fpdf_searchex.cpp", 50 "fpdfsdk/fpdf_structtree.cpp", 51 "fpdfsdk/fpdf_sysfontinfo.cpp", 52 "fpdfsdk/fpdf_transformpage.cpp", 53 "fpdfsdk/fpdfannot.cpp", 54 "fpdfsdk/fpdfattachment.cpp", 55 "fpdfsdk/fpdfcatalog.cpp", 56 "fpdfsdk/fpdfdoc.cpp", 57 "fpdfsdk/fpdfeditimg.cpp", 58 "fpdfsdk/fpdfeditpage.cpp", 59 "fpdfsdk/fpdfeditpath.cpp", 60 "fpdfsdk/fpdfedittext.cpp", 61 "fpdfsdk/fpdfformfill.cpp", 62 "fpdfsdk/fpdfppo.cpp", 63 "fpdfsdk/fpdfsave.cpp", 64 "fpdfsdk/fpdftext.cpp", 65 "fpdfsdk/fpdfview.cpp", 66 "fpdfsdk/fsdk_actionhandler.cpp", 67 "fpdfsdk/fsdk_filewriteadapter.cpp", 68 "fpdfsdk/fsdk_pauseadapter.cpp", 69 "fpdfsdk/pdfsdk_fieldaction.cpp", 70 ], 71 72 export_include_dirs: ["public"], 73 74 include_dirs: [ 75 "external/freetype/include", 76 "external/freetype/include/freetype", 77 ], 78} 79