Top Level Namespace

Defined Under Namespace

Modules: PDFShaver

Constant Summary collapse

LIB_DIRS =
append_pdfium_directory_to %w[
  /usr/local/lib/
  /usr/lib/
]
HEADER_DIRS =
append_pdfium_directory_to %w[
  /usr/local/include/
  /usr/include/
]
LIB_FILES =
%w[
  javascript
  bigint
  freetype
  fpdfdoc
  fpdftext
  formfiller
  icudata
  icuuc
  icui18n
  v8_libbase
  v8_base
  v8_snapshot
  v8_libplatform
  jsapi
  pdfwindow
  fxedit
  fxcrt
  fxcodec
  fpdfdoc
  fdrm
  fxge
  fpdfapi
  freetype
  pdfium
  pthread
  freeimage
]
FRAMEWORKS =
%w{AppKit CoreFoundation}

Instance Method Summary collapse

Instance Method Details

#append_pdfium_directory_to(paths) ⇒ Object

List directories to search for PDFium headers and library files to link against



4
5
6
7
8
9
10
11
12
# File 'ext/pdfium_ruby/extconf.rb', line 4

def append_pdfium_directory_to paths
  paths.map do |dir|
    [
      File.join(dir, 'pdfium'),
      File.join(dir, 'pdfium', 'fpdfsdk', 'include'),
      File.join(dir, 'pdfium', 'third_party', 'base', 'numerics')
    ]
  end.flatten + paths
end