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

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"', {
24 # Since version 1.32.4, pangoft2 which we depend on pulls in harfbuzz
25 # anyways.
Nico 2014/03/19 09:52:52 Oh hmm, does that mean we have to bundle pangoft2?
jochen (gone - plz use gerrit) 2014/03/19 10:36:53 We can add a check that for buildtype=Official and
Nico 2014/03/19 10:39:30 But then the official builder still gets the warni
Nico 2014/03/19 10:51:07 Ah, right. So we might need to bundle pangoft when
26 'use_system_harfbuzz': '<!(python ../../build/check_return_value.py <(pk g-config) --atleast-version=1.32.4 pangoft2)',
27 }, {
28 'use_system_harfbuzz': 0,
29 }],
30 ],
31 },
32 'conditions': [
33 ['use_system_harfbuzz==0', {
34 'targets': [
35 {
36 'target_name': 'harfbuzz-ng',
37 'type': 'static_library',
38 'defines': [
39 'HAVE_OT',
40 'HAVE_ICU',
41 'HB_NO_MT',
42 ],
43 'sources': [
44 'src/hb-atomic-private.hh',
45 'src/hb-blob.cc',
46 'src/hb-blob.h',
47 'src/hb-buffer-deserialize-json.hh',
48 'src/hb-buffer-deserialize-text.hh',
49 'src/hb-buffer-private.hh',
50 'src/hb-buffer-serialize.cc',
51 'src/hb-buffer.cc',
52 'src/hb-buffer.h',
53 'src/hb-cache-private.hh',
54 'src/hb-common.cc',
55 'src/hb-common.h',
56 'src/hb-deprecated.h',
57 'src/hb-face-private.hh',
58 'src/hb-face.cc',
59 'src/hb-face.h',
60 'src/hb-fallback-shape.cc',
61 'src/hb-font-private.hh',
62 'src/hb-font.cc',
63 'src/hb-font.h',
64 'src/hb-icu.cc',
65 'src/hb-icu.h',
66 'src/hb-mutex-private.hh',
67 'src/hb-object-private.hh',
68 'src/hb-open-file-private.hh',
69 'src/hb-open-type-private.hh',
70 'src/hb-ot-head-table.hh',
71 'src/hb-ot-hhea-table.hh',
72 'src/hb-ot-hmtx-table.hh',
73 'src/hb-ot-layout-common-private.hh',
74 'src/hb-ot-layout-gdef-table.hh',
75 'src/hb-ot-layout-gpos-table.hh',
76 'src/hb-ot-layout-gsub-table.hh',
77 'src/hb-ot-layout-gsubgpos-private.hh',
78 'src/hb-ot-layout-private.hh',
79 'src/hb-ot-layout.cc',
80 'src/hb-ot-layout.h',
81 'src/hb-ot-map-private.hh',
82 'src/hb-ot-map.cc',
83 'src/hb-ot-maxp-table.hh',
84 'src/hb-ot-name-table.hh',
85 'src/hb-ot-shape-complex-arabic-fallback.hh',
86 'src/hb-ot-shape-complex-arabic-table.hh',
87 'src/hb-ot-shape-complex-arabic.cc',
88 'src/hb-ot-shape-complex-default.cc',
89 'src/hb-ot-shape-complex-indic-machine.hh',
90 'src/hb-ot-shape-complex-indic-private.hh',
91 'src/hb-ot-shape-complex-indic-table.cc',
92 'src/hb-ot-shape-complex-indic.cc',
93 'src/hb-ot-shape-complex-myanmar-machine.hh',
94 'src/hb-ot-shape-complex-myanmar.cc',
95 'src/hb-ot-shape-complex-private.hh',
96 'src/hb-ot-shape-complex-sea-machine.hh',
97 'src/hb-ot-shape-complex-sea.cc',
98 'src/hb-ot-shape-complex-thai.cc',
99 'src/hb-ot-shape-fallback-private.hh',
100 'src/hb-ot-shape-fallback.cc',
101 'src/hb-ot-shape-normalize-private.hh',
102 'src/hb-ot-shape-normalize.cc',
103 'src/hb-ot-shape-private.hh',
104 'src/hb-ot-shape.cc',
105 'src/hb-ot-tag.cc',
106 'src/hb-ot-tag.h',
107 'src/hb-ot.h',
108 'src/hb-private.hh',
109 'src/hb-set-private.hh',
110 'src/hb-set.cc',
111 'src/hb-set.h',
112 'src/hb-shape-plan-private.hh',
113 'src/hb-shape-plan.cc',
114 'src/hb-shape-plan.h',
115 'src/hb-shape.cc',
116 'src/hb-shape.h',
117 'src/hb-shaper-impl-private.hh',
118 'src/hb-shaper-list.hh',
119 'src/hb-shaper-private.hh',
120 'src/hb-shaper.cc',
121 'src/hb-tt-font.cc',
122 'src/hb-unicode-private.hh',
123 'src/hb-unicode.cc',
124 'src/hb-unicode.h',
125 'src/hb-utf-private.hh',
126 'src/hb-version.h',
127 'src/hb-warning.cc',
128 'src/hb.h',
129 ],
130 'include_dirs': [
131 'src',
132 ],
133 'direct_dependent_settings': {
134 'include_dirs': [
135 'src',
136 ],
137 },
138 'dependencies': [
139 '../../third_party/icu/icu.gyp:icuuc',
140 ],
141 'conditions': [
142 ['clang==1', {
143 'xcode_settings': {
144 'WARNING_CFLAGS': [
145 '-Wno-unused-value',
146 ],
147 },
148 'cflags': [
149 '-Wno-unused-value',
150 ]
151 }],
152 ['OS=="win"', {
153 # TODO(eae): C4267 on amd64. size_t -> int, size_t -> unsigned int
154 'msvs_disabled_warnings': [4267, 4334],
155 }],
156 ],
157 },
158 ],
159 }, { # use_system_harfbuzz==1
160 'variables': {
161 # Check for presence of harfbuzz-icu library, use it if present.
162 'harfbuzz_libraries':
163 '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
164 '--code "int main() { return 0; }" '
165 '--run-linker '
166 '--on-success "harfbuzz harfbuzz-icu" '
167 '--on-failure "harfbuzz" '
168 '-- -lharfbuzz-icu)',
169 },
170 'targets': [
171 {
172 'target_name': 'harfbuzz-ng',
173 'type': 'none',
174 'cflags': [
175 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
176 ],
177 'direct_dependent_settings': {
178 'cflags': [
179 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
180 ],
181 },
182 'link_settings': {
183 'ldflags': [
184 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(harfbuzz_libr aries))',
185 ],
186 'libraries': [
187 '<!@(<(pkg-config) --libs-only-l <(harfbuzz_libraries))',
188 ],
189 },
190 },
191 ],
192 }],
133 ], 193 ],
134 } 194 }
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