blob: 2ab422f1f4643ee289fb43e3a4a27dec5a0b6b26 [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',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000024 ],
25 },
26 {
27 'target_name': 'skdiff',
28 'type': 'executable',
29 'sources': [
30 '../tools/skdiff_main.cpp',
31 ],
32 'dependencies': [
33 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000034 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000035 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000036 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000037 'utils.gyp:utils',
38 ],
39 },
40 {
41 'target_name': 'skhello',
42 'type': 'executable',
43 'sources': [
44 '../tools/skhello.cpp',
45 ],
46 'dependencies': [
47 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000048 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000049 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000050 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000051 'utils.gyp:utils',
52 ],
53 },
54 {
55 'target_name': 'skimage',
56 'type': 'executable',
57 'sources': [
58 '../tools/skimage_main.cpp',
59 ],
60 'dependencies': [
61 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000062 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000063 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000064 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000065 'utils.gyp:utils',
66 ],
67 },
junov@chromium.org777442d2012-06-12 14:56:36 +000068 {
69 'target_name': 'render_pictures',
70 'type': 'executable',
71 'sources': [
72 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000073 ],
74 'include_dirs': [
75 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000076 ],
77 'dependencies': [
78 'core.gyp:core',
79 'images.gyp:images',
80 'ports.gyp:ports',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +000081 'tools.gyp:PictureRenderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000082 'tools.gyp:picture_utils',
83 ],
84 },
85 {
reed@google.com006db0f2012-06-27 19:33:29 +000086 'target_name': 'bench_pictures',
87 'type': 'executable',
88 'sources': [
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000089 '../tools/bench_pictures_main.cpp',
90 '../src/pipe/utils/SamplePipeControllers.h',
91 '../src/pipe/utils/SamplePipeControllers.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +000092 ],
93 'include_dirs': [
94 '../bench',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000095 '../src/pipe/utils/',
reed@google.com006db0f2012-06-27 19:33:29 +000096 ],
97 'dependencies': [
98 'core.gyp:core',
99 'ports.gyp:ports',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000100 'images.gyp:images',
reed@google.com006db0f2012-06-27 19:33:29 +0000101 'tools.gyp:picture_utils',
102 'bench.gyp:bench_timer',
103 ],
104 },
105 {
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000106 'target_name': 'PictureRenderer',
107 'type': 'static_library',
108 'sources': [
109 '../tools/PictureRenderer.cpp',
110 '../src/pipe/utils/SamplePipeControllers.h',
111 '../src/pipe/utils/SamplePipeControllers.cpp',
112 ],
113 'include_dirs': [
114 '../src/pipe/utils/',
115 ],
116 'dependencies': [
117 'core.gyp:core',
118 'tools.gyp:picture_utils',
119 ],
120 },
121 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000122 'target_name': 'picture_utils',
123 'type': 'static_library',
124 'sources': [
125 '../tools/picture_utils.cpp',
126 ],
127 'dependencies': [
128 'core.gyp:core',
junov@chromium.org777442d2012-06-12 14:56:36 +0000129 ],
130 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000131 {
132 'target_name': 'pinspect',
133 'type': 'executable',
134 'sources': [
135 '../tools/pinspect.cpp',
136 ],
137 'dependencies': [
138 'core.gyp:core',
139 'effects.gyp:effects',
140 'images.gyp:images',
141 'ports.gyp:ports',
142 'utils.gyp:utils',
143 ],
144 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000145 ],
146}
147
148# Local Variables:
149# tab-width:2
150# indent-tabs-mode:nil
151# End:
152# vim: set expandtab tabstop=2 shiftwidth=2: