OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'targets': [ | 5 'targets': [ |
6 { | 6 { |
7 'target_name': 'sfntly', | 7 'target_name': 'sfntly', |
8 'type': 'static_library', | 8 'type': 'static_library', |
9 'includes': [ | 9 'includes': [ |
10 'common_conditions.gypi', | 10 'common_conditions.gypi', |
11 'common_variables.gypi', | 11 'common_variables.gypi', |
12 ], | 12 ], |
13 'variables': { | 13 'variables': { |
14 'sfntly_src_path': '../third_party/externals/sfntly', | 14 'sfntly_src_path': '../third_party/externals/sfntly/cpp/src', |
15 }, | 15 }, |
16 'direct_dependent_settings': { | 16 'direct_dependent_settings': { |
17 'include_dirs': [ '<(sfntly_src_path)/sample/chromium', ], | 17 'include_dirs': [ '<(sfntly_src_path)/sample/chromium', ], |
18 'defines': [ | 18 'defines': [ |
19 'SK_SFNTLY_SUBSETTER="font_subsetter.h"', | 19 'SK_SFNTLY_SUBSETTER="font_subsetter.h"', |
20 ], | 20 ], |
21 }, | 21 }, |
22 'sources': [ | 22 'sources': [ |
23 '<(sfntly_src_path)/sample/chromium/font_subsetter.cc', | 23 '<(sfntly_src_path)/sample/chromium/font_subsetter.cc', |
24 '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc', | 24 '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc', |
25 '<!@(python find.py ../third_party/externals/sfntly/sfntly "*.c*")' | 25 '<!@(python find.py "<(sfntly_src_path)/sfntly" "*.c*")' |
26 ], | 26 ], |
27 'include_dirs': [ | 27 'include_dirs': [ |
28 '<(sfntly_src_path)', | 28 '<(sfntly_src_path)', |
29 ], | 29 ], |
30 'defines': [ | 30 'defines': [ |
31 'SFNTLY_NO_EXCEPTION', | 31 'SFNTLY_NO_EXCEPTION', |
32 ], | 32 ], |
33 'dependencies' : [ | 33 'dependencies' : [ |
34 'icu.gyp:icuuc', | 34 'icu.gyp:icuuc', |
35 ], | 35 ], |
36 'conditions': [ | 36 'conditions': [ |
37 [ 'skia_os == "win"', | 37 [ 'skia_os == "win"', |
38 { | 38 { |
39 'defines': [ 'WIN32', ], | 39 'defines': [ 'WIN32', 'NOMINMAX', ], |
40 'msvs_settings': { | 40 'msvs_settings': { |
41 'VCCLCompilerTool': { | 41 'VCCLCompilerTool': { |
42 'AdditionalOptions': [ '/EHsc' ], | 42 'AdditionalOptions': [ '/EHsc' ], |
43 }, | 43 }, |
44 }, | 44 }, |
45 } | 45 } |
46 ], | 46 ], |
47 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', | 47 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', |
48 { 'link_settings': { 'libraries': [ '-lpthread', ], }, }, | 48 { 'link_settings': { 'libraries': [ '-lpthread', ], }, }, |
49 ], | 49 ], |
50 ], | 50 ], |
51 # TODO(jschuh): http://crbug.com/167187 | 51 # TODO(jschuh): http://crbug.com/167187 |
52 'msvs_disabled_warnings': [ 4267, 4244 ], | 52 'msvs_disabled_warnings': [ 4267, 4244 ], |
53 }, | 53 }, |
54 ] | 54 ] |
55 } | 55 } |
OLD | NEW |