aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-03 15:09:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-03 15:09:52 -0700
commit00d44e014c805d06a59a74cd744e24482c218e9b (patch)
treeaf206d235dc1ebaf1a00908ea6882192ea7d1a9b /gyp
parent02125d10d5d021f1f3190ca95a3ef62b43349a64 (diff)
Start building HarfBuzz+Skia example
(prevent bitrot in example code) tools/using_skia_and_harfbuzz.cpp was written by aam@: https://github.com/aam/skiaex update HarfBuzz to latest release: 1.2.7 BUG=skia:4742 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1940393002 Review-Url: https://codereview.chromium.org/1940393002
Diffstat (limited to 'gyp')
-rw-r--r--gyp/harfbuzz.gyp61
-rw-r--r--gyp/tools.gyp14
2 files changed, 75 insertions, 0 deletions
diff --git a/gyp/harfbuzz.gyp b/gyp/harfbuzz.gyp
new file mode 100644
index 0000000000..ce7b42f27b
--- /dev/null
+++ b/gyp/harfbuzz.gyp
@@ -0,0 +1,61 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'hb_directory': '../third_party/externals/harfbuzz',
+ },
+ 'targets': [
+ {
+ 'target_name': 'harfbuzz',
+ 'type': 'static_library',
+ 'defines': [
+ 'HAVE_OT',
+ 'HAVE_ICU',
+ 'HAVE_ICU_BUILTIN',
+ 'HB_NO_MT',
+ ],
+ 'sources': [
+ '<!@(python find.py <(hb_directory)/src "*.c*")',
+ ],
+ 'sources!': [
+ '<(hb_directory)/src/hb-directwrite.cc',
+ '<(hb_directory)/src/hb-ft.cc',
+ '<(hb_directory)/src/hb-glib.cc',
+ '<(hb_directory)/src/hb-gobject-structs.cc',
+ '<(hb_directory)/src/hb-graphite2.cc',
+ '<(hb_directory)/src/hb-ucdn.cc',
+ '<(hb_directory)/src/hb-uniscribe.cc',
+ ],
+ 'include_dirs': [
+ '<(hb_directory)/src',
+ '../third_party/harfbuzz',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(hb_directory)/src',
+ '../third_party/harfbuzz',
+ ],
+ },
+ 'dependencies': [ 'icu.gyp:icuuc', ],
+ 'cflags': [ '-w', ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarningLevel': '0',
+ 'AdditionalOptions': [ '/wd4189', ],
+ },
+ },
+ 'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
+ 'conditions': [
+ [ 'skia_os == "mac"',
+ {
+ 'defines': [ 'HAVE_CORETEXT', ],
+ }, {
+ 'sources!': [ '<(hb_directory)/src/hb-coretext.cc', ],
+ }
+ ],
+ ],
+ },
+ ],
+}
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 1f38ef8632..a1d4deef73 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -31,6 +31,7 @@
'skpinfo',
'skpmaker',
'test_public_includes',
+ 'using_skia_and_harfbuzz',
'whitelist_typefaces',
],
'conditions': [
@@ -408,6 +409,19 @@
},
},
{
+ 'target_name': 'using_skia_and_harfbuzz',
+ 'type': 'executable',
+ 'sources': [ '../tools/using_skia_and_harfbuzz.cpp' ],
+ 'dependencies': [
+ 'skia_lib.gyp:skia_lib',
+ 'pdf.gyp:pdf',
+ 'harfbuzz.gyp:harfbuzz',
+ ],
+ 'cflags': [ '-w', ],
+ 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0', }, },
+ 'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
+ },
+ {
'target_name': 'whitelist_typefaces',
'type': 'executable',
'sources': [