650e20d705
No more: #include SK_SFNTLY_SUBSETTER #include ZLIB_INCLUDE Also, rename SK_SFNTLY_SUBSETTER to SK_PDF_USE_SFNTLY to follow my pattern of prefixing SkPDF-specific defines with 'SK_PDF_'. The ZLIB_INCLUDE define is no longer is used by anyone. TODO: rename Sfntly to something pronounceable. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2273343002 Review-Url: https://codereview.chromium.org/2273343002
53 lines
1.5 KiB
Python
53 lines
1.5 KiB
Python
# Copyright (c) 2011 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.
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'sfntly',
|
|
'type': 'static_library',
|
|
'includes': [
|
|
'common_conditions.gypi',
|
|
'common_variables.gypi',
|
|
],
|
|
'variables': {
|
|
'sfntly_src_path': '../third_party/externals/sfntly/cpp/src',
|
|
},
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '<(sfntly_src_path)', ],
|
|
},
|
|
'sources': [
|
|
'<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
|
|
'<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
|
|
'<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")'
|
|
],
|
|
'include_dirs': [
|
|
'<(sfntly_src_path)',
|
|
],
|
|
'defines': [
|
|
'SFNTLY_NO_EXCEPTION',
|
|
],
|
|
'dependencies' : [
|
|
'icu.gyp:icuuc',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_os == "win"',
|
|
{
|
|
'defines': [ 'WIN32', 'NOMINMAX', ],
|
|
'msvs_settings': {
|
|
'VCCLCompilerTool': {
|
|
'AdditionalOptions': [ '/EHsc' ],
|
|
},
|
|
},
|
|
}
|
|
],
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
|
|
{ 'link_settings': { 'libraries': [ '-lpthread', ], }, },
|
|
],
|
|
],
|
|
# TODO(jschuh): http://crbug.com/167187
|
|
'msvs_disabled_warnings': [ 4267, 4244 ],
|
|
},
|
|
]
|
|
}
|