OLD | NEW |
---|---|
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # GYP file to build performance testbench. | 5 # GYP file to build performance testbench. |
6 # | 6 # |
7 { | 7 { |
8 'includes': [ | 8 'includes': [ |
9 'apptype_console.gypi', | 9 'apptype_console.gypi', |
10 ], | 10 ], |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'viewer', | 13 'target_name': 'viewer', |
14 'type': 'executable', | 14 'type': 'executable', |
15 'includes' : [ | 15 'includes' : [ |
16 'gmslides.gypi', | 16 'gmslides.gypi', |
17 ], | 17 ], |
18 'include_dirs': [ | 18 'include_dirs': [ |
19 '../bench', | 19 '../bench', |
20 '../experimental', | |
20 '../gm', | 21 '../gm', |
21 '../include/views', | 22 '../include/views', |
22 '../include/private', | 23 '../include/private', |
24 '../samplecode', | |
23 '../src/core', | 25 '../src/core', |
24 '../src/effects', | 26 '../src/effects', |
25 '../src/gpu', | 27 '../src/gpu', |
28 '../src/image', | |
26 '../src/images', | 29 '../src/images', |
27 '../src/image', | 30 '../src/pathops', |
28 '../src/views/unix', | 31 '../src/views/unix', |
29 '../tools/timer', | 32 '../tools/timer', |
33 '../tools', | |
30 ], | 34 ], |
31 'sources': [ | 35 'sources': [ |
32 '../gm/gm.cpp', | 36 '../gm/gm.cpp', |
37 '<!@(python find.py ../tools/viewer "*.cpp")', | |
38 | |
39 # Samples | |
djsollen
2016/06/15 17:17:58
can you put these in their own gypi file that is s
jvanverth1
2016/06/16 16:39:41
Done.
| |
40 '../samplecode/GMSampleView.h', | |
41 '../samplecode/GMSampleView.cpp', | |
42 '../samplecode/ClockFaceView.cpp', | |
43 '../samplecode/OverView.cpp', | |
44 '../samplecode/OverView.h', | |
45 '../samplecode/PerlinPatch.cpp', | |
46 '../samplecode/Sample2PtRadial.cpp', | |
47 '../samplecode/SampleAAClip.cpp', | |
48 '../samplecode/SampleAAGeometry.cpp', | |
49 '../samplecode/SampleAARects.cpp', | |
50 '../samplecode/SampleAARectModes.cpp', | |
51 '../samplecode/SampleAll.cpp', | |
52 '../samplecode/SampleAnimatedText.cpp', | |
53 '../samplecode/SampleAnimBlur.cpp', | |
54 '../samplecode/SampleArc.cpp', | |
55 '../samplecode/SampleAtlas.cpp', | |
56 '../samplecode/SampleBigBlur.cpp', | |
57 '../samplecode/SampleBigGradient.cpp', | |
58 '../samplecode/SampleBitmapRect.cpp', | |
59 '../samplecode/SampleBlur.cpp', | |
60 '../samplecode/SampleCamera.cpp', | |
61 '../samplecode/SampleChart.cpp', | |
62 '../samplecode/SampleCircle.cpp', | |
63 '../samplecode/SampleClip.cpp', | |
64 '../samplecode/SampleClipDrawMatch.cpp', | |
65 '../samplecode/SampleClock.cpp', | |
66 '../samplecode/SampleCode.cpp', | |
67 '../samplecode/SampleCode.h', | |
68 '../samplecode/SampleColorFilter.cpp', | |
69 '../samplecode/SampleComplexClip.cpp', | |
70 '../samplecode/SampleConcavePaths.cpp', | |
71 '../samplecode/SampleDegenerateTwoPtRadials.cpp', | |
72 '../samplecode/SampleDither.cpp', | |
73 '../samplecode/SampleDitherBitmap.cpp', | |
74 '../samplecode/SampleEffects.cpp', | |
75 '../samplecode/SampleEmboss.cpp', | |
76 '../samplecode/SampleFatBits.cpp', | |
77 '../samplecode/SampleFillType.cpp', | |
78 '../samplecode/SampleFilter.cpp', | |
79 '../samplecode/SampleFilter2.cpp', | |
80 '../samplecode/SampleFilterQuality.cpp', | |
81 '../samplecode/SampleFilterFuzz.cpp', | |
82 '../samplecode/SampleFontCache.cpp', | |
83 '../samplecode/SampleFontScalerTest.cpp', | |
84 '../samplecode/SampleFuzz.cpp', | |
85 '../samplecode/SampleGradients.cpp', | |
86 '../samplecode/SampleHairCurves.cpp', | |
87 '../samplecode/SampleHairline.cpp', | |
88 '../samplecode/SampleHairModes.cpp', | |
89 '../samplecode/SampleHT.cpp', | |
90 '../samplecode/SampleIdentityScale.cpp', | |
91 '../samplecode/SampleLayerMask.cpp', | |
92 '../samplecode/SampleLayers.cpp', | |
93 '../samplecode/SampleLCD.cpp', | |
94 '../samplecode/SampleLighting.cpp', | |
95 '../samplecode/SampleLines.cpp', | |
96 '../samplecode/SampleLitAtlas.cpp', | |
97 '../samplecode/SampleLua.cpp', | |
98 '../samplecode/SampleManyRects.cpp', | |
99 '../samplecode/SampleMeasure.cpp', | |
100 '../samplecode/SampleMegaStroke.cpp', | |
101 '../samplecode/SamplePatch.cpp', | |
102 '../samplecode/SamplePath.cpp', | |
103 '../samplecode/SamplePathClip.cpp', | |
104 '../samplecode/SamplePathFuzz.cpp', | |
105 '../samplecode/SamplePathEffects.cpp', | |
106 '../samplecode/SamplePictFile.cpp', | |
107 '../samplecode/SamplePoints.cpp', | |
108 '../samplecode/SamplePolyToPoly.cpp', | |
109 '../samplecode/SampleQuadStroker.cpp', | |
110 '../samplecode/SampleRectanizer.cpp', | |
111 '../samplecode/SampleRegion.cpp', | |
112 '../samplecode/SampleRepeatTile.cpp', | |
113 '../samplecode/SampleShaders.cpp', | |
114 '../samplecode/SampleShaderText.cpp', | |
115 '../samplecode/SampleShip.cpp', | |
116 '../samplecode/SampleSkLayer.cpp', | |
117 '../samplecode/SampleSlides.cpp', | |
118 '../samplecode/SampleStringArt.cpp', | |
119 '../samplecode/SampleStrokePath.cpp', | |
120 '../samplecode/SampleSubpixelTranslate.cpp', | |
121 '../samplecode/SampleText.cpp', | |
122 '../samplecode/SampleTextAlpha.cpp', | |
123 '../samplecode/SampleTextBox.cpp', | |
124 '../samplecode/SampleTextOnPath.cpp', | |
125 '../samplecode/SampleTextureDomain.cpp', | |
126 '../samplecode/SampleTiling.cpp', | |
127 '../samplecode/SampleTinyBitmap.cpp', | |
128 '../samplecode/SampleUnpremul.cpp', | |
129 '../samplecode/SampleVertices.cpp', | |
130 '../samplecode/SampleXfermodesBlur.cpp', | |
131 '../samplecode/SampleXfer.cpp', | |
132 | |
133 # PerlinNoise2 | |
134 '../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp', | |
135 '../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.h', | |
136 | |
137 # Lua | |
138 '../src/utils/SkLuaCanvas.cpp', | |
139 '../src/utils/SkLua.cpp', | |
140 | |
141 # views (subset of files for the Android build) | |
142 '../src/views/SkEvent.cpp', | |
143 '../src/views/SkEventSink.cpp', | |
144 '../src/views/SkOSMenu.cpp', | |
145 '../src/views/SkTagList.cpp', | |
146 '../src/views/SkTagList.h', | |
33 '../src/views/SkTouchGesture.cpp', | 147 '../src/views/SkTouchGesture.cpp', |
148 '../src/views/SkView.cpp', | |
149 '../src/views/SkViewPriv.cpp', | |
150 '../src/views/SkViewPriv.h', | |
34 '../src/views/unix/keysym2ucs.c', | 151 '../src/views/unix/keysym2ucs.c', |
35 '<!@(python find.py ../tools/viewer "*.cpp")', | |
36 ], | 152 ], |
153 'sources!': [ | |
154 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't c ompile | |
155 '../samplecode/SampleFontCache.cpp', #relies on pthread.h | |
156 ], | |
37 'dependencies': [ | 157 'dependencies': [ |
158 'experimental.gyp:experimental', | |
38 'flags.gyp:flags', | 159 'flags.gyp:flags', |
39 'gputest.gyp:skgputest', | 160 'gputest.gyp:skgputest', |
40 'jsoncpp.gyp:jsoncpp', | 161 'jsoncpp.gyp:jsoncpp', |
162 'lua.gyp:lua', | |
163 'pdf.gyp:pdf', | |
41 'skia_lib.gyp:skia_lib', | 164 'skia_lib.gyp:skia_lib', |
42 'tools.gyp:crash_handler', | 165 'tools.gyp:crash_handler', |
43 'tools.gyp:proc_stats', | 166 'tools.gyp:proc_stats', |
44 'tools.gyp:resources', | 167 'tools.gyp:resources', |
45 'tools.gyp:sk_tool_utils', | 168 'tools.gyp:sk_tool_utils', |
46 'tools.gyp:timer', | 169 'tools.gyp:timer', |
47 'tools.gyp:url_data_manager', | 170 'tools.gyp:url_data_manager', |
171 'xml.gyp:xml', | |
48 ], | 172 ], |
49 'conditions' : [ | 173 'conditions' : [ |
50 [ 'skia_os == "android"', { | 174 [ 'skia_os == "android"', { |
51 'dependencies': [ | 175 'dependencies': [ |
52 'android_deps.gyp:Android_EntryPoint', | 176 'android_deps.gyp:Android_EntryPoint', |
53 'android_deps.gyp:native_app_glue', | 177 'android_deps.gyp:native_app_glue', |
54 ], | 178 ], |
55 'link_settings': { | 179 'link_settings': { |
56 'libraries': [ | 180 'libraries': [ |
57 '-landroid', | 181 '-landroid', |
58 ], | 182 ], |
59 }, | 183 }, |
60 }], | 184 }], |
61 [ 'skia_os == "linux"', { | 185 [ 'skia_os == "linux"', { |
62 'link_settings': { | 186 'link_settings': { |
63 'libraries': [ | 187 'libraries': [ |
64 '-lX11-xcb', | 188 '-lX11-xcb', |
65 ], | 189 ], |
66 }, | 190 }, |
67 }], | 191 }], |
68 ['skia_os != "android"', { | 192 ['skia_os != "android"', { |
69 'sources/': [ ['exclude', '_android.(h|cpp)$'], | 193 'sources/': [ |
194 ['exclude', '_android.(h|cpp)$'], | |
195 ['exclude', 'src/views'], | |
196 ], | |
197 'dependencies': [ | |
198 'views.gyp:views', | |
djsollen
2016/06/15 17:17:58
can you add a comment explaining why android need
jvanverth1
2016/06/15 17:41:27
It's the other way around (others can use views.gy
jvanverth1
2016/06/16 16:39:41
Done.
| |
70 ], | 199 ], |
71 }], | 200 }], |
72 ['skia_os != "linux"', { | 201 ['skia_os != "linux"', { |
73 'sources/': [ | 202 'sources/': [ |
74 ['exclude', '_unix.(h|cpp)$'], | 203 ['exclude', '_unix.(h|cpp)$'], |
75 ['exclude', 'keysym2ucs.c'], | 204 ['exclude', 'keysym2ucs.c'], |
76 ], | 205 ], |
77 }], | 206 }], |
78 ['skia_os != "win"', { | 207 ['skia_os != "win"', { |
79 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 208 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
80 ], | 209 ], |
81 }], | 210 }], |
82 ], | 211 ], |
83 }, | 212 }, |
84 ], | 213 ], |
85 } | 214 } |
OLD | NEW |