2015-05-18 20:15:56 +00:00
|
|
|
# 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': {
|
2016-05-09 15:00:26 +00:00
|
|
|
'sfntly_src_path': '../third_party/externals/sfntly/cpp/src',
|
2015-05-18 20:15:56 +00:00
|
|
|
},
|
|
|
|
'direct_dependent_settings': {
|
2016-08-24 19:28:38 +00:00
|
|
|
'include_dirs': [ '<(sfntly_src_path)', ],
|
2015-05-18 20:15:56 +00:00
|
|
|
},
|
|
|
|
'sources': [
|
|
|
|
'<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
|
|
|
|
'<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
|
2016-08-02 21:28:26 +00:00
|
|
|
'<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")'
|
2015-05-18 20:15:56 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(sfntly_src_path)',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'SFNTLY_NO_EXCEPTION',
|
|
|
|
],
|
|
|
|
'dependencies' : [
|
|
|
|
'icu.gyp:icuuc',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "win"',
|
|
|
|
{
|
2016-05-09 15:00:26 +00:00
|
|
|
'defines': [ 'WIN32', 'NOMINMAX', ],
|
2015-05-18 20:15:56 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'AdditionalOptions': [ '/EHsc' ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
2016-04-29 21:01:34 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
|
2015-05-18 20:15:56 +00:00
|
|
|
{ 'link_settings': { 'libraries': [ '-lpthread', ], }, },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
# TODO(jschuh): http://crbug.com/167187
|
|
|
|
'msvs_disabled_warnings': [ 4267, 4244 ],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|