diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-10-28 23:03:33 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-03 11:10:11 -0800 |
commit | fdc00a7042d912aafaabddae4d9c84199921ef23 (patch) | |
tree | 32ab8ac91cc68d2cd15b9168782a71b3f3f5e7b9 /xfa_test/pdf/BUILD.gn | |
parent | e9b38fa38de2c95d8260be31c57d9272c4d127ed (diff) | |
download | pdfium-fdc00a7042d912aafaabddae4d9c84199921ef23.tar.xz |
Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
Diffstat (limited to 'xfa_test/pdf/BUILD.gn')
-rw-r--r-- | xfa_test/pdf/BUILD.gn | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/xfa_test/pdf/BUILD.gn b/xfa_test/pdf/BUILD.gn new file mode 100644 index 0000000000..5e1f165b1c --- /dev/null +++ b/xfa_test/pdf/BUILD.gn @@ -0,0 +1,99 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +pdf_engine = 0 # 0 PDFium + +# TODO(GYP) need support for loadable modules +shared_library("pdf") { + sources = [ + "button.h", + "button.cc", + "chunk_stream.h", + "chunk_stream.cc", + "control.h", + "control.cc", + "document_loader.h", + "document_loader.cc", + "draw_utils.cc", + "draw_utils.h", + "fading_control.cc", + "fading_control.h", + "fading_controls.cc", + "fading_controls.h", + "instance.cc", + "instance.h", + "number_image_generator.cc", + "number_image_generator.h", + "out_of_process_instance.cc", + "out_of_process_instance.h", + "page_indicator.cc", + "page_indicator.h", + "paint_aggregator.cc", + "paint_aggregator.h", + "paint_manager.cc", + "paint_manager.h", + "pdf.cc", + "pdf.h", + "pdf.rc", + "progress_control.cc", + "progress_control.h", + "pdf_engine.h", + "preview_mode_client.cc", + "preview_mode_client.h", + "resource.h", + "resource_consts.h", + "thumbnail_control.cc", + "thumbnail_control.h", + "../chrome/browser/chrome_page_zoom_constants.cc", + "../content/common/page_zoom.cc", + ] + + if (pdf_engine == 0) { + sources += [ + "pdfium/pdfium_assert_matching_enums.cc", + "pdfium/pdfium_engine.cc", + "pdfium/pdfium_engine.h", + "pdfium/pdfium_mem_buffer_file_read.cc", + "pdfium/pdfium_mem_buffer_file_read.h", + "pdfium/pdfium_mem_buffer_file_write.cc", + "pdfium/pdfium_mem_buffer_file_write.h", + "pdfium/pdfium_page.cc", + "pdfium/pdfium_page.h", + "pdfium/pdfium_range.cc", + "pdfium/pdfium_range.h", + ] + } + + if (is_win) { + defines = [ "COMPILE_CONTENT_STATICALLY" ] + cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. + } + + if (is_mac) { + # TODO(GYP) + #'mac_bundle': 1, + #'product_name': 'PDF', + #'product_extension': 'plugin', + ## Strip the shipping binary of symbols so "Foxit" doesn't appear in + ## the binary. Symbols are stored in a separate .dSYM. + #'variables': { + # 'mac_real_dsym': 1, + #}, + #'sources+': [ + # 'Info.plist' + #] + #'xcode_settings': { + # 'INFOPLIST_FILE': 'Info.plist', + #}, + } + + deps = [ + "//base", + "//net", + "//ppapi:ppapi_cpp", + "//third_party/pdfium", + ] +} + +# TODO(GYP) pdf_linux_symbols target. |