2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2014-12-17 21:43:13 +00:00
|
|
|
# GYP file to build various tools.
|
2011-06-02 14:38:23 +00:00
|
|
|
#
|
|
|
|
# To build on Linux:
|
|
|
|
# ./gyp_skia tools.gyp && make tools
|
|
|
|
#
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'apptype_console.gypi',
|
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
# Build all executable targets defined below.
|
|
|
|
'target_name': 'tools',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
2015-05-12 15:36:48 +00:00
|
|
|
'chrome_fuzz',
|
2015-11-18 19:06:37 +00:00
|
|
|
'dump_record',
|
2016-02-12 22:47:09 +00:00
|
|
|
'get_images_from_skps',
|
2016-07-12 22:06:24 +00:00
|
|
|
'get_current_monitor_profile',
|
2014-04-28 13:19:34 +00:00
|
|
|
'gpuveto',
|
2015-10-19 13:39:17 +00:00
|
|
|
'imgblur',
|
|
|
|
'imgslice',
|
2014-01-02 18:51:38 +00:00
|
|
|
'lua_app',
|
2014-01-02 19:42:15 +00:00
|
|
|
'lua_pictures',
|
2013-01-18 18:06:22 +00:00
|
|
|
'pinspect',
|
2011-06-02 14:38:23 +00:00
|
|
|
'skdiff',
|
2014-01-02 18:51:38 +00:00
|
|
|
'skhello',
|
2014-03-03 19:18:39 +00:00
|
|
|
'skpinfo',
|
2014-01-02 19:42:15 +00:00
|
|
|
'skpmaker',
|
2014-11-13 20:52:35 +00:00
|
|
|
'test_public_includes',
|
2016-05-03 22:09:52 +00:00
|
|
|
'using_skia_and_harfbuzz',
|
2016-05-13 14:32:59 +00:00
|
|
|
'visualize_color_gamut',
|
2015-08-31 16:22:38 +00:00
|
|
|
'whitelist_typefaces',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
2013-06-20 17:15:05 +00:00
|
|
|
'conditions': [
|
2016-04-18 19:42:05 +00:00
|
|
|
['skia_mesa and skia_os in ["linux", "mac"]',
|
|
|
|
{ 'dependencies': [ 'fiddle_build_test' ] }
|
|
|
|
],
|
2013-06-20 17:15:05 +00:00
|
|
|
['skia_shared_lib',
|
|
|
|
{
|
|
|
|
'dependencies': [
|
|
|
|
'sklua', # This can only be built if skia is built as a shared library
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2015-12-18 17:34:08 +00:00
|
|
|
[ 'skia_os == "android"',
|
|
|
|
{
|
|
|
|
'dependencies': [
|
|
|
|
# Build this by default to catch compile errors more quickly, since
|
|
|
|
# the only other time this code is exercised in the android framework
|
|
|
|
'android_utils',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-06-20 17:15:05 +00:00
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
},
|
2015-12-18 17:34:08 +00:00
|
|
|
{
|
|
|
|
'target_name': 'android_utils',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../tools/android/SkAndroidSDKCanvas.h',
|
|
|
|
'../tools/android/SkAndroidSDKCanvas.cpp',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../tools/android',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2015-11-18 19:06:37 +00:00
|
|
|
{
|
|
|
|
'target_name': 'dump_record',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/dump_record.cpp',
|
|
|
|
'../tools/DumpRecord.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/private',
|
|
|
|
'../src/core',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2016-07-11 18:27:30 +00:00
|
|
|
{
|
|
|
|
'target_name': 'monobench',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'flags.gyp:flags_common',
|
|
|
|
'resources',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'timer',
|
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'tools.gyp:sk_tool_utils',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../bench',
|
|
|
|
'../include/private',
|
|
|
|
'../src/core',
|
|
|
|
'../src/effects',
|
|
|
|
'../src/effects/gradients',
|
|
|
|
'../src/image',
|
|
|
|
'../src/gpu',
|
|
|
|
'../src/pdf',
|
|
|
|
'../src/utils',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../tools/monobench.cpp',
|
|
|
|
'../bench/Benchmark.cpp',
|
|
|
|
'<!@(python find.py ../bench "*Bench.cpp")',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../bench/GMBench.cpp',
|
|
|
|
],
|
|
|
|
},
|
2015-05-12 15:36:48 +00:00
|
|
|
{
|
|
|
|
'target_name': 'chrome_fuzz',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/chrome_fuzz.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2014-06-20 18:29:20 +00:00
|
|
|
{
|
|
|
|
'target_name': 'crash_handler',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [ '../tools/CrashHandler.cpp' ],
|
|
|
|
'dependencies': [ 'skia_lib.gyp:skia_lib' ],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [ '../tools' ],
|
|
|
|
},
|
2015-02-10 16:13:26 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'skia_is_bot', {
|
|
|
|
'defines': [ 'SK_CRASH_HANDLER' ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
2014-06-20 18:29:20 +00:00
|
|
|
'all_dependent_settings': {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [ 'Dbghelp.lib' ],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'resources',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [ '../tools/Resources.cpp' ],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
2014-06-21 17:54:17 +00:00
|
|
|
'include_dirs': [ '../tools', ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'sk_tool_utils',
|
|
|
|
'type': 'static_library',
|
2014-06-23 18:25:00 +00:00
|
|
|
'sources': [
|
|
|
|
'../tools/sk_tool_utils.cpp',
|
|
|
|
'../tools/sk_tool_utils_font.cpp',
|
2016-02-09 18:30:22 +00:00
|
|
|
'../tools/random_parse_path.cpp',
|
2014-06-23 18:25:00 +00:00
|
|
|
],
|
2014-07-31 12:58:44 +00:00
|
|
|
'include_dirs': [
|
2015-09-29 18:47:45 +00:00
|
|
|
'../include/private',
|
2014-07-31 12:58:44 +00:00
|
|
|
'../src/fonts',
|
2015-08-20 12:15:06 +00:00
|
|
|
'../src/core',
|
2014-07-31 12:58:44 +00:00
|
|
|
],
|
2014-06-21 17:54:17 +00:00
|
|
|
'dependencies': [
|
2014-07-31 15:31:56 +00:00
|
|
|
'resources',
|
2014-07-31 12:58:44 +00:00
|
|
|
'flags.gyp:flags',
|
2014-06-21 17:54:17 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [ '../tools', ],
|
2014-06-20 18:29:20 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name' : 'timer',
|
|
|
|
'type': 'static_library',
|
2015-10-23 14:02:06 +00:00
|
|
|
'sources': [ '../tools/timer/Timer.cpp' ],
|
2014-06-20 18:29:20 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': ['../tools/timer'],
|
|
|
|
},
|
2015-10-23 14:02:06 +00:00
|
|
|
'dependencies': [ 'skia_lib.gyp:skia_lib' ],
|
2014-06-20 18:29:20 +00:00
|
|
|
},
|
2011-06-02 14:38:23 +00:00
|
|
|
{
|
|
|
|
'target_name': 'skdiff',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
2012-12-05 20:13:12 +00:00
|
|
|
'../tools/skdiff.cpp',
|
|
|
|
'../tools/skdiff.h',
|
|
|
|
'../tools/skdiff_html.cpp',
|
|
|
|
'../tools/skdiff_html.h',
|
2011-06-02 14:38:23 +00:00
|
|
|
'../tools/skdiff_main.cpp',
|
2012-12-05 20:13:12 +00:00
|
|
|
'../tools/skdiff_utils.cpp',
|
|
|
|
'../tools/skdiff_utils.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-07-22 18:46:45 +00:00
|
|
|
],
|
|
|
|
},
|
2014-01-02 19:42:15 +00:00
|
|
|
{
|
|
|
|
'target_name': 'skpmaker',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skpmaker.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-01-02 19:42:15 +00:00
|
|
|
'../src/core',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2012-12-05 20:13:12 +00:00
|
|
|
{
|
|
|
|
'target_name': 'skimagediff',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skdiff.cpp',
|
|
|
|
'../tools/skdiff.h',
|
|
|
|
'../tools/skdiff_html.cpp',
|
|
|
|
'../tools/skdiff_html.h',
|
|
|
|
'../tools/skdiff_image.cpp',
|
|
|
|
'../tools/skdiff_utils.cpp',
|
|
|
|
'../tools/skdiff_utils.h',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skhello',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-04-02 19:16:36 +00:00
|
|
|
'flags.gyp:flags',
|
|
|
|
'pdf.gyp:pdf',
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-06-17 15:39:43 +00:00
|
|
|
],
|
2015-04-02 19:16:36 +00:00
|
|
|
'sources': [
|
|
|
|
'../tools/skhello.cpp',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
},
|
2014-03-03 19:18:39 +00:00
|
|
|
{
|
|
|
|
'target_name': 'skpinfo',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skpinfo.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-03-03 19:18:39 +00:00
|
|
|
'../src/core/',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2015-10-19 13:39:17 +00:00
|
|
|
{
|
|
|
|
'target_name': 'imgblur',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/imgblur.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/core',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'flags.gyp:flags_common',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'tools.gyp:sk_tool_utils',
|
|
|
|
],
|
|
|
|
},
|
2015-09-18 16:04:43 +00:00
|
|
|
{
|
|
|
|
'target_name': 'imgslice',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/imgslice.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/core',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2016-02-12 22:47:09 +00:00
|
|
|
{
|
2016-03-04 21:27:35 +00:00
|
|
|
'target_name': 'get_images_from_skps',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/get_images_from_skps.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../include/private',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
2016-04-25 17:35:03 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2016-03-04 21:27:35 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
2016-02-12 22:47:09 +00:00
|
|
|
},
|
2016-07-12 22:06:24 +00:00
|
|
|
{
|
|
|
|
'target_name': 'get_current_monitor_profile',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/get_current_monitor_profile.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../include/private',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2014-04-28 13:19:34 +00:00
|
|
|
{
|
|
|
|
'target_name': 'gpuveto',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/gpuveto.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-04-28 13:19:34 +00:00
|
|
|
'../src/core/',
|
|
|
|
'../src/images',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2013-06-09 01:54:56 +00:00
|
|
|
{
|
|
|
|
'target_name': 'lua_app',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/lua/lua_app.cpp',
|
|
|
|
'../src/utils/SkLua.cpp',
|
|
|
|
],
|
2014-02-26 20:22:32 +00:00
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-02-26 20:22:32 +00:00
|
|
|
# Lua exposes GrReduceClip which in turn requires src/core for SkTLList
|
|
|
|
'../src/gpu/',
|
|
|
|
'../src/core/',
|
|
|
|
],
|
2013-06-09 01:54:56 +00:00
|
|
|
'dependencies': [
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
2013-12-13 20:52:36 +00:00
|
|
|
'lua.gyp:lua',
|
2013-06-09 01:54:56 +00:00
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'ports.gyp:ports',
|
2013-12-13 20:52:36 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-06-09 01:54:56 +00:00
|
|
|
],
|
|
|
|
},
|
2013-05-15 19:34:20 +00:00
|
|
|
{
|
|
|
|
'target_name': 'lua_pictures',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/lua/lua_pictures.cpp',
|
|
|
|
'../src/utils/SkLuaCanvas.cpp',
|
2013-05-22 15:13:18 +00:00
|
|
|
'../src/utils/SkLua.cpp',
|
2013-05-15 19:34:20 +00:00
|
|
|
],
|
2014-02-26 20:22:32 +00:00
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-02-26 20:22:32 +00:00
|
|
|
# Lua exposes GrReduceClip which in turn requires src/core for SkTLList
|
|
|
|
'../src/gpu/',
|
|
|
|
'../src/core/',
|
|
|
|
],
|
2013-05-15 19:34:20 +00:00
|
|
|
'dependencies': [
|
|
|
|
'effects.gyp:effects',
|
2013-12-13 20:52:36 +00:00
|
|
|
'flags.gyp:flags',
|
2013-05-15 19:34:20 +00:00
|
|
|
'images.gyp:images',
|
2013-12-13 20:52:36 +00:00
|
|
|
'lua.gyp:lua',
|
2013-05-15 19:34:20 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2013-06-08 16:39:44 +00:00
|
|
|
'pdf.gyp:pdf',
|
2013-05-15 19:34:20 +00:00
|
|
|
'ports.gyp:ports',
|
2013-12-13 20:52:36 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2013-05-15 19:34:20 +00:00
|
|
|
],
|
|
|
|
},
|
2012-06-22 18:24:56 +00:00
|
|
|
{
|
|
|
|
'target_name': 'picture_utils',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/picture_utils.cpp',
|
2012-09-14 14:34:28 +00:00
|
|
|
'../tools/picture_utils.h',
|
2016-04-19 16:18:11 +00:00
|
|
|
],
|
2016-04-20 15:49:53 +00:00
|
|
|
'include_dirs': [
|
2016-04-19 16:18:11 +00:00
|
|
|
'../src/core/',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-12 14:56:36 +00:00
|
|
|
],
|
2013-05-15 20:01:07 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
2014-06-18 21:32:48 +00:00
|
|
|
'../tools/',
|
2013-05-15 20:01:07 +00:00
|
|
|
],
|
|
|
|
},
|
2012-06-12 14:56:36 +00:00
|
|
|
},
|
2012-06-14 18:58:40 +00:00
|
|
|
{
|
|
|
|
'target_name': 'pinspect',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/pinspect.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-12-13 20:52:36 +00:00
|
|
|
'flags.gyp:flags',
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-14 18:58:40 +00:00
|
|
|
],
|
|
|
|
},
|
2014-08-11 18:33:51 +00:00
|
|
|
{
|
2014-08-19 22:55:55 +00:00
|
|
|
'target_name': 'proc_stats',
|
2014-08-11 18:33:51 +00:00
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/ProcStats.h',
|
|
|
|
'../tools/ProcStats.cpp',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [ '../tools', ],
|
|
|
|
},
|
2016-07-27 20:55:26 +00:00
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
2014-08-11 18:33:51 +00:00
|
|
|
},
|
2016-02-08 15:08:21 +00:00
|
|
|
{
|
|
|
|
'target_name': 'url_data_manager',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/UrlDataManager.h',
|
|
|
|
'../tools/UrlDataManager.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/private',
|
|
|
|
'../src/core',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/private',
|
2016-02-29 17:05:32 +00:00
|
|
|
'../tools',
|
2016-02-08 15:08:21 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2016-05-03 22:09:52 +00:00
|
|
|
{
|
|
|
|
'target_name': 'using_skia_and_harfbuzz',
|
|
|
|
'type': 'executable',
|
2016-07-11 21:30:39 +00:00
|
|
|
'sources': [
|
|
|
|
'../tools/using_skia_and_harfbuzz.cpp',
|
|
|
|
'../tools/SkShaper.cpp',
|
|
|
|
],
|
2016-05-03 22:09:52 +00:00
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'harfbuzz.gyp:harfbuzz',
|
|
|
|
],
|
|
|
|
'cflags': [ '-w', ],
|
|
|
|
'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0', }, },
|
|
|
|
'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
|
|
|
|
},
|
2016-05-13 14:32:59 +00:00
|
|
|
{
|
|
|
|
'target_name': 'visualize_color_gamut',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/visualize_color_gamut.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../include/private',
|
|
|
|
'../tools',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'resources',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2015-08-31 16:22:38 +00:00
|
|
|
{
|
|
|
|
'target_name': 'whitelist_typefaces',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/whitelist_typefaces.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
},
|
2016-02-09 15:18:08 +00:00
|
|
|
{
|
|
|
|
'target_name': 'thermal_manager',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/ThermalManager.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [ '../tools', ],
|
|
|
|
},
|
|
|
|
},
|
2014-11-13 20:52:35 +00:00
|
|
|
{
|
|
|
|
'target_name': 'test_public_includes',
|
|
|
|
'type': 'static_library',
|
2014-11-14 19:11:46 +00:00
|
|
|
# Ensure that our public headers don't have unused params so that clients
|
|
|
|
# (e.g. Android) that include us can build with these warnings enabled
|
|
|
|
'cflags!': [ '-Wno-unused-parameter' ],
|
2014-11-13 20:52:35 +00:00
|
|
|
'variables': {
|
|
|
|
'includes_to_test': [
|
2015-11-13 14:11:09 +00:00
|
|
|
'<(skia_include_path)/android',
|
2014-11-13 20:52:35 +00:00
|
|
|
'<(skia_include_path)/animator',
|
|
|
|
'<(skia_include_path)/c',
|
2015-11-11 20:43:07 +00:00
|
|
|
'<(skia_include_path)/codec',
|
2014-11-13 20:52:35 +00:00
|
|
|
'<(skia_include_path)/config',
|
|
|
|
'<(skia_include_path)/core',
|
|
|
|
'<(skia_include_path)/effects',
|
|
|
|
'<(skia_include_path)/gpu',
|
|
|
|
'<(skia_include_path)/images',
|
|
|
|
'<(skia_include_path)/pathops',
|
|
|
|
'<(skia_include_path)/ports',
|
|
|
|
'<(skia_include_path)/utils',
|
|
|
|
'<(skia_include_path)/views',
|
|
|
|
'<(skia_include_path)/xml',
|
|
|
|
],
|
|
|
|
'paths_to_ignore': [
|
|
|
|
'<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
|
2015-06-17 14:55:59 +00:00
|
|
|
'<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
|
2014-11-13 20:52:35 +00:00
|
|
|
'<(skia_include_path)/ports/SkTypeface_mac.h',
|
|
|
|
'<(skia_include_path)/ports/SkTypeface_win.h',
|
|
|
|
'<(skia_include_path)/utils/ios',
|
|
|
|
'<(skia_include_path)/utils/mac',
|
|
|
|
'<(skia_include_path)/utils/win',
|
|
|
|
'<(skia_include_path)/utils/SkDebugUtils.h',
|
|
|
|
'<(skia_include_path)/utils/SkJSONCPP.h',
|
|
|
|
'<(skia_include_path)/views/SkOSWindow_iOS.h',
|
|
|
|
'<(skia_include_path)/views/SkOSWindow_Mac.h',
|
|
|
|
'<(skia_include_path)/views/SkOSWindow_SDL.h',
|
|
|
|
'<(skia_include_path)/views/SkOSWindow_Unix.h',
|
|
|
|
'<(skia_include_path)/views/SkOSWindow_Win.h',
|
|
|
|
'<(skia_include_path)/views/SkWindow.h',
|
2016-02-22 14:56:40 +00:00
|
|
|
'<(skia_include_path)/gpu/vk',
|
2014-11-13 20:52:35 +00:00
|
|
|
],
|
2016-03-30 15:28:02 +00:00
|
|
|
'output_file' : [
|
|
|
|
'<(INTERMEDIATE_DIR)/test_public_includes.cpp',
|
|
|
|
],
|
2014-11-13 20:52:35 +00:00
|
|
|
},
|
|
|
|
'include_dirs': [
|
|
|
|
'<@(includes_to_test)',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
# unused_param_test.cpp is generated by the action below.
|
|
|
|
'<(INTERMEDIATE_DIR)/test_public_includes.cpp',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'generate_includes_cpp',
|
|
|
|
'inputs': [
|
|
|
|
'../tools/generate_includes_cpp.py',
|
|
|
|
'<@(includes_to_test)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
2016-03-30 15:28:02 +00:00
|
|
|
'<@(output_file)',
|
|
|
|
# Force the script to always run so that we pick up when files have
|
|
|
|
# been deleted.
|
|
|
|
'filename_that_does_not_exists_but_forces_rebuild.txt',
|
2014-11-13 20:52:35 +00:00
|
|
|
],
|
|
|
|
'action': ['python', '../tools/generate_includes_cpp.py',
|
|
|
|
'--ignore', '<(paths_to_ignore)',
|
2016-03-30 15:28:02 +00:00
|
|
|
'<@(output_file)', '<@(includes_to_test)'],
|
2014-11-13 20:52:35 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2013-03-08 18:43:35 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2013-06-20 17:15:05 +00:00
|
|
|
['skia_shared_lib',
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'sklua',
|
|
|
|
'product_name': 'skia',
|
|
|
|
'product_prefix': '',
|
|
|
|
'product_dir': '<(PRODUCT_DIR)/',
|
|
|
|
'type': 'shared_library',
|
|
|
|
'sources': [
|
|
|
|
'../src/utils/SkLuaCanvas.cpp',
|
|
|
|
'../src/utils/SkLua.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-02-26 20:22:32 +00:00
|
|
|
# Lua exposes GrReduceClip which in turn requires src/core for SkTLList
|
|
|
|
'../src/gpu/',
|
|
|
|
'../src/core/',
|
2013-06-20 17:15:05 +00:00
|
|
|
'../third_party/lua/src/',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'lua.gyp:lua',
|
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['skia_os != "win"',
|
|
|
|
{
|
|
|
|
'ldflags': [
|
|
|
|
'-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-03-08 23:13:33 +00:00
|
|
|
['skia_win_debuggers_path and skia_os == "win"',
|
2013-03-08 18:43:35 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'win_dbghelp',
|
|
|
|
'type': 'static_library',
|
|
|
|
'defines': [
|
|
|
|
'SK_CDB_PATH="<(skia_win_debuggers_path)"',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../tools/win_dbghelp.h',
|
|
|
|
'../tools/win_dbghelp.cpp',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2013-04-02 14:12:38 +00:00
|
|
|
['skia_os == "win"',
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'win_lcid',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/win_lcid.cpp',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2014-07-31 12:58:44 +00:00
|
|
|
['skia_os == "mac"',
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'create_test_font',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/create_test_font.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-07-28 16:54:52 +00:00
|
|
|
'../include/private',
|
2014-07-31 12:58:44 +00:00
|
|
|
'../src/core',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'resources',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2016-04-19 15:46:50 +00:00
|
|
|
['skia_mesa and skia_os in ["linux", "mac"]',
|
2016-04-18 18:50:07 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'fiddle_build_test',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/fiddle/draw.cpp',
|
|
|
|
'../tools/fiddle/fiddle_main.cpp',
|
|
|
|
'../tools/fiddle/fiddle_main.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'pdf.gyp:pdf',
|
2016-04-20 15:49:53 +00:00
|
|
|
'gputest.gyp:osmesa',
|
2016-04-18 18:50:07 +00:00
|
|
|
],
|
|
|
|
'defines': [ 'FIDDLE_BUILD_TEST' ],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
}
|