blob: 09d40943dd11149dc38414939868f4bd1270a8c0 [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 },
19 'sources': [
20 '<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
21 '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
mtkleinada5a442016-08-02 14:28:26 -070022 '<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")'
halcanary7be0ce02015-05-18 13:15:56 -070023 ],
24 'include_dirs': [
25 '<(sfntly_src_path)',
26 ],
27 'defines': [
28 'SFNTLY_NO_EXCEPTION',
29 ],
30 'dependencies' : [
31 'icu.gyp:icuuc',
32 ],
halcanary7be0ce02015-05-18 13:15:56 -070033 'conditions': [
34 [ 'skia_os == "win"',
35 {
halcanary7a223f52016-05-09 08:00:26 -070036 'defines': [ 'WIN32', 'NOMINMAX', ],
halcanary7be0ce02015-05-18 13:15:56 -070037 'msvs_settings': {
38 'VCCLCompilerTool': {
39 'AdditionalOptions': [ '/EHsc' ],
40 },
41 },
42 }
43 ],
borenet43bf5112016-04-29 14:01:34 -070044 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
halcanary7be0ce02015-05-18 13:15:56 -070045 { 'link_settings': { 'libraries': [ '-lpthread', ], }, },
46 ],
47 ],
48 # TODO(jschuh): http://crbug.com/167187
49 'msvs_disabled_warnings': [ 4267, 4244 ],
50 },
51 ]
52}