Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: third_party/harfbuzz-ng/harfbuzz.gyp

Issue 203163003: Use the system provided harfbuzz on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 { 5 {
6 'includes': [ 6 'includes': [
7 '../../build/win_precompile.gypi', 7 '../../build/win_precompile.gypi',
8 ], 8 ],
9 'targets': [ 9 'variables': {
10 { 10 'variables': {
11 'target_name': 'harfbuzz-ng',
12 'type': 'static_library',
13 'defines': [
14 'HAVE_OT',
15 'HAVE_ICU',
16 'HB_NO_MT',
17 ],
18 'sources': [
19 'src/hb-atomic-private.hh',
20 'src/hb-blob.cc',
21 'src/hb-blob.h',
22 'src/hb-buffer-deserialize-json.hh',
23 'src/hb-buffer-deserialize-text.hh',
24 'src/hb-buffer-private.hh',
25 'src/hb-buffer-serialize.cc',
26 'src/hb-buffer.cc',
27 'src/hb-buffer.h',
28 'src/hb-cache-private.hh',
29 'src/hb-common.cc',
30 'src/hb-common.h',
31 'src/hb-deprecated.h',
32 'src/hb-face-private.hh',
33 'src/hb-face.cc',
34 'src/hb-face.h',
35 'src/hb-fallback-shape.cc',
36 'src/hb-font-private.hh',
37 'src/hb-font.cc',
38 'src/hb-font.h',
39 'src/hb-icu.cc',
40 'src/hb-icu.h',
41 'src/hb-mutex-private.hh',
42 'src/hb-object-private.hh',
43 'src/hb-open-file-private.hh',
44 'src/hb-open-type-private.hh',
45 'src/hb-ot-head-table.hh',
46 'src/hb-ot-hhea-table.hh',
47 'src/hb-ot-hmtx-table.hh',
48 'src/hb-ot-layout-common-private.hh',
49 'src/hb-ot-layout-gdef-table.hh',
50 'src/hb-ot-layout-gpos-table.hh',
51 'src/hb-ot-layout-gsub-table.hh',
52 'src/hb-ot-layout-gsubgpos-private.hh',
53 'src/hb-ot-layout-private.hh',
54 'src/hb-ot-layout.cc',
55 'src/hb-ot-layout.h',
56 'src/hb-ot-map-private.hh',
57 'src/hb-ot-map.cc',
58 'src/hb-ot-maxp-table.hh',
59 'src/hb-ot-name-table.hh',
60 'src/hb-ot-shape-complex-arabic-fallback.hh',
61 'src/hb-ot-shape-complex-arabic-table.hh',
62 'src/hb-ot-shape-complex-arabic.cc',
63 'src/hb-ot-shape-complex-default.cc',
64 'src/hb-ot-shape-complex-indic-machine.hh',
65 'src/hb-ot-shape-complex-indic-private.hh',
66 'src/hb-ot-shape-complex-indic-table.cc',
67 'src/hb-ot-shape-complex-indic.cc',
68 'src/hb-ot-shape-complex-myanmar-machine.hh',
69 'src/hb-ot-shape-complex-myanmar.cc',
70 'src/hb-ot-shape-complex-private.hh',
71 'src/hb-ot-shape-complex-sea-machine.hh',
72 'src/hb-ot-shape-complex-sea.cc',
73 'src/hb-ot-shape-complex-thai.cc',
74 'src/hb-ot-shape-fallback-private.hh',
75 'src/hb-ot-shape-fallback.cc',
76 'src/hb-ot-shape-normalize-private.hh',
77 'src/hb-ot-shape-normalize.cc',
78 'src/hb-ot-shape-private.hh',
79 'src/hb-ot-shape.cc',
80 'src/hb-ot-tag.cc',
81 'src/hb-ot-tag.h',
82 'src/hb-ot.h',
83 'src/hb-private.hh',
84 'src/hb-set-private.hh',
85 'src/hb-set.cc',
86 'src/hb-set.h',
87 'src/hb-shape-plan-private.hh',
88 'src/hb-shape-plan.cc',
89 'src/hb-shape-plan.h',
90 'src/hb-shape.cc',
91 'src/hb-shape.h',
92 'src/hb-shaper-impl-private.hh',
93 'src/hb-shaper-list.hh',
94 'src/hb-shaper-private.hh',
95 'src/hb-shaper.cc',
96 'src/hb-tt-font.cc',
97 'src/hb-unicode-private.hh',
98 'src/hb-unicode.cc',
99 'src/hb-unicode.h',
100 'src/hb-utf-private.hh',
101 'src/hb-version.h',
102 'src/hb-warning.cc',
103 'src/hb.h',
104 ],
105 'include_dirs': [
106 'src',
107 ],
108 'direct_dependent_settings': {
109 'include_dirs': [
110 'src',
111 ],
112 },
113 'dependencies': [
114 '../../third_party/icu/icu.gyp:icuuc',
115 ],
116 'conditions': [ 11 'conditions': [
117 ['clang==1', { 12 ['sysroot!=""', {
118 'xcode_settings': { 13 'pkg-config': '<(chroot_cmd) ../../build/linux/pkg-config-wrapper "<(s ysroot)" "<(target_arch)"',
119 'WARNING_CFLAGS': [ 14 }, {
120 '-Wno-unused-value', 15 'pkg-config': 'pkg-config'
121 ],
122 },
123 'cflags': [
124 '-Wno-unused-value',
125 ]
126 }],
127 ['OS=="win"', {
128 # TODO(eae): C4267 on amd64. size_t -> int, size_t -> unsigned int
129 'msvs_disabled_warnings': [4267, 4334],
130 }], 16 }],
131 ], 17 ],
132 }, 18 },
19
20 'pkg-config': '<(pkg-config)',
21
22 'conditions': [
23 ['OS=="linux" and (buildtype!="Official" or chromeos==1)', {
24 # Since version 1.32.4, pangoft2 which we depend on pulls in harfbuzz
25 # anyways. However, we want to have control of the version of harfbuzz
26 # we use, so don't use system harfbuzz for official builds unless we're
27 # building chromeos in which case we have the system harfbuzz under
28 # control as well.
29 'use_system_harfbuzz': '<!(python ../../build/check_return_value.py <(pk g-config) --atleast-version=1.32.4 pangoft2)',
jungshik at Google 2014/03/20 21:21:44 According to http://ftp.gnome.org/pub/GNOME/source
jochen (gone - plz use gerrit) 2014/03/21 09:54:51 Done.
30 }, {
31 'use_system_harfbuzz': 0,
32 }],
33 ],
34 },
35 'conditions': [
36 ['use_system_harfbuzz==0', {
37 'targets': [
38 {
39 'target_name': 'harfbuzz-ng',
40 'type': 'static_library',
41 'defines': [
42 'HAVE_OT',
43 'HAVE_ICU',
44 'HB_NO_MT',
45 ],
46 'sources': [
47 'src/hb-atomic-private.hh',
48 'src/hb-blob.cc',
49 'src/hb-blob.h',
50 'src/hb-buffer-deserialize-json.hh',
51 'src/hb-buffer-deserialize-text.hh',
52 'src/hb-buffer-private.hh',
53 'src/hb-buffer-serialize.cc',
54 'src/hb-buffer.cc',
55 'src/hb-buffer.h',
56 'src/hb-cache-private.hh',
57 'src/hb-common.cc',
58 'src/hb-common.h',
59 'src/hb-deprecated.h',
60 'src/hb-face-private.hh',
61 'src/hb-face.cc',
62 'src/hb-face.h',
63 'src/hb-fallback-shape.cc',
64 'src/hb-font-private.hh',
65 'src/hb-font.cc',
66 'src/hb-font.h',
67 'src/hb-icu.cc',
68 'src/hb-icu.h',
69 'src/hb-mutex-private.hh',
70 'src/hb-object-private.hh',
71 'src/hb-open-file-private.hh',
72 'src/hb-open-type-private.hh',
73 'src/hb-ot-head-table.hh',
74 'src/hb-ot-hhea-table.hh',
75 'src/hb-ot-hmtx-table.hh',
76 'src/hb-ot-layout-common-private.hh',
77 'src/hb-ot-layout-gdef-table.hh',
78 'src/hb-ot-layout-gpos-table.hh',
79 'src/hb-ot-layout-gsub-table.hh',
80 'src/hb-ot-layout-gsubgpos-private.hh',
81 'src/hb-ot-layout-private.hh',
82 'src/hb-ot-layout.cc',
83 'src/hb-ot-layout.h',
84 'src/hb-ot-map-private.hh',
85 'src/hb-ot-map.cc',
86 'src/hb-ot-maxp-table.hh',
87 'src/hb-ot-name-table.hh',
88 'src/hb-ot-shape-complex-arabic-fallback.hh',
89 'src/hb-ot-shape-complex-arabic-table.hh',
90 'src/hb-ot-shape-complex-arabic.cc',
91 'src/hb-ot-shape-complex-default.cc',
92 'src/hb-ot-shape-complex-indic-machine.hh',
93 'src/hb-ot-shape-complex-indic-private.hh',
94 'src/hb-ot-shape-complex-indic-table.cc',
95 'src/hb-ot-shape-complex-indic.cc',
96 'src/hb-ot-shape-complex-myanmar-machine.hh',
97 'src/hb-ot-shape-complex-myanmar.cc',
98 'src/hb-ot-shape-complex-private.hh',
99 'src/hb-ot-shape-complex-sea-machine.hh',
100 'src/hb-ot-shape-complex-sea.cc',
101 'src/hb-ot-shape-complex-thai.cc',
102 'src/hb-ot-shape-fallback-private.hh',
103 'src/hb-ot-shape-fallback.cc',
104 'src/hb-ot-shape-normalize-private.hh',
105 'src/hb-ot-shape-normalize.cc',
106 'src/hb-ot-shape-private.hh',
107 'src/hb-ot-shape.cc',
108 'src/hb-ot-tag.cc',
109 'src/hb-ot-tag.h',
110 'src/hb-ot.h',
111 'src/hb-private.hh',
112 'src/hb-set-private.hh',
113 'src/hb-set.cc',
114 'src/hb-set.h',
115 'src/hb-shape-plan-private.hh',
116 'src/hb-shape-plan.cc',
117 'src/hb-shape-plan.h',
118 'src/hb-shape.cc',
119 'src/hb-shape.h',
120 'src/hb-shaper-impl-private.hh',
121 'src/hb-shaper-list.hh',
122 'src/hb-shaper-private.hh',
123 'src/hb-shaper.cc',
124 'src/hb-tt-font.cc',
125 'src/hb-unicode-private.hh',
126 'src/hb-unicode.cc',
127 'src/hb-unicode.h',
128 'src/hb-utf-private.hh',
129 'src/hb-version.h',
130 'src/hb-warning.cc',
131 'src/hb.h',
132 ],
133 'include_dirs': [
134 'src',
135 ],
136 'direct_dependent_settings': {
137 'include_dirs': [
138 'src',
139 ],
140 },
141 'dependencies': [
142 '../../third_party/icu/icu.gyp:icuuc',
143 ],
144 'conditions': [
145 ['clang==1', {
146 'xcode_settings': {
147 'WARNING_CFLAGS': [
148 '-Wno-unused-value',
149 ],
150 },
151 'cflags': [
152 '-Wno-unused-value',
153 ]
154 }],
155 ['OS=="win"', {
156 # TODO(eae): C4267 on amd64. size_t -> int, size_t -> unsigned int
157 'msvs_disabled_warnings': [4267, 4334],
158 }],
159 ],
160 },
161 ],
162 }, { # use_system_harfbuzz==1
163 'variables': {
164 # Check for presence of harfbuzz-icu library, use it if present.
165 'harfbuzz_libraries':
166 '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
167 '--code "int main() { return 0; }" '
168 '--run-linker '
169 '--on-success "harfbuzz harfbuzz-icu" '
170 '--on-failure "harfbuzz" '
171 '-- -lharfbuzz-icu)',
172 },
173 'targets': [
174 {
175 'target_name': 'harfbuzz-ng',
176 'type': 'none',
177 'cflags': [
178 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
179 ],
180 'direct_dependent_settings': {
181 'cflags': [
182 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
183 ],
184 },
185 'link_settings': {
186 'ldflags': [
187 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(harfbuzz_libr aries))',
188 ],
189 'libraries': [
190 '<!@(<(pkg-config) --libs-only-l <(harfbuzz_libraries))',
191 ],
192 },
193 },
194 ],
195 }],
133 ], 196 ],
134 } 197 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698