blob: bc128be28df2bebed1e8c4885163a9ae61b81915 [file] [log] [blame]
epoger@google.comea5dfa82011-07-01 21:01:32 +00001
epoger@google.comae85aea2011-05-31 13:50:51 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'targets': [
4 {
5 'target_name': 'SampleApp',
6 'type': 'executable',
7 'mac_bundle' : 1,
8 'include_dirs' : [
9 '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000010 '../gm', # needed to pull gm.h
yangsu@google.com0be01572011-08-12 16:06:24 +000011 '../samplecode', # To pull SampleApp.h and SampleCode.h
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +000012 '../src/gpu', # To pull gl/GrGLUtil.h
scroggo@google.comb073d922012-06-08 15:35:03 +000013 '../src/pipe/utils', # For TiledPipeController
epoger@google.comae85aea2011-05-31 13:50:51 +000014 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000015 'includes': [
16 'gmslides.gypi',
17 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000018 'sources': [
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000019 '../gm/gm.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000020 '../gm/gm.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000021
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000022 '../samplecode/GMSampleView.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 '../samplecode/ClockFaceView.cpp',
24 '../samplecode/OverView.cpp',
reed@google.com4de4d602011-07-08 20:12:55 +000025 '../samplecode/Sample2PtRadial.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000026 '../samplecode/SampleAAClip.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000027 '../samplecode/SampleAARects.cpp',
bsalomon@google.coma3108262011-10-10 14:08:47 +000028 '../samplecode/SampleAARectModes.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000029 '../samplecode/SampleAll.cpp',
30 '../samplecode/SampleAnimator.cpp',
bsalomon@google.com85003222012-03-28 14:44:37 +000031 '../samplecode/SampleAnimBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 '../samplecode/SampleApp.cpp',
33 '../samplecode/SampleArc.cpp',
34 '../samplecode/SampleAvoid.cpp',
senorblanco@chromium.orge36ddf02011-07-15 14:28:16 +000035 '../samplecode/SampleBigBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../samplecode/SampleBigGradient.cpp',
37 '../samplecode/SampleBitmapRect.cpp',
38 '../samplecode/SampleBlur.cpp',
39 '../samplecode/SampleCamera.cpp',
40 '../samplecode/SampleCircle.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000041 '../samplecode/SampleClip.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../samplecode/SampleCode.h',
43 '../samplecode/SampleColorFilter.cpp',
44 '../samplecode/SampleComplexClip.cpp',
senorblanco@chromium.org129b8e32011-06-15 17:52:09 +000045 '../samplecode/SampleConcavePaths.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../samplecode/SampleCull.cpp',
47 '../samplecode/SampleDecode.cpp',
bsalomon@google.com22c5dea2011-07-07 14:38:03 +000048 '../samplecode/SampleDegenerateTwoPtRadials.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../samplecode/SampleDither.cpp',
50 '../samplecode/SampleDitherBitmap.cpp',
51 '../samplecode/SampleDrawLooper.cpp',
52 '../samplecode/SampleEffects.cpp',
53 '../samplecode/SampleEmboss.cpp',
bsalomon@google.comfa6ac932011-10-05 19:57:55 +000054 '../samplecode/SampleEmptyPath.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../samplecode/SampleEncode.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../samplecode/SampleFillType.cpp',
57 '../samplecode/SampleFilter.cpp',
58 '../samplecode/SampleFilter2.cpp',
59 '../samplecode/SampleFontCache.cpp',
60 '../samplecode/SampleFontScalerTest.cpp',
61 '../samplecode/SampleFuzz.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../samplecode/SampleGradients.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000063 '../samplecode/SampleHairCurves.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../samplecode/SampleHairline.cpp',
reed@google.comab973972011-09-19 19:01:38 +000065 '../samplecode/SampleHairModes.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000066 '../samplecode/SampleImage.cpp',
67 '../samplecode/SampleImageDir.cpp',
68 '../samplecode/SampleLayerMask.cpp',
69 '../samplecode/SampleLayers.cpp',
70 '../samplecode/SampleLCD.cpp',
71 '../samplecode/SampleLineClipper.cpp',
72 '../samplecode/SampleLines.cpp',
73 '../samplecode/SampleMeasure.cpp',
74 '../samplecode/SampleMipMap.cpp',
75 '../samplecode/SampleMovie.cpp',
76 '../samplecode/SampleNinePatch.cpp',
77 '../samplecode/SampleOvalTest.cpp',
78 '../samplecode/SampleOverflow.cpp',
79 '../samplecode/SamplePageFlip.cpp',
80 '../samplecode/SamplePatch.cpp',
81 '../samplecode/SamplePath.cpp',
82 '../samplecode/SamplePathClip.cpp',
83 '../samplecode/SamplePathEffects.cpp',
84 '../samplecode/SamplePicture.cpp',
reed@google.com1830c7a2012-06-04 12:05:43 +000085 '../samplecode/SamplePictFile.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 '../samplecode/SamplePoints.cpp',
87 '../samplecode/SamplePolyToPoly.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 '../samplecode/SampleRegion.cpp',
89 '../samplecode/SampleRepeatTile.cpp',
90 '../samplecode/SampleShaders.cpp',
91 '../samplecode/SampleShaderText.cpp',
92 '../samplecode/SampleShapes.cpp',
93 '../samplecode/SampleSkLayer.cpp',
94 '../samplecode/SampleSlides.cpp',
95 '../samplecode/SampleStrokePath.cpp',
96 '../samplecode/SampleStrokeText.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 '../samplecode/SampleTests.cpp',
98 '../samplecode/SampleText.cpp',
99 '../samplecode/SampleTextAlpha.cpp',
100 '../samplecode/SampleTextBox.cpp',
101 '../samplecode/SampleTextEffects.cpp',
102 '../samplecode/SampleTextOnPath.cpp',
103 '../samplecode/SampleTextureDomain.cpp',
104 '../samplecode/SampleTiling.cpp',
105 '../samplecode/SampleTinyBitmap.cpp',
106 '../samplecode/SampleTriangles.cpp',
107 '../samplecode/SampleTypeface.cpp',
108 '../samplecode/SampleUnitMapper.cpp',
109 '../samplecode/SampleVertices.cpp',
110 '../samplecode/SampleXfermodes.cpp',
111 '../samplecode/SampleXfermodesBlur.cpp',
yangsu@google.comdb03eaa2011-08-08 15:37:23 +0000112 '../samplecode/TransitionView.cpp',
scroggo@google.com5af9b202012-06-04 17:17:36 +0000113
yangsu@google.coma8540412011-08-30 14:40:49 +0000114 # DrawingBoard
115 #'../experimental/DrawingBoard/SkColorPalette.h',
116 #'../experimental/DrawingBoard/SkColorPalette.cpp',
117 #'../experimental/DrawingBoard/SkNetPipeController.h',
118 #'../experimental/DrawingBoard/SkNetPipeController.cpp',
119 #'../experimental/DrawingBoard/SampleDrawingClient.cpp',
120 #'../experimental/DrawingBoard/SampleDrawingServer.cpp',
121
122 # Networking
123 #'../experimental/Networking/SampleNetPipeReader.cpp',
124 #'../experimental/Networking/SkSockets.cpp',
125 #'../experimental/Networking/SkSockets.h',
126
127 # Debugger
yangsu@google.comf3523fb2011-08-12 15:04:12 +0000128 '../experimental/Debugger/DebuggerViews.h',
129 '../experimental/Debugger/DebuggerContentView.cpp',
130 '../experimental/Debugger/DebuggerCommandsView.cpp',
131 '../experimental/Debugger/DebuggerStateView.cpp',
132 '../experimental/Debugger/SkDebugDumper.cpp',
133 '../experimental/Debugger/SkDebugDumper.h',
scroggo@google.comb073d922012-06-08 15:35:03 +0000134
135 # TiledPipeController
136 '../src/pipe/utils/SamplePipeControllers.h',
137 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000138 ],
139 'sources!': [
140 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
141 '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h
142 '../samplecode/SampleWarp.cpp',
143 '../samplecode/SampleFontCache.cpp',
144 ],
145 'dependencies': [
epoger@google.com51c078b2011-05-31 19:02:37 +0000146 'core.gyp:core',
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 'effects.gyp:effects',
148 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000149 'ports.gyp:ports',
epoger@google.comae85aea2011-05-31 13:50:51 +0000150 'views.gyp:views',
151 'utils.gyp:utils',
152 'animator.gyp:animator',
153 'xml.gyp:xml',
epoger@google.comae85aea2011-05-31 13:50:51 +0000154 'experimental.gyp:experimental',
155 'gpu.gyp:gr',
156 'gpu.gyp:skgr',
Scroggo8ac0d542011-06-21 14:44:57 +0000157 'pdf.gyp:pdf',
bungeman@google.com5e41b372012-03-23 14:11:43 +0000158 'views_animated.gyp:views_animated',
epoger@google.comae85aea2011-05-31 13:50:51 +0000159 ],
160 'conditions' : [
epoger@google.com8846cb22011-07-01 20:20:07 +0000161 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000162 'sources!': [
163 '../samplecode/SampleDecode.cpp',
164 ],
165 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000166 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000167 'sources!': [
168 # require UNIX functions
169 '../samplecode/SampleEncode.cpp',
170 '../samplecode/SamplePageFlip.cpp',
171 ],
172 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000173 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000174 'sources!': [
175 '../samplecode/SampleDecode.cpp',
176 ],
yangsu@google.com901aea52011-08-02 16:35:00 +0000177 'sources': [
yangsu@google.coma8540412011-08-30 14:40:49 +0000178 # Sample App specific files
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000179 '../src/views/mac/SampleApp-Info.plist',
180 '../src/views/mac/SampleAppDelegate.h',
181 '../src/views/mac/SampleAppDelegate.mm',
182 '../src/views/mac/SkSampleNSView.h',
183 '../src/views/mac/SkSampleNSView.mm',
yangsu@google.coma8540412011-08-30 14:40:49 +0000184
185 # Mac files
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000186 '../src/views/mac/SkEventNotifier.h',
187 '../src/views/mac/SkEventNotifier.mm',
188 '../src/views/mac/skia_mac.mm',
189 '../src/views/mac/SkNSView.h',
190 '../src/views/mac/SkNSView.mm',
191 '../src/views/mac/SkOptionsTableView.h',
192 '../src/views/mac/SkOptionsTableView.mm',
193 '../src/views/mac/SkOSWindow_Mac.mm',
194 '../src/views/mac/SkTextFieldCell.h',
195 '../src/views/mac/SkTextFieldCell.m',
yangsu@google.com901aea52011-08-02 16:35:00 +0000196 ],
yangsu@google.coma8540412011-08-30 14:40:49 +0000197 'libraries': [
198 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
199 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
200 ],
201 'xcode_settings' : {
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000202 'INFOPLIST_FILE' : '../src/views/mac/SampleApp-Info.plist',
yangsu@google.coma8540412011-08-30 14:40:49 +0000203 },
204 'mac_bundle_resources' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000205 '../src/views/mac/SampleApp.xib',
yangsu@google.com42fd1e92011-08-08 18:38:58 +0000206 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000207 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +0000208 [ 'skia_os == "ios"', {
209 # TODO: This doesn't build properly yet, but it's getting there.
210 'sources!': [
211 '../samplecode/SampleDecode.cpp',
212 ],
213 'sources': [
214 '../experimental/iOSSampleApp/SkIOSNotifier.mm',
215 '../experimental/iOSSampleApp/SkTime_iOS.mm',
216 '../experimental/iOSSampleApp/SkUIDetailViewController.mm',
217 '../experimental/iOSSampleApp/SkUIRootViewController.mm',
218 '../experimental/iOSSampleApp/SkUIView_shell.mm',
219
220 '../experimental/iOSSampleApp/iOSSampleApp_Prefix.pch',
221 '../experimental/iOSSampleApp/Shared/main.m',
222 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
223 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
224 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
225 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
226
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000227 '../src/views/ios/SkOSWindow_iOS.mm',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000228 '../src/utils/ios/SkImageDecoder_iOS.mm',
229 '../src/utils/ios/SkStream_NSData.mm',
230 '../src/utils/ios/SkOSFile_iOS.mm',
231
232 '../src/utils/mac/SkCreateCGImageRef.cpp',
233 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
234 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
235 ],
236 'include_dirs' : [
237 '../experimental/iOSSampleApp',
238 '../experimental/iOSSampleApp/iPad',
239 '../experimental/iOSSampleApp/iPhone',
240 '../include/utils/ios',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000241 '../../include/gpu',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000242 ],
243 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
244 'mac_bundle_resources' : [
245 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
246 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
247 ],
248 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000249 [ 'skia_os == "android"', {
djsollen@google.com58629292011-11-03 13:08:29 +0000250 'sources!': [
251 '../samplecode/SampleAnimator.cpp',
252 '../samplecode/SampleUnitMapper.cpp',
253 ],
254 'dependencies!': [
255 'animator.gyp:animator',
256 'experimental.gyp:experimental',
257 ],
djsollen@google.comfad45102011-11-04 13:00:18 +0000258 'dependencies': [
borenet@google.comb52cf3d2012-06-05 17:57:48 +0000259 'android_system.gyp:SampleAppAndroid',
djsollen@google.com58629292011-11-03 13:08:29 +0000260 ],
261 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000262 ],
263 'msvs_settings': {
264 'VCLinkerTool': {
265 'SubSystem': '2',
epoger@google.comae85aea2011-05-31 13:50:51 +0000266 },
267 },
268 },
269 ],
270}
271
272# Local Variables:
273# tab-width:2
274# indent-tabs-mode:nil
275# End:
276# vim: set expandtab tabstop=2 shiftwidth=2: