diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 20:38:50 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 20:38:50 +0000 |
commit | 29c2daeafac577bd80c7b37891e3bbae7c542b5e (patch) | |
tree | 3ba8adb929982562db6c0b37c15c00ada32b41da /third_party/harfbuzz | |
parent | 678a7d737ffd81978c981d692972695e4ad7f394 (diff) | |
download | chromium_src-29c2daeafac577bd80c7b37891e3bbae7c542b5e.zip chromium_src-29c2daeafac577bd80c7b37891e3bbae7c542b5e.tar.gz chromium_src-29c2daeafac577bd80c7b37891e3bbae7c542b5e.tar.bz2 |
harfbuzz: check in harfbuzz-ng, add gyp define to use it
This checks in harbuzz-ng b0d396aa88b3cdf8cea896bfeeba197656e1cdb1.
Setting use_harfbuzz_ng to 1 in gyp will cause us to build
harfbuzz-ng in place of harfbuzz. So far this currently fails to
compile due to all our other code relying on the old API.
BUG=68551
TEST=./build/gyp_chromium -Duse_harfbuzz_ng=1, verify build breaks
Review URL: http://codereview.chromium.org/6052008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/harfbuzz')
-rw-r--r-- | third_party/harfbuzz/harfbuzz.gyp | 99 |
1 files changed, 59 insertions, 40 deletions
diff --git a/third_party/harfbuzz/harfbuzz.gyp b/third_party/harfbuzz/harfbuzz.gyp index 308b170..64535be 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: |