2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build various tools.
|
|
|
|
#
|
|
|
|
# To build on Linux:
|
|
|
|
# ./gyp_skia tools.gyp && make tools
|
|
|
|
#
|
|
|
|
# Building on other platforms not tested yet.
|
|
|
|
#
|
|
|
|
{
|
|
|
|
'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',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skimage',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skimage_main.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',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
|
|
|
],
|
|
|
|
},
|
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',
|
|
|
|
],
|
|
|
|
},
|
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',
|
|
|
|
],
|
|
|
|
'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',
|
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',
|
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',
|
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',
|
|
|
|
],
|
|
|
|
},
|
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',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../tools/filtermain.cpp',
|
2012-12-07 20:56:13 +00:00
|
|
|
'../tools/path_utils.cpp',
|
|
|
|
'../tools/path_utils.h',
|
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
|
|
|
],
|
|
|
|
},
|
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:
|