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': [
|
|
|
|
'skdiff',
|
|
|
|
'skhello',
|
|
|
|
'skimage',
|
2012-06-12 14:56:36 +00:00
|
|
|
'render_pictures',
|
2012-06-27 19:33:29 +00:00
|
|
|
'bench_pictures',
|
2012-06-14 18:58:40 +00:00
|
|
|
'pinspect',
|
2011-06-02 14:38:23 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skdiff',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skdiff_main.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
2011-12-14 17:12:04 +00:00
|
|
|
'ports.gyp:ports',
|
2011-06-02 14:38:23 +00:00
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skhello',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skhello.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
2011-12-14 17:12:04 +00:00
|
|
|
'ports.gyp:ports',
|
2011-06-02 14:38:23 +00:00
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'skimage',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../tools/skimage_main.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
2012-03-23 19:36:53 +00:00
|
|
|
'effects.gyp:effects',
|
2011-06-02 14:38:23 +00:00
|
|
|
'images.gyp:images',
|
2011-12-14 17:12:04 +00:00
|
|
|
'ports.gyp:ports',
|
2011-06-02 14:38:23 +00:00
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
|
|
|
},
|
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': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'ports.gyp:ports',
|
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': [
|
|
|
|
'core.gyp:core',
|
2012-09-05 19:43:46 +00:00
|
|
|
'effects.gyp:effects',
|
2012-06-27 19:33:29 +00:00
|
|
|
'ports.gyp:ports',
|
|
|
|
'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
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'picture_renderer',
|
2012-07-26 17:27:57 +00:00
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/PictureRenderer.cpp',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.h',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
|
|
|
],
|
2012-08-20 15:49:47 +00:00
|
|
|
'include_dirs': [
|
2012-08-31 16:15:22 +00:00
|
|
|
'../src/pipe/utils/',
|
|
|
|
'../src/utils/',
|
2012-08-20 15:49:47 +00:00
|
|
|
],
|
2012-07-26 17:27:57 +00:00
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
2012-08-21 19:05:08 +00:00
|
|
|
'images.gyp:images',
|
2012-07-26 17:27:57 +00:00
|
|
|
'tools.gyp:picture_utils',
|
2012-08-31 16:15:22 +00:00
|
|
|
'utils.gyp:utils',
|
2012-07-26 17:27:57 +00:00
|
|
|
],
|
2012-08-21 19:05:08 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'images.gyp:images',
|
|
|
|
],
|
2012-08-20 15:49:47 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_gpu == 1', {
|
|
|
|
'dependencies': [
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
'gpu.gyp:skgr',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2012-07-26 17:27:57 +00:00
|
|
|
},
|
2012-06-22 18:24:56 +00:00
|
|
|
{
|
|
|
|
'target_name': 'picture_utils',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../tools/picture_utils.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
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': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
'ports.gyp:ports',
|
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
|
|
|
},
|
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:
|