blob: 9bc67c2de85e5da11218b7e182ccaee31a34f3b7 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
epoger@google.comae85aea2011-05-31 13:50:51 +00002 'targets': [
3 {
4 'target_name': 'SampleApp',
5 'type': 'executable',
6 'mac_bundle' : 1,
7 'include_dirs' : [
8 '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
bsalomon@google.com48dd1a22011-10-31 14:18:20 +00009 '../gm', # needed to pull gm.h
yangsu@google.com0be01572011-08-12 16:06:24 +000010 '../samplecode', # To pull SampleApp.h and SampleCode.h
scroggo@google.comb073d922012-06-08 15:35:03 +000011 '../src/pipe/utils', # For TiledPipeController
epoger@google.comae85aea2011-05-31 13:50:51 +000012 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000013 'includes': [
14 'gmslides.gypi',
15 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000016 'sources': [
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000017 '../gm/gm.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 '../gm/gm.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000019
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000020 '../samplecode/GMSampleView.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000021 '../samplecode/ClockFaceView.cpp',
22 '../samplecode/OverView.cpp',
tfarina@chromium.orgb1b7f7072012-09-18 01:52:20 +000023 '../samplecode/OverView.h',
reed@google.com4de4d602011-07-08 20:12:55 +000024 '../samplecode/Sample2PtRadial.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000025 '../samplecode/SampleAAClip.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000026 '../samplecode/SampleAARects.cpp',
bsalomon@google.coma3108262011-10-10 14:08:47 +000027 '../samplecode/SampleAARectModes.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000028 '../samplecode/SampleAll.cpp',
29 '../samplecode/SampleAnimator.cpp',
bsalomon@google.com85003222012-03-28 14:44:37 +000030 '../samplecode/SampleAnimBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 '../samplecode/SampleApp.cpp',
32 '../samplecode/SampleArc.cpp',
33 '../samplecode/SampleAvoid.cpp',
senorblanco@chromium.orge36ddf02011-07-15 14:28:16 +000034 '../samplecode/SampleBigBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../samplecode/SampleBigGradient.cpp',
36 '../samplecode/SampleBitmapRect.cpp',
37 '../samplecode/SampleBlur.cpp',
38 '../samplecode/SampleCamera.cpp',
39 '../samplecode/SampleCircle.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000040 '../samplecode/SampleClip.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000041 '../samplecode/SampleCode.h',
42 '../samplecode/SampleColorFilter.cpp',
43 '../samplecode/SampleComplexClip.cpp',
senorblanco@chromium.org129b8e32011-06-15 17:52:09 +000044 '../samplecode/SampleConcavePaths.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../samplecode/SampleCull.cpp',
46 '../samplecode/SampleDecode.cpp',
bsalomon@google.com22c5dea2011-07-07 14:38:03 +000047 '../samplecode/SampleDegenerateTwoPtRadials.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../samplecode/SampleDither.cpp',
49 '../samplecode/SampleDitherBitmap.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../samplecode/SampleEffects.cpp',
51 '../samplecode/SampleEmboss.cpp',
bsalomon@google.comfa6ac932011-10-05 19:57:55 +000052 '../samplecode/SampleEmptyPath.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../samplecode/SampleEncode.cpp',
mike@reedtribe.org50e4c722012-10-22 03:59:34 +000054 '../samplecode/SampleFatBits.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../samplecode/SampleFillType.cpp',
56 '../samplecode/SampleFilter.cpp',
57 '../samplecode/SampleFilter2.cpp',
58 '../samplecode/SampleFontCache.cpp',
59 '../samplecode/SampleFontScalerTest.cpp',
60 '../samplecode/SampleFuzz.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../samplecode/SampleGradients.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000062 '../samplecode/SampleHairCurves.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000063 '../samplecode/SampleHairline.cpp',
reed@google.comab973972011-09-19 19:01:38 +000064 '../samplecode/SampleHairModes.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000065 '../samplecode/SampleLayerMask.cpp',
66 '../samplecode/SampleLayers.cpp',
67 '../samplecode/SampleLCD.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../samplecode/SampleLines.cpp',
69 '../samplecode/SampleMeasure.cpp',
70 '../samplecode/SampleMipMap.cpp',
71 '../samplecode/SampleMovie.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000072 '../samplecode/SampleOvalTest.cpp',
73 '../samplecode/SampleOverflow.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000074 '../samplecode/SamplePatch.cpp',
75 '../samplecode/SamplePath.cpp',
76 '../samplecode/SamplePathClip.cpp',
77 '../samplecode/SamplePathEffects.cpp',
78 '../samplecode/SamplePicture.cpp',
reed@google.com1830c7a2012-06-04 12:05:43 +000079 '../samplecode/SamplePictFile.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000080 '../samplecode/SamplePoints.cpp',
81 '../samplecode/SamplePolyToPoly.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 '../samplecode/SampleRegion.cpp',
83 '../samplecode/SampleRepeatTile.cpp',
84 '../samplecode/SampleShaders.cpp',
85 '../samplecode/SampleShaderText.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 '../samplecode/SampleSkLayer.cpp',
87 '../samplecode/SampleSlides.cpp',
88 '../samplecode/SampleStrokePath.cpp',
89 '../samplecode/SampleStrokeText.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 '../samplecode/SampleTests.cpp',
91 '../samplecode/SampleText.cpp',
92 '../samplecode/SampleTextAlpha.cpp',
93 '../samplecode/SampleTextBox.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 '../samplecode/SampleTextOnPath.cpp',
95 '../samplecode/SampleTextureDomain.cpp',
96 '../samplecode/SampleTiling.cpp',
97 '../samplecode/SampleTinyBitmap.cpp',
98 '../samplecode/SampleTriangles.cpp',
99 '../samplecode/SampleTypeface.cpp',
100 '../samplecode/SampleUnitMapper.cpp',
101 '../samplecode/SampleVertices.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 '../samplecode/SampleXfermodesBlur.cpp',
yangsu@google.comdb03eaa2011-08-08 15:37:23 +0000103 '../samplecode/TransitionView.cpp',
epoger@google.com6a121782012-09-14 18:42:01 +0000104 '../samplecode/TransitionView.h',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000105
yangsu@google.coma8540412011-08-30 14:40:49 +0000106 # DrawingBoard
107 #'../experimental/DrawingBoard/SkColorPalette.h',
108 #'../experimental/DrawingBoard/SkColorPalette.cpp',
109 #'../experimental/DrawingBoard/SkNetPipeController.h',
110 #'../experimental/DrawingBoard/SkNetPipeController.cpp',
111 #'../experimental/DrawingBoard/SampleDrawingClient.cpp',
112 #'../experimental/DrawingBoard/SampleDrawingServer.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000113
yangsu@google.coma8540412011-08-30 14:40:49 +0000114 # Networking
115 #'../experimental/Networking/SampleNetPipeReader.cpp',
116 #'../experimental/Networking/SkSockets.cpp',
117 #'../experimental/Networking/SkSockets.h',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000118
yangsu@google.coma8540412011-08-30 14:40:49 +0000119 # Debugger
yangsu@google.comf3523fb2011-08-12 15:04:12 +0000120 '../experimental/Debugger/DebuggerViews.h',
121 '../experimental/Debugger/DebuggerContentView.cpp',
122 '../experimental/Debugger/DebuggerCommandsView.cpp',
123 '../experimental/Debugger/DebuggerStateView.cpp',
124 '../experimental/Debugger/SkDebugDumper.cpp',
125 '../experimental/Debugger/SkDebugDumper.h',
scroggo@google.comb073d922012-06-08 15:35:03 +0000126
127 # TiledPipeController
128 '../src/pipe/utils/SamplePipeControllers.h',
129 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000130 ],
131 'sources!': [
132 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
133 '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h
134 '../samplecode/SampleWarp.cpp',
135 '../samplecode/SampleFontCache.cpp',
136 ],
137 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000138 'skia_base_libs.gyp:skia_base_libs',
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 'effects.gyp:effects',
140 'images.gyp:images',
141 'views.gyp:views',
epoger@google.comae85aea2011-05-31 13:50:51 +0000142 'animator.gyp:animator',
143 'xml.gyp:xml',
epoger@google.comae85aea2011-05-31 13:50:51 +0000144 'experimental.gyp:experimental',
Scroggo8ac0d542011-06-21 14:44:57 +0000145 'pdf.gyp:pdf',
bungeman@google.com5e41b372012-03-23 14:11:43 +0000146 'views_animated.gyp:views_animated',
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 ],
148 'conditions' : [
epoger@google.com8846cb22011-07-01 20:20:07 +0000149 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000150 'sources!': [
151 '../samplecode/SampleDecode.cpp',
152 ],
153 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000154 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 'sources!': [
156 # require UNIX functions
157 '../samplecode/SampleEncode.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000158 ],
159 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000160 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000161 'sources!': [
162 '../samplecode/SampleDecode.cpp',
163 ],
yangsu@google.com901aea52011-08-02 16:35:00 +0000164 'sources': [
yangsu@google.coma8540412011-08-30 14:40:49 +0000165 # Sample App specific files
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000166 '../src/views/mac/SampleApp-Info.plist',
167 '../src/views/mac/SampleAppDelegate.h',
168 '../src/views/mac/SampleAppDelegate.mm',
169 '../src/views/mac/SkSampleNSView.h',
170 '../src/views/mac/SkSampleNSView.mm',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000171
yangsu@google.coma8540412011-08-30 14:40:49 +0000172 # Mac files
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000173 '../src/views/mac/SkEventNotifier.h',
174 '../src/views/mac/SkEventNotifier.mm',
175 '../src/views/mac/skia_mac.mm',
176 '../src/views/mac/SkNSView.h',
177 '../src/views/mac/SkNSView.mm',
178 '../src/views/mac/SkOptionsTableView.h',
179 '../src/views/mac/SkOptionsTableView.mm',
180 '../src/views/mac/SkOSWindow_Mac.mm',
181 '../src/views/mac/SkTextFieldCell.h',
182 '../src/views/mac/SkTextFieldCell.m',
yangsu@google.com901aea52011-08-02 16:35:00 +0000183 ],
yangsu@google.coma8540412011-08-30 14:40:49 +0000184 'libraries': [
185 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
186 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
187 ],
188 'xcode_settings' : {
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000189 'INFOPLIST_FILE' : '../src/views/mac/SampleApp-Info.plist',
yangsu@google.coma8540412011-08-30 14:40:49 +0000190 },
191 'mac_bundle_resources' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000192 '../src/views/mac/SampleApp.xib',
yangsu@google.com42fd1e92011-08-08 18:38:58 +0000193 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000194 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +0000195 [ 'skia_os == "ios"', {
196 # TODO: This doesn't build properly yet, but it's getting there.
197 'sources!': [
198 '../samplecode/SampleDecode.cpp',
199 ],
200 'sources': [
caryclark@google.com867cbd82012-09-20 15:45:41 +0000201 '../src/views/mac/SkEventNotifier.h',
202 '../src/views/mac/SkEventNotifier.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000203 '../experimental/iOSSampleApp/SkSampleUIView.h',
204 '../experimental/iOSSampleApp/SkSampleUIView.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000205 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
206 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
207 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
208 '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000209 '../experimental/iOSSampleApp/Shared/SkOptionListController.h',
210 '../experimental/iOSSampleApp/Shared/SkOptionListController.mm',
211 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.h',
212 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
213 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.h',
214 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
215 '../experimental/iOSSampleApp/Shared/SkUIView.h',
216 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
217 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.h',
218 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
219 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
220
221 # iPad
222 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000223 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000224 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000225 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000226 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
227
228 # iPhone
229 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000230 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000231 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000232 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000233 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000234
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000235 '../src/views/ios/SkOSWindow_iOS.mm',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000236 '../src/utils/ios/SkImageDecoder_iOS.mm',
237 '../src/utils/ios/SkStream_NSData.mm',
238 '../src/utils/ios/SkOSFile_iOS.mm',
239
caryclark@google.com867cbd82012-09-20 15:45:41 +0000240 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000241 '../src/utils/mac/SkCreateCGImageRef.cpp',
242 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
243 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
244 ],
caryclark@google.com867cbd82012-09-20 15:45:41 +0000245 'link_settings': {
caryclark@google.com867cbd82012-09-20 15:45:41 +0000246 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +0000247 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
248 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
249 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
250 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
251 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
252 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
253 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
254 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
255 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000256 ],
257 },
epoger@google.comea5dfa82011-07-01 21:01:32 +0000258 'include_dirs' : [
259 '../experimental/iOSSampleApp',
260 '../experimental/iOSSampleApp/iPad',
261 '../experimental/iOSSampleApp/iPhone',
262 '../include/utils/ios',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000263 ],
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000264 'xcode_settings' : {
265 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
266 },
267 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000268 'mac_bundle_resources' : [
269 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
270 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
271 ],
272 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000273 [ 'skia_os == "android"', {
djsollen@google.com58629292011-11-03 13:08:29 +0000274 'sources!': [
275 '../samplecode/SampleAnimator.cpp',
276 '../samplecode/SampleUnitMapper.cpp',
277 ],
278 'dependencies!': [
279 'animator.gyp:animator',
280 'experimental.gyp:experimental',
281 ],
djsollen@google.comfad45102011-11-04 13:00:18 +0000282 'dependencies': [
djsollen@google.com4d3f3cd2012-12-13 18:27:44 +0000283 'android_deps.gyp:Android_EntryPoint',
djsollen@google.com58629292011-11-03 13:08:29 +0000284 ],
285 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000286 [ 'skia_gpu == 1', {
287 'include_dirs': [
288 '../src/gpu', # To pull gl/GrGLUtil.h
289 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000290 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000291 [ 'skia_os == "nacl"', {
292 'sources': [
293 '../../nacl/src/nacl_sample.cpp',
294 ],
295 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000296 ],
297 'msvs_settings': {
298 'VCLinkerTool': {
299 'SubSystem': '2',
epoger@google.comae85aea2011-05-31 13:50:51 +0000300 },
301 },
302 },
303 ],
304}
305
306# Local Variables:
307# tab-width:2
308# indent-tabs-mode:nil
309# End:
310# vim: set expandtab tabstop=2 shiftwidth=2: