blob: 7ee7b986336c2b0081f451ffd808853b7cc803a8 [file] [log] [blame]
halcanary7be0ce02015-05-18 13:15:56 -07001# Copyright (c) 2011 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4{
5 'targets': [
6 {
7 'target_name': 'sfntly',
8 'type': 'static_library',
9 'includes': [
10 'common_conditions.gypi',
11 'common_variables.gypi',
12 ],
13 'variables': {
halcanary7a223f52016-05-09 08:00:26 -070014 'sfntly_src_path': '../third_party/externals/sfntly/cpp/src',
halcanary7be0ce02015-05-18 13:15:56 -070015 },
16 'direct_dependent_settings': {
halcanarye37aa892016-08-24 12:28:38 -070017 'include_dirs': [ '<(sfntly_src_path)', ],
halcanary7be0ce02015-05-18 13:15:56 -070018 'defines': [
halcanarye37aa892016-08-24 12:28:38 -070019 'SK_SFNTLY_SUBSETTER="sample/chromium/font_subsetter.h"',
halcanary7be0ce02015-05-18 13:15:56 -070020 ],
21 },
22 'sources': [
23 '<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
24 '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
mtkleinada5a442016-08-02 14:28:26 -070025 '<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")'
halcanary7be0ce02015-05-18 13:15:56 -070026 ],
27 'include_dirs': [
28 '<(sfntly_src_path)',
29 ],
30 'defines': [
31 'SFNTLY_NO_EXCEPTION',
32 ],
33 'dependencies' : [
34 'icu.gyp:icuuc',
35 ],
halcanary7be0ce02015-05-18 13:15:56 -070036 'conditions': [
37 [ 'skia_os == "win"',
38 {
halcanary7a223f52016-05-09 08:00:26 -070039 'defines': [ 'WIN32', 'NOMINMAX', ],
halcanary7be0ce02015-05-18 13:15:56 -070040 'msvs_settings': {
41 'VCCLCompilerTool': {
42 'AdditionalOptions': [ '/EHsc' ],
43 },
44 },
45 }
46 ],
borenet43bf5112016-04-29 14:01:34 -070047 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
halcanary7be0ce02015-05-18 13:15:56 -070048 { 'link_settings': { 'libraries': [ '-lpthread', ], }, },
49 ],
50 ],
51 # TODO(jschuh): http://crbug.com/167187
52 'msvs_disabled_warnings': [ 4267, 4244 ],
53 },
54 ]
55}