OLD | NEW |
| (Empty) |
1 # 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 # Set to 1 to use Harfbuzz-NG instead of Harfbuzz. | |
8 # Under development: http://crbug.com/68551 | |
9 'use_harfbuzz_ng%': 0 | |
10 }, | |
11 'conditions': [ | |
12 ['use_harfbuzz_ng==0', { | |
13 'includes': [ | |
14 '../../build/win_precompile.gypi', | |
15 ], | |
16 'targets': [ | |
17 { | |
18 'target_name': 'harfbuzz', | |
19 'type': 'static_library', | |
20 'sources': [ | |
21 'contrib/harfbuzz-freetype.c', | |
22 'contrib/harfbuzz-unicode.c', | |
23 'contrib/harfbuzz-unicode-tables.c', | |
24 'src/harfbuzz-buffer.c', | |
25 'src/harfbuzz-stream.c', | |
26 'src/harfbuzz-dump.c', | |
27 'src/harfbuzz-gdef.c', | |
28 'src/harfbuzz-gpos.c', | |
29 'src/harfbuzz-gsub.c', | |
30 'src/harfbuzz-impl.c', | |
31 'src/harfbuzz-open.c', | |
32 'src/harfbuzz-shaper.cpp', | |
33 'src/harfbuzz-tibetan.c', | |
34 'src/harfbuzz-khmer.c', | |
35 'src/harfbuzz-indic.cpp', | |
36 'src/harfbuzz-greek.c', | |
37 'src/harfbuzz-hebrew.c', | |
38 'src/harfbuzz-arabic.c', | |
39 'src/harfbuzz-hangul.c', | |
40 'src/harfbuzz-myanmar.c', | |
41 'src/harfbuzz-thai.c', | |
42 ], | |
43 'include_dirs': [ | |
44 'contrib', | |
45 'src', | |
46 ], | |
47 'direct_dependent_settings': { | |
48 'include_dirs': [ | |
49 'contrib', | |
50 'src', | |
51 ], | |
52 }, | |
53 'conditions': [ | |
54 ['OS == "android"', { | |
55 'dependencies': [ | |
56 '../../third_party/freetype/freetype.gyp:ft2', | |
57 ], | |
58 }, { # OS != android | |
59 'dependencies': [ | |
60 '../../build/linux/system.gyp:freetype2', | |
61 ], | |
62 }], | |
63 ['OS == "android" and clang == 0', { | |
64 # The Android NDK compilers in the GCC 4.2 and 4.6 toolchains will | |
65 # show a warning about incompatible pointer signedness, but this | |
66 # warning cannot be disabled through an individual flag. To stop | |
67 # showing it, disable all warnings. Coverage is provided through | |
68 # clang builders, as well as Linux non-clang builders. | |
69 # TODO(beverloo): Re-enable warnings once the toolchains provide a | |
70 # way of disabling the specific warning. | |
71 'cflags': [ | |
72 '-w', | |
73 ], | |
74 }], | |
75 ['clang == 1', { | |
76 'xcode_settings': { | |
77 'WARNING_CFLAGS': [ | |
78 # "harfbuzz is in strict maintenace mode", | |
79 # see http://crbug.com/113708 | |
80 '-Wno-pointer-sign', | |
81 ], | |
82 }, | |
83 'cflags': [ | |
84 '-Wno-pointer-sign', | |
85 ], | |
86 }], | |
87 ], | |
88 }, | |
89 ], | |
90 }, { # else, use new harfbuzz | |
91 'targets': [ | |
92 { | |
93 # Make the 'harfbuzz' target just shim through to the harfbuzz-ng | |
94 # one. | |
95 'target_name': 'harfbuzz', | |
96 'type': 'none', | |
97 'dependencies': [ | |
98 '../harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng' | |
99 ], | |
100 'export_dependent_settings': [ | |
101 '../harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng' | |
102 ], | |
103 } | |
104 ] | |
105 }] | |
106 ] | |
107 } | |
OLD | NEW |