blob: f6e9a93b78c1b37e26c704043897dbc0e6066c54 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build various tools.
2#
3# To build on Linux:
4# ./gyp_skia tools.gyp && make tools
5#
6# Building on other platforms not tested yet.
7#
8{
9 'includes': [
10 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000011 ],
12 'targets': [
13 {
14 # Build all executable targets defined below.
15 'target_name': 'tools',
16 'type': 'none',
17 'dependencies': [
18 'skdiff',
19 'skhello',
20 'skimage',
junov@chromium.org777442d2012-06-12 14:56:36 +000021 'render_pictures',
reed@google.com006db0f2012-06-27 19:33:29 +000022 'bench_pictures',
reed@google.com1bdf7fe2012-06-14 18:58:40 +000023 'pinspect',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +000024 'filter',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000025 ],
26 },
27 {
28 'target_name': 'skdiff',
29 'type': 'executable',
30 'sources': [
31 '../tools/skdiff_main.cpp',
32 ],
33 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000034 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000035 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000037 ],
38 },
39 {
40 'target_name': 'skhello',
41 'type': 'executable',
42 'sources': [
43 '../tools/skhello.cpp',
44 ],
45 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000046 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000047 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000048 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000049 ],
50 },
51 {
52 'target_name': 'skimage',
53 'type': 'executable',
54 'sources': [
55 '../tools/skimage_main.cpp',
56 ],
57 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000058 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000059 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000060 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000061 ],
62 },
junov@chromium.org777442d2012-06-12 14:56:36 +000063 {
64 'target_name': 'render_pictures',
65 'type': 'executable',
66 'sources': [
67 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000068 ],
69 'include_dirs': [
70 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000071 ],
72 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000073 'skia_base_libs.gyp:skia_base_libs',
keyar@chromium.org163b5672012-08-01 17:53:29 +000074 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000075 'tools.gyp:picture_utils',
76 ],
77 },
78 {
reed@google.com006db0f2012-06-27 19:33:29 +000079 'target_name': 'bench_pictures',
80 'type': 'executable',
81 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +000082 '../bench/SkBenchLogger.h',
83 '../bench/SkBenchLogger.cpp',
84 '../bench/TimerData.h',
85 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000086 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +000087 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +000088 ],
89 'include_dirs': [
90 '../bench',
91 ],
92 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000093 'skia_base_libs.gyp:skia_base_libs',
edisonn@google.comd966ab92012-09-05 19:43:46 +000094 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +000095 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +000096 'tools.gyp:picture_renderer',
97 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +000098 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +000099 },
100 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000101 'target_name': 'picture_renderer',
102 'type': 'static_library',
103 'sources': [
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000104 '../tools/PictureRenderer.cpp',
105 '../src/pipe/utils/SamplePipeControllers.h',
106 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000107 ],
108 'include_dirs': [
109 '../src/pipe/utils/',
110 '../src/utils/',
111 ],
112 'dependencies': [
113 'skia_base_libs.gyp:skia_base_libs',
borenet@google.combc766112012-09-10 16:20:47 +0000114 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000115 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000116 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000117 ],
118 'export_dependent_settings': [
119 'images.gyp:images',
120 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000121 },
122 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000123 'target_name': 'picture_utils',
124 'type': 'static_library',
125 'sources': [
126 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000127 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000128 ],
129 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000130 'skia_base_libs.gyp:skia_base_libs',
junov@chromium.org777442d2012-06-12 14:56:36 +0000131 ],
132 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000133 {
134 'target_name': 'pinspect',
135 'type': 'executable',
136 'sources': [
137 '../tools/pinspect.cpp',
138 ],
139 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000140 'skia_base_libs.gyp:skia_base_libs',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000141 'effects.gyp:effects',
142 'images.gyp:images',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000143 ],
144 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000145 {
146 'target_name': 'filter',
147 'type': 'executable',
148 'include_dirs' : [
149 '../src/core',
150 ],
151 'sources': [
152 '../tools/filtermain.cpp',
153 ],
154 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000155 'skia_base_libs.gyp:skia_base_libs',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000156 'effects.gyp:effects',
157 'images.gyp:images',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000158 ],
159 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000160 ],
161}
162
163# Local Variables:
164# tab-width:2
165# indent-tabs-mode:nil
166# End:
167# vim: set expandtab tabstop=2 shiftwidth=2: