cc34c41326
Reason for revert: broke gn ("Duplicate object file") Original issue's description: > SkPDF: Move SkFlate into src/pdf (part 1/3) > > Next, we change Chromium build files, then we do the actual move. > > Committed: https://skia.googlesource.com/skia/+/e14c1fe04fc72ec9bcf55820b5c65a71d7d0a764 TBR=bungeman@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1289863002
64 lines
1.8 KiB
Python
64 lines
1.8 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)/doc/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, },
|
|
'dependencies': [
|
|
'skia_lib.gyp:skia_lib',
|
|
'skflate.gyp:skflate',
|
|
],
|
|
'includes': [
|
|
'pdf.gypi',
|
|
],
|
|
'include_dirs': [
|
|
'../include/private',
|
|
'../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
|
|
'../src/pdf',
|
|
'../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_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
|
|
],
|
|
},
|
|
},
|
|
],
|
|
}
|