skia2/gyp/sfntly.gyp
halcanary 7be0ce0ab1 SkPDF: Add Sfntly to DEPS, gyp
Note: this can be disabled via:
    GYP_DEFINES='skia_pdf_use_sfntly=0

Warning: dm is 34% slower and uses 9% more memory.  This is
okay.

Motivation: We want to test this code path in DM, since it is
always used by Chromium and Android.

BUG=skia:3563

Committed: https://skia.googlesource.com/skia/+/6a53b04e26749ea61f690ece408f2a1c0a5ad5bb

Review URL: https://codereview.chromium.org/1134683006
2015-05-18 13:15:56 -07:00

56 lines
1.6 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',
},
'direct_dependent_settings': {
'include_dirs': [ '<(sfntly_src_path)/sample/chromium', ],
'defines': [
'SK_SFNTLY_SUBSETTER="font_subsetter.h"',
],
},
'sources': [
'<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
'<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
'<!@(python find.py ../third_party/externals/sfntly/sfntly "*.c*")'
],
'include_dirs': [
'<(sfntly_src_path)',
],
'defines': [
'SFNTLY_NO_EXCEPTION',
],
'dependencies' : [
'icu.gyp:icuuc',
],
'conditions': [
[ 'skia_os == "win"',
{
'defines': [ 'WIN32', ],
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [ '/EHsc' ],
},
},
}
],
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]',
{ 'link_settings': { 'libraries': [ '-lpthread', ], }, },
],
],
# TODO(jschuh): http://crbug.com/167187
'msvs_disabled_warnings': [ 4267, 4244 ],
},
]
}