1# Copyright 2018 The PDFium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../pdfium.gni") 6import("../testing/test.gni") 7 8source_set("fpdfsdk") { 9 sources = [ 10 "cpdfsdk_actionhandler.cpp", 11 "cpdfsdk_actionhandler.h", 12 "cpdfsdk_annot.cpp", 13 "cpdfsdk_annot.h", 14 "cpdfsdk_annothandlermgr.cpp", 15 "cpdfsdk_annothandlermgr.h", 16 "cpdfsdk_annotiteration.cpp", 17 "cpdfsdk_annotiteration.h", 18 "cpdfsdk_annotiterator.cpp", 19 "cpdfsdk_annotiterator.h", 20 "cpdfsdk_appstream.cpp", 21 "cpdfsdk_appstream.h", 22 "cpdfsdk_baannot.cpp", 23 "cpdfsdk_baannot.h", 24 "cpdfsdk_baannothandler.cpp", 25 "cpdfsdk_baannothandler.h", 26 "cpdfsdk_customaccess.cpp", 27 "cpdfsdk_customaccess.h", 28 "cpdfsdk_fieldaction.cpp", 29 "cpdfsdk_fieldaction.h", 30 "cpdfsdk_filewriteadapter.cpp", 31 "cpdfsdk_filewriteadapter.h", 32 "cpdfsdk_formfillenvironment.cpp", 33 "cpdfsdk_formfillenvironment.h", 34 "cpdfsdk_helpers.cpp", 35 "cpdfsdk_helpers.h", 36 "cpdfsdk_interactiveform.cpp", 37 "cpdfsdk_interactiveform.h", 38 "cpdfsdk_pageview.cpp", 39 "cpdfsdk_pageview.h", 40 "cpdfsdk_pauseadapter.cpp", 41 "cpdfsdk_pauseadapter.h", 42 "cpdfsdk_renderpage.cpp", 43 "cpdfsdk_renderpage.h", 44 "cpdfsdk_widget.cpp", 45 "cpdfsdk_widget.h", 46 "cpdfsdk_widgethandler.cpp", 47 "cpdfsdk_widgethandler.h", 48 "fpdf_annot.cpp", 49 "fpdf_attachment.cpp", 50 "fpdf_catalog.cpp", 51 "fpdf_dataavail.cpp", 52 "fpdf_doc.cpp", 53 "fpdf_editimg.cpp", 54 "fpdf_editpage.cpp", 55 "fpdf_editpath.cpp", 56 "fpdf_edittext.cpp", 57 "fpdf_ext.cpp", 58 "fpdf_flatten.cpp", 59 "fpdf_formfill.cpp", 60 "fpdf_javascript.cpp", 61 "fpdf_ppo.cpp", 62 "fpdf_progressive.cpp", 63 "fpdf_save.cpp", 64 "fpdf_searchex.cpp", 65 "fpdf_structtree.cpp", 66 "fpdf_sysfontinfo.cpp", 67 "fpdf_text.cpp", 68 "fpdf_thumbnail.cpp", 69 "fpdf_transformpage.cpp", 70 "fpdf_view.cpp", 71 "ipdfsdk_annothandler.h", 72 ] 73 74 configs += [ "../:pdfium_core_config" ] 75 deps = [ 76 "../:pdfium_public_headers", 77 "../constants", 78 "../core/fdrm", 79 "../core/fpdfapi/edit", 80 "../core/fpdfapi/font", 81 "../core/fpdfapi/page", 82 "../core/fpdfapi/parser", 83 "../core/fpdfapi/render", 84 "../core/fpdfdoc", 85 "../core/fpdftext", 86 "../core/fxcrt", 87 "../core/fxge", 88 "../fxjs", 89 "formfiller", 90 "pwl", 91 ] 92 allow_circular_includes_from = [ 93 "../fxjs", 94 "formfiller", 95 ] 96 visibility = [ "../*" ] 97 98 if (pdf_enable_xfa) { 99 deps += [ 100 "../fxbarcode", 101 "../xfa/fxfa", 102 "../xfa/fxfa/parser", 103 "fpdfxfa", 104 ] 105 allow_circular_includes_from += [ "fpdfxfa" ] 106 } 107} 108 109pdfium_unittest_source_set("unittests") { 110 sources = [ 111 "fpdf_annot_unittest.cpp", 112 "fpdf_catalog_unittest.cpp", 113 "fpdf_doc_unittest.cpp", 114 "fpdf_edit_unittest.cpp", 115 "fpdf_editimg_unittest.cpp", 116 "fpdf_view_unittest.cpp", 117 ] 118 deps = [ 119 ":fpdfsdk", 120 "../:pdfium_public_headers", 121 "../constants", 122 "../core/fpdfapi/page", 123 "../core/fpdfapi/parser", 124 "../core/fpdfapi/render", 125 "../core/fpdfdoc", 126 ] 127 pdfium_root_dir = "../" 128} 129 130pdfium_embeddertest_source_set("embeddertests") { 131 sources = [ 132 "cpdfsdk_annotiterator_embeddertest.cpp", 133 "cpdfsdk_baannothandler_embeddertest.cpp", 134 "fpdf_annot_embeddertest.cpp", 135 "fpdf_attachment_embeddertest.cpp", 136 "fpdf_dataavail_embeddertest.cpp", 137 "fpdf_doc_embeddertest.cpp", 138 "fpdf_edit_embeddertest.cpp", 139 "fpdf_editpage_embeddertest.cpp", 140 "fpdf_editpath_embeddertest.cpp", 141 "fpdf_ext_embeddertest.cpp", 142 "fpdf_flatten_embeddertest.cpp", 143 "fpdf_formfill_embeddertest.cpp", 144 "fpdf_javascript_embeddertest.cpp", 145 "fpdf_ppo_embeddertest.cpp", 146 "fpdf_save_embeddertest.cpp", 147 "fpdf_searchex_embeddertest.cpp", 148 "fpdf_structtree_embeddertest.cpp", 149 "fpdf_sysfontinfo_embeddertest.cpp", 150 "fpdf_text_embeddertest.cpp", 151 "fpdf_thumbnail_embeddertest.cpp", 152 "fpdf_transformpage_embeddertest.cpp", 153 "fpdf_view_c_api_test.c", 154 "fpdf_view_c_api_test.h", 155 "fpdf_view_embeddertest.cpp", 156 ] 157 deps = [ 158 ":fpdfsdk", 159 "../constants", 160 "../core/fpdfapi/font", 161 "../core/fpdfapi/page", 162 "../core/fpdfapi/parser", 163 "../core/fxge", 164 ] 165 pdfium_root_dir = "../" 166} 167