halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 1 | # 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': { |
halcanary | 7a223f5 | 2016-05-09 08:00:26 -0700 | [diff] [blame] | 14 | 'sfntly_src_path': '../third_party/externals/sfntly/cpp/src', |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 15 | }, |
| 16 | 'direct_dependent_settings': { |
halcanary | e37aa89 | 2016-08-24 12:28:38 -0700 | [diff] [blame] | 17 | 'include_dirs': [ '<(sfntly_src_path)', ], |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 18 | }, |
| 19 | 'sources': [ |
| 20 | '<(sfntly_src_path)/sample/chromium/font_subsetter.cc', |
| 21 | '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc', |
mtklein | ada5a44 | 2016-08-02 14:28:26 -0700 | [diff] [blame] | 22 | '<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")' |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 23 | ], |
| 24 | 'include_dirs': [ |
| 25 | '<(sfntly_src_path)', |
| 26 | ], |
| 27 | 'defines': [ |
| 28 | 'SFNTLY_NO_EXCEPTION', |
| 29 | ], |
| 30 | 'dependencies' : [ |
| 31 | 'icu.gyp:icuuc', |
| 32 | ], |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 33 | 'conditions': [ |
| 34 | [ 'skia_os == "win"', |
| 35 | { |
halcanary | 7a223f5 | 2016-05-09 08:00:26 -0700 | [diff] [blame] | 36 | 'defines': [ 'WIN32', 'NOMINMAX', ], |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 37 | 'msvs_settings': { |
| 38 | 'VCCLCompilerTool': { |
| 39 | 'AdditionalOptions': [ '/EHsc' ], |
| 40 | }, |
| 41 | }, |
| 42 | } |
| 43 | ], |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 44 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 45 | { 'link_settings': { 'libraries': [ '-lpthread', ], }, }, |
| 46 | ], |
| 47 | ], |
| 48 | # TODO(jschuh): http://crbug.com/167187 |
| 49 | 'msvs_disabled_warnings': [ 4267, 4244 ], |
| 50 | }, |
| 51 | ] |
| 52 | } |