skia2/gyp/harfbuzz.gyp
mtklein ada5a44f3b GN: get echo-headers sources via exec_script
exec_script runs every time gn does, which is explicitly on every one of our
bot runs.  That should be enough to obviate the .git/logs/HEAD hack.

Easiest way to do this was to swap around find.py's argument order to allow
multiple search directories.  This is the root of all the .gyp changes.

This moves the blacklist into BUILD.gn, which I think is nice.
It expands it a little as we're now searching recursively, into include/gpu/vk
which we can't include safely without the Vulkan SDK.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2205903004

Review-Url: https://codereview.chromium.org/2205903004
2016-08-02 14:28:26 -07:00

62 lines
1.6 KiB
Python

# 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-*.c*" <(hb_directory)/src)',
],
'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', ],
}
],
],
},
],
}