Home | History | Annotate | Download | only in pdf
      1 # Copyright 2014 The Chromium 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 
      5 pdf_engine = 0  # 0 PDFium
      6 
      7 # TODO(GYP) need support for loadable modules
      8 shared_library("pdf") {
      9   sources = [
     10     "button.h",
     11     "button.cc",
     12     "chunk_stream.h",
     13     "chunk_stream.cc",
     14     "control.h",
     15     "control.cc",
     16     "document_loader.h",
     17     "document_loader.cc",
     18     "draw_utils.cc",
     19     "draw_utils.h",
     20     "fading_control.cc",
     21     "fading_control.h",
     22     "fading_controls.cc",
     23     "fading_controls.h",
     24     "instance.cc",
     25     "instance.h",
     26     "number_image_generator.cc",
     27     "number_image_generator.h",
     28     "out_of_process_instance.cc",
     29     "out_of_process_instance.h",
     30     "page_indicator.cc",
     31     "page_indicator.h",
     32     "paint_aggregator.cc",
     33     "paint_aggregator.h",
     34     "paint_manager.cc",
     35     "paint_manager.h",
     36     "pdf.cc",
     37     "pdf.h",
     38     "pdf.rc",
     39     "progress_control.cc",
     40     "progress_control.h",
     41     "pdf_engine.h",
     42     "preview_mode_client.cc",
     43     "preview_mode_client.h",
     44     "resource.h",
     45     "resource_consts.h",
     46     "thumbnail_control.cc",
     47     "thumbnail_control.h",
     48     "../chrome/browser/chrome_page_zoom_constants.cc",
     49     "../content/common/page_zoom.cc",
     50   ]
     51 
     52   if (pdf_engine == 0) {
     53     sources += [
     54       "pdfium/pdfium_assert_matching_enums.cc",
     55       "pdfium/pdfium_engine.cc",
     56       "pdfium/pdfium_engine.h",
     57       "pdfium/pdfium_mem_buffer_file_read.cc",
     58       "pdfium/pdfium_mem_buffer_file_read.h",
     59       "pdfium/pdfium_mem_buffer_file_write.cc",
     60       "pdfium/pdfium_mem_buffer_file_write.h",
     61       "pdfium/pdfium_page.cc",
     62       "pdfium/pdfium_page.h",
     63       "pdfium/pdfium_range.cc",
     64       "pdfium/pdfium_range.h",
     65     ]
     66   }
     67 
     68   if (is_win) {
     69     defines = [ "COMPILE_CONTENT_STATICALLY" ]
     70     cflags = [ "/wd4267" ]  # TODO(jschuh) size_t to int truncations.
     71   }
     72 
     73   if (is_mac) {
     74     # TODO(GYP)
     75     #'mac_bundle': 1,
     76     #'product_name': 'PDF',
     77     #'product_extension': 'plugin',
     78     ## Strip the shipping binary of symbols so "Foxit" doesn't appear in
     79     ## the binary.  Symbols are stored in a separate .dSYM.
     80     #'variables': {
     81     #  'mac_real_dsym': 1,
     82     #},
     83     #'sources+': [
     84     #  'Info.plist'
     85     #]
     86     #'xcode_settings': {
     87     #  'INFOPLIST_FILE': 'Info.plist',
     88     #},
     89   }
     90 
     91   deps = [
     92     "//base",
     93     "//net",
     94     "//ppapi:ppapi_cpp",
     95     "//third_party/pdfium",
     96   ]
     97 }
     98 
     99 # TODO(GYP) pdf_linux_symbols target.
    100