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

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: 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
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', 11 'variables': {
12 'type': 'static_library', 12 'variables': {
13 'defines': [ 13 'sysroot%': '',
Nico 2014/03/18 15:12:13 (Reading the variables upside-down) …Oh, you're s
jochen (gone - plz use gerrit) 2014/03/18 15:39:37 as discussed, i need to nest sysroot one level dee
14 'HAVE_OT', 14 'target_arch%': '',
15 'HAVE_ICU', 15 },
16 'HB_NO_MT', 16 'use_system_harfbuzz%': '0',
17 ], 17 'sysroot%': '<(sysroot)',
18 'sources': [ 18 'target_arch%': '<(target_arch)',
Nico 2014/03/18 15:12:13 Don't you get this from common.gypi already?
19 'src/hb-atomic-private.hh', 19
20 'src/hb-blob.cc', 20 'conditions': [
21 'src/hb-blob.h', 21 ['sysroot!=""', {
22 'src/hb-buffer-deserialize-json.hh', 22 'pkg-config': '<(chroot_cmd) ../../build/linux/pkg-config-wrapper "< (sysroot)" "<(target_arch)"',
23 'src/hb-buffer-deserialize-text.hh', 23 }, {
24 'src/hb-buffer-private.hh', 24 'pkg-config': 'pkg-config'
25 'src/hb-buffer-serialize.cc', 25 }],
Nico 2014/03/18 15:12:13 Hm, looks like this block is in every file using p
jochen (gone - plz use gerrit) 2014/03/18 15:39:37 yes, but that looks like a separate project. ther
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 ], 26 ],
112 }, 27 },
113 'dependencies': [ 28
114 '../../third_party/icu/icu.gyp:icuuc', 29 'use_system_harfbuzz%': '<(use_system_harfbuzz)',
115 ], 30 'pkg-config': '<(pkg-config)',
31
116 'conditions': [ 32 'conditions': [
117 ['clang==1', { 33 ['use_system_harfbuzz==1', {
118 'xcode_settings': { 34 'system_harfbuzz_available': '<!(../../build/linux/check_return_value <(pkg-config) --exists harfbuzz)',
119 'WARNING_CFLAGS': [ 35 }, {
120 '-Wno-unused-value', 36 'system_harfbuzz_available': 0,
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 }], 37 }],
131 ], 38 ],
132 }, 39 },
40 'use_system_harfbuzz%': '<(use_system_harfbuzz)',
41 'system_harfbuzz_available': '<(system_harfbuzz_available)',
42 'pkg-config': '<(pkg-config)',
43 },
44 'conditions': [
45 ['use_system_harfbuzz==0 or system_harfbuzz_available==0', {
46 'targets': [
47 {
48 'target_name': 'harfbuzz-ng',
49 'type': 'static_library',
50 'defines': [
51 'HAVE_OT',
52 'HAVE_ICU',
53 'HB_NO_MT',
54 ],
55 'sources': [
56 'src/hb-atomic-private.hh',
57 'src/hb-blob.cc',
58 'src/hb-blob.h',
59 'src/hb-buffer-deserialize-json.hh',
60 'src/hb-buffer-deserialize-text.hh',
61 'src/hb-buffer-private.hh',
62 'src/hb-buffer-serialize.cc',
63 'src/hb-buffer.cc',
64 'src/hb-buffer.h',
65 'src/hb-cache-private.hh',
66 'src/hb-common.cc',
67 'src/hb-common.h',
68 'src/hb-deprecated.h',
69 'src/hb-face-private.hh',
70 'src/hb-face.cc',
71 'src/hb-face.h',
72 'src/hb-fallback-shape.cc',
73 'src/hb-font-private.hh',
74 'src/hb-font.cc',
75 'src/hb-font.h',
76 'src/hb-icu.cc',
77 'src/hb-icu.h',
78 'src/hb-mutex-private.hh',
79 'src/hb-object-private.hh',
80 'src/hb-open-file-private.hh',
81 'src/hb-open-type-private.hh',
82 'src/hb-ot-head-table.hh',
83 'src/hb-ot-hhea-table.hh',
84 'src/hb-ot-hmtx-table.hh',
85 'src/hb-ot-layout-common-private.hh',
86 'src/hb-ot-layout-gdef-table.hh',
87 'src/hb-ot-layout-gpos-table.hh',
88 'src/hb-ot-layout-gsub-table.hh',
89 'src/hb-ot-layout-gsubgpos-private.hh',
90 'src/hb-ot-layout-private.hh',
91 'src/hb-ot-layout.cc',
92 'src/hb-ot-layout.h',
93 'src/hb-ot-map-private.hh',
94 'src/hb-ot-map.cc',
95 'src/hb-ot-maxp-table.hh',
96 'src/hb-ot-name-table.hh',
97 'src/hb-ot-shape-complex-arabic-fallback.hh',
98 'src/hb-ot-shape-complex-arabic-table.hh',
99 'src/hb-ot-shape-complex-arabic.cc',
100 'src/hb-ot-shape-complex-default.cc',
101 'src/hb-ot-shape-complex-indic-machine.hh',
102 'src/hb-ot-shape-complex-indic-private.hh',
103 'src/hb-ot-shape-complex-indic-table.cc',
104 'src/hb-ot-shape-complex-indic.cc',
105 'src/hb-ot-shape-complex-myanmar-machine.hh',
106 'src/hb-ot-shape-complex-myanmar.cc',
107 'src/hb-ot-shape-complex-private.hh',
108 'src/hb-ot-shape-complex-sea-machine.hh',
109 'src/hb-ot-shape-complex-sea.cc',
110 'src/hb-ot-shape-complex-thai.cc',
111 'src/hb-ot-shape-fallback-private.hh',
112 'src/hb-ot-shape-fallback.cc',
113 'src/hb-ot-shape-normalize-private.hh',
114 'src/hb-ot-shape-normalize.cc',
115 'src/hb-ot-shape-private.hh',
116 'src/hb-ot-shape.cc',
117 'src/hb-ot-tag.cc',
118 'src/hb-ot-tag.h',
119 'src/hb-ot.h',
120 'src/hb-private.hh',
121 'src/hb-set-private.hh',
122 'src/hb-set.cc',
123 'src/hb-set.h',
124 'src/hb-shape-plan-private.hh',
125 'src/hb-shape-plan.cc',
126 'src/hb-shape-plan.h',
127 'src/hb-shape.cc',
128 'src/hb-shape.h',
129 'src/hb-shaper-impl-private.hh',
130 'src/hb-shaper-list.hh',
131 'src/hb-shaper-private.hh',
132 'src/hb-shaper.cc',
133 'src/hb-tt-font.cc',
134 'src/hb-unicode-private.hh',
135 'src/hb-unicode.cc',
136 'src/hb-unicode.h',
137 'src/hb-utf-private.hh',
138 'src/hb-version.h',
139 'src/hb-warning.cc',
140 'src/hb.h',
141 ],
142 'include_dirs': [
143 'src',
144 ],
145 'direct_dependent_settings': {
146 'include_dirs': [
147 'src',
148 ],
149 },
150 'dependencies': [
151 '../../third_party/icu/icu.gyp:icuuc',
152 ],
153 'conditions': [
154 ['clang==1', {
155 'xcode_settings': {
156 'WARNING_CFLAGS': [
157 '-Wno-unused-value',
158 ],
159 },
160 'cflags': [
161 '-Wno-unused-value',
162 ]
163 }],
164 ['OS=="win"', {
165 # TODO(eae): C4267 on amd64. size_t -> int, size_t -> unsigned int
166 'msvs_disabled_warnings': [4267, 4334],
167 }],
168 ],
169 },
170 ],
171 }, { # use_system_harfbuzz==1 and system_harfbuzz_available==1
172 'variables': {
173 # Check for presence of harfbuzz-icu library, use it if present.
174 'harfbuzz_libraries':
175 '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
176 '--code "int main() { return 0; }" '
177 '--run-linker '
178 '--on-success "harfbuzz harfbuzz-icu" '
179 '--on-failure "harfbuzz" '
180 '-- -lharfbuzz-icu)',
181 },
182 'targets': [
183 {
184 'target_name': 'harfbuzz-ng',
185 'type': 'none',
186 'cflags': [
187 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
188 ],
189 'direct_dependent_settings': {
190 'cflags': [
191 '<!@(<(pkg-config) --cflags <(harfbuzz_libraries))',
192 ],
193 },
194 'link_settings': {
195 'ldflags': [
196 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(harfbuzz_libr aries))',
197 ],
198 'libraries': [
199 '<!@(<(pkg-config) --libs-only-l <(harfbuzz_libraries))',
200 ],
201 },
202 },
203 ],
204 }],
133 ], 205 ],
134 } 206 }
OLDNEW
« build/linux/check_return_value ('K') | « build/linux/check_return_value ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698