skia2/gyp/pdf.gyp
halcanary 2299ffaaa1 Revert of SkPDF: PDF/A runtime switch (patchset #1 id:100001 of https://codereview.chromium.org/1891873002/ )
Reason for revert:
breaking something.

Original issue's description:
> SkPDF: PDF/A runtime switch
>
> TODO: remove gyp variable and modify API  in SkDocument.h
>
> BUG=skia:3110
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1891873002
>
> Committed: https://skia.googlesource.com/skia/+/570f18b43417d73c3fbd113cc0b4258e08b14c82

TBR=tomhudson@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:3110

Review URL: https://codereview.chromium.org/1892203002
2016-04-15 12:30:21 -07:00

71 lines
2.1 KiB
Python

# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file builds the PDF backend.
{
'targets': [
{
'target_name': 'nopdf',
'type': 'static_library',
'dependencies': [ 'skia_lib.gyp:skia_lib', ],
'sources': [ '<(skia_src_path)/pdf/SkDocument_PDF_None.cpp', ],
'defines': [ 'SK_SUPPORT_PDF=0', ],
},
{
'target_name': 'pdf',
'product_name': 'skia_pdf',
'type': 'static_library',
'standalone_static_library': 1,
'variables': {
'skia_pdf_use_sfntly%': 1,
'skia_pdf_less_compression%': 0, # enable for debugging only
},
'dependencies': [
'skia_lib.gyp:skia_lib',
'zlib.gyp:zlib',
],
'includes': [
'pdf.gypi',
],
'include_dirs': [
'../include/private',
'../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
'../src/image',
'../src/utils', # needed to get SkBitSet.h
],
'sources': [
'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
'conditions': [
[ 'skia_pdf_use_sfntly and not skia_android_framework and \
skia_os in ["win", "android", "linux", "chromeos", "mac"]',
{ 'dependencies': [ 'sfntly.gyp:sfntly' ] }
],
[ 'skia_pdf_generate_pdfa', { 'defines': ['SK_PDF_GENERATE_PDFA'] } ],
[ 'skia_pdf_less_compression',
{'defines': ['SK_PDF_LESS_COMPRESSION'] }
],
[ 'skia_android_framework', {
# Add SFTNLY support for PDF (which in turns depends on ICU)
'include_dirs': [
'external/sfntly/cpp/src',
],
'libraries': [
'libsfntly.a',
'-licuuc',
'-licui18n',
],
}
],
],
'direct_dependent_settings': {
'defines': [ 'SK_SUPPORT_PDF=1', ],
'include_dirs': [
'../include/core', # SkDocument.h
],
},
},
],
}