2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build various tools.
|
|
|
|
#
|
|
|
|
# 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': [
|
2013-01-18 18:06:22 +00:00
|
|
|
'bench_pictures',
|
|
|
|
'filter',
|
|
|
|
'pinspect',
|
|
|
|
'render_pdfs',
|
|
|
|
'render_pictures',
|
2011-06-02 14:38:23 +00:00
|
|
|
'skdiff',
|
|
|
|
'skhello',
|
|
|
|
'skimage',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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': [
|
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skhello',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skhello.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2013-03-20 14:20:18 +00:00
|
|
|
'flags.gyp:flags',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skimage',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skimage_main.cpp',
|
|
|
|
],
|
2013-05-08 19:14:23 +00:00
|
|
|
'include_dirs': [
|
|
|
|
# For SkBitmapHasher.h
|
|
|
|
'../src/utils/',
|
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2013-04-11 15:53:35 +00:00
|
|
|
'flags.gyp:flags',
|
2013-05-08 19:14:23 +00:00
|
|
|
'gm.gyp:gm_expectations',
|
|
|
|
'images.gyp:images',
|
|
|
|
'jsoncpp.gyp:jsoncpp',
|
|
|
|
'utils.gyp:utils',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
},
|
2012-06-12 14:56:36 +00:00
|
|
|
{
|
|
|
|
'target_name': 'render_pictures',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/render_pictures_main.cpp',
|
2012-07-16 17:29:16 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/pipe/utils/',
|
2012-06-12 14:56:36 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-08-01 17:53:29 +00:00
|
|
|
'tools.gyp:picture_renderer',
|
2012-06-22 18:24:56 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2013-03-18 21:37:39 +00:00
|
|
|
'ports.gyp:ports',
|
2013-03-21 19:43:15 +00:00
|
|
|
'flags.gyp:flags',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
},
|
2012-06-27 19:33:29 +00:00
|
|
|
{
|
|
|
|
'target_name': 'bench_pictures',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
2012-09-07 15:21:18 +00:00
|
|
|
'../bench/SkBenchLogger.h',
|
|
|
|
'../bench/SkBenchLogger.cpp',
|
|
|
|
'../bench/TimerData.h',
|
|
|
|
'../bench/TimerData.cpp',
|
2012-07-09 19:37:40 +00:00
|
|
|
'../tools/bench_pictures_main.cpp',
|
2012-09-07 15:21:18 +00:00
|
|
|
'../tools/PictureBenchmark.cpp',
|
2012-06-27 19:33:29 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../bench',
|
2013-03-04 19:56:21 +00:00
|
|
|
'../src/lazy/',
|
2012-06-27 19:33:29 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-09-05 19:43:46 +00:00
|
|
|
'effects.gyp:effects',
|
2012-06-27 19:33:29 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2012-08-01 17:53:29 +00:00
|
|
|
'tools.gyp:picture_renderer',
|
|
|
|
'bench.gyp:bench_timer',
|
2013-03-18 21:37:39 +00:00
|
|
|
'ports.gyp:ports',
|
2013-03-21 19:43:15 +00:00
|
|
|
'flags.gyp:flags',
|
2012-09-07 15:21:18 +00:00
|
|
|
],
|
2012-08-01 17:53:29 +00:00
|
|
|
},
|
|
|
|
{
|
2012-10-10 19:45:51 +00:00
|
|
|
'target_name': 'picture_renderer',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
2012-11-07 18:01:46 +00:00
|
|
|
'../tools/PictureRenderer.h',
|
2012-07-26 17:27:57 +00:00
|
|
|
'../tools/PictureRenderer.cpp',
|
2013-03-04 16:41:06 +00:00
|
|
|
'../tools/PictureRenderingFlags.h',
|
|
|
|
'../tools/PictureRenderingFlags.cpp',
|
2012-11-07 18:01:46 +00:00
|
|
|
'../tools/CopyTilesRenderer.h',
|
|
|
|
'../tools/CopyTilesRenderer.cpp',
|
2012-07-26 17:27:57 +00:00
|
|
|
'../src/pipe/utils/SamplePipeControllers.h',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
2012-10-10 19:45:51 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
2012-11-02 18:11:49 +00:00
|
|
|
'../src/core/',
|
2012-10-10 19:45:51 +00:00
|
|
|
'../src/pipe/utils/',
|
|
|
|
'../src/utils/',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-09-10 16:20:47 +00:00
|
|
|
'effects.gyp:effects',
|
2012-08-21 19:05:08 +00:00
|
|
|
'images.gyp:images',
|
2012-07-26 17:27:57 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2013-03-20 14:20:18 +00:00
|
|
|
'flags.gyp:flags',
|
2012-10-10 19:45:51 +00:00
|
|
|
],
|
2013-02-07 19:45:46 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_gpu == 1',
|
|
|
|
{
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2012-10-10 19:45:51 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'images.gyp:images',
|
|
|
|
],
|
2012-07-26 17:27:57 +00:00
|
|
|
},
|
2012-11-01 19:52:38 +00:00
|
|
|
{
|
|
|
|
'target_name': 'render_pdfs',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/render_pdfs_main.cpp',
|
|
|
|
'../tools/PdfRenderer.cpp',
|
|
|
|
'../tools/PdfRenderer.h',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/pipe/utils/',
|
|
|
|
'../src/utils/',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'ports.gyp:ports',
|
|
|
|
'tools.gyp:picture_utils',
|
|
|
|
],
|
2013-03-08 18:00:16 +00:00
|
|
|
'conditions': [
|
2013-03-08 23:13:33 +00:00
|
|
|
['skia_win_debuggers_path and skia_os == "win"',
|
2013-03-08 18:00:16 +00:00
|
|
|
{
|
|
|
|
'dependencies': [
|
|
|
|
'tools.gyp:win_dbghelp',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
# VS static libraries don't have a linker option. We must set a global
|
|
|
|
# project linker option, or add it to each executable.
|
|
|
|
['skia_win_debuggers_path and skia_os == "win" and '
|
2013-03-08 23:13:33 +00:00
|
|
|
'skia_arch_width == 64',
|
2013-03-08 18:00:16 +00:00
|
|
|
{
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
|
|
|
'<(skia_win_debuggers_path)/x64/DbgHelp.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
['skia_win_debuggers_path and skia_os == "win" and '
|
2013-03-08 23:13:33 +00:00
|
|
|
'skia_arch_width == 32',
|
2013-03-08 18:00:16 +00:00
|
|
|
{
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
|
|
|
'<(skia_win_debuggers_path)/DbgHelp.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2012-11-01 19:52:38 +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',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
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': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-06-14 18:58:40 +00:00
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
2012-10-04 13:00:33 +00:00
|
|
|
{
|
|
|
|
'target_name': 'filter',
|
|
|
|
'type': 'executable',
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core',
|
2013-01-31 15:56:22 +00:00
|
|
|
'../debugger',
|
2012-10-04 13:00:33 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../tools/filtermain.cpp',
|
2012-12-07 20:56:13 +00:00
|
|
|
'../tools/path_utils.h',
|
2013-01-31 15:56:22 +00:00
|
|
|
'../tools/path_utils.cpp',
|
|
|
|
'../debugger/SkDrawCommand.h',
|
|
|
|
'../debugger/SkDrawCommand.cpp',
|
|
|
|
'../debugger/SkDebugCanvas.h',
|
|
|
|
'../debugger/SkDebugCanvas.cpp',
|
|
|
|
'../debugger/SkObjectParser.h',
|
|
|
|
'../debugger/SkObjectParser.cpp',
|
2012-10-04 13:00:33 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2012-10-04 13:00:33 +00:00
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
2012-11-13 18:50:33 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2012-10-04 13:00:33 +00:00
|
|
|
],
|
|
|
|
},
|
2013-03-08 18:43:35 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
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',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|