blob: f8127a926eade9a10d56d7f2c7d2158aca51eccc [file] [log] [blame]
halcanary00d44e02016-05-03 15:09:52 -07001# Copyright (c) 2012 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{
6 'variables': {
7 'hb_directory': '../third_party/externals/harfbuzz',
8 },
9 'targets': [
10 {
11 'target_name': 'harfbuzz',
12 'type': 'static_library',
13 'defines': [
14 'HAVE_OT',
15 'HAVE_ICU',
16 'HAVE_ICU_BUILTIN',
17 'HB_NO_MT',
18 ],
19 'sources': [
mtkleinada5a442016-08-02 14:28:26 -070020 '<!@(python find.py "hb-*.c*" <(hb_directory)/src)',
halcanary00d44e02016-05-03 15:09:52 -070021 ],
22 'sources!': [
23 '<(hb_directory)/src/hb-directwrite.cc',
24 '<(hb_directory)/src/hb-ft.cc',
25 '<(hb_directory)/src/hb-glib.cc',
26 '<(hb_directory)/src/hb-gobject-structs.cc',
27 '<(hb_directory)/src/hb-graphite2.cc',
28 '<(hb_directory)/src/hb-ucdn.cc',
29 '<(hb_directory)/src/hb-uniscribe.cc',
30 ],
31 'include_dirs': [
32 '<(hb_directory)/src',
33 '../third_party/harfbuzz',
34 ],
35 'direct_dependent_settings': {
36 'include_dirs': [
37 '<(hb_directory)/src',
38 '../third_party/harfbuzz',
39 ],
40 },
41 'dependencies': [ 'icu.gyp:icuuc', ],
42 'cflags': [ '-w', ],
43 'msvs_settings': {
44 'VCCLCompilerTool': {
45 'WarningLevel': '0',
46 'AdditionalOptions': [ '/wd4189', ],
47 },
48 },
49 'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
50 'conditions': [
51 [ 'skia_os == "mac"',
52 {
53 'defines': [ 'HAVE_CORETEXT', ],
54 }, {
55 'sources!': [ '<(hb_directory)/src/hb-coretext.cc', ],
56 }
57 ],
58 ],
59 },
60 ],
61}