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

Unified Diff: third_party/harfbuzz/harfbuzz.gyp

Issue 6052008: harfbuzz: check in harfbuzz-ng, add gyp define to use it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/test.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/harfbuzz/harfbuzz.gyp
diff --git a/third_party/harfbuzz/harfbuzz.gyp b/third_party/harfbuzz/harfbuzz.gyp
index 308b170ea2ff00ad824d431092eb21220db2f976..64535beda24e75f8f57c9641996202b6dfa6beeb 100644
--- a/third_party/harfbuzz/harfbuzz.gyp
+++ b/third_party/harfbuzz/harfbuzz.gyp
@@ -3,47 +3,66 @@
# found in the LICENSE file.
{
- 'targets': [
- {
- 'target_name': 'harfbuzz',
- 'type': '<(library)',
- 'sources': [
- 'contrib/harfbuzz-freetype.c',
- 'contrib/harfbuzz-unicode.c',
- 'contrib/harfbuzz-unicode-tables.c',
- 'src/harfbuzz-buffer.c',
- 'src/harfbuzz-stream.c',
- 'src/harfbuzz-dump.c',
- 'src/harfbuzz-gdef.c',
- 'src/harfbuzz-gpos.c',
- 'src/harfbuzz-gsub.c',
- 'src/harfbuzz-impl.c',
- 'src/harfbuzz-open.c',
- 'src/harfbuzz-shaper.cpp',
- 'src/harfbuzz-tibetan.c',
- 'src/harfbuzz-khmer.c',
- 'src/harfbuzz-indic.cpp',
- 'src/harfbuzz-hebrew.c',
- 'src/harfbuzz-arabic.c',
- 'src/harfbuzz-hangul.c',
- 'src/harfbuzz-myanmar.c',
- 'src/harfbuzz-thai.c',
+ 'conditions': [
+ ['use_harfbuzz_ng==0', {
+ 'targets': [
+ {
+ 'target_name': 'harfbuzz',
+ 'type': '<(library)',
+ 'sources': [
+ 'contrib/harfbuzz-freetype.c',
+ 'contrib/harfbuzz-unicode.c',
+ 'contrib/harfbuzz-unicode-tables.c',
+ 'src/harfbuzz-buffer.c',
+ 'src/harfbuzz-stream.c',
+ 'src/harfbuzz-dump.c',
+ 'src/harfbuzz-gdef.c',
+ 'src/harfbuzz-gpos.c',
+ 'src/harfbuzz-gsub.c',
+ 'src/harfbuzz-impl.c',
+ 'src/harfbuzz-open.c',
+ 'src/harfbuzz-shaper.cpp',
+ 'src/harfbuzz-tibetan.c',
+ 'src/harfbuzz-khmer.c',
+ 'src/harfbuzz-indic.cpp',
+ 'src/harfbuzz-hebrew.c',
+ 'src/harfbuzz-arabic.c',
+ 'src/harfbuzz-hangul.c',
+ 'src/harfbuzz-myanmar.c',
+ 'src/harfbuzz-thai.c',
+ ],
+ 'include_dirs': [
+ 'contrib',
+ 'src',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'contrib',
+ 'src',
+ ],
+ },
+ 'dependencies': [
+ '../../build/linux/system.gyp:freetype2',
+ ],
+ },
],
- 'include_dirs': [
- 'contrib',
- 'src',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- 'contrib',
- 'src',
- ],
- },
- 'dependencies': [
- '../../build/linux/system.gyp:freetype2',
- ],
- },
- ],
+ }, { # else, use new harfbuzz
+ 'targets': [
+ {
+ # Make the 'harfbuzz' target just shim through to the harfbuzz-ng
+ # one.
+ 'target_name': 'harfbuzz',
+ 'type': 'settings',
+ 'dependencies': [
+ '../harfbuzz-ng/harfbuzz.gyp:harfbuzz'
+ ],
+ 'export_dependent_settings': [
+ '../harfbuzz-ng/harfbuzz.gyp:harfbuzz'
+ ],
+ }
+ ]
+ }]
+ ]
}
# Local Variables:
« no previous file with comments | « third_party/harfbuzz-ng/src/test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698