blob: 7983c12bdcf741724aaff1c508bd231ee58b6869 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
scroggo@google.com90922892013-11-14 19:09:27 +00005#
epoger@google.comae85aea2011-05-31 13:50:51 +00006{
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'targets': [
8 {
9 'target_name': 'SampleApp',
10 'type': 'executable',
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'include_dirs' : [
mtkleincd1f2da2015-07-28 08:55:14 -070012 '../include/private',
skia.committer@gmail.com4024f322013-01-25 07:06:46 +000013 '../src/core',
humper@google.com7c7292c2013-01-04 20:29:03 +000014 '../src/effects', #needed for BlurMask.h
bsalomon@google.comb805fe52014-02-26 18:12:11 +000015 '../src/gpu', # needed by SkLua.cpp
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +000016 '../src/images',
17 '../src/lazy',
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000018 '../gm', # needed to pull gm.h
yangsu@google.com0be01572011-08-12 16:06:24 +000019 '../samplecode', # To pull SampleApp.h and SampleCode.h
scroggo@google.comb073d922012-06-08 15:35:03 +000020 '../src/pipe/utils', # For TiledPipeController
fmalita@google.com4df16732013-06-13 21:25:45 +000021 '../src/utils/debugger',
jvanverth4d0d81a2015-08-11 11:07:07 -070022 '../tools',
egdaniel478c04e2015-11-09 07:40:49 -080023 '../experimental',
epoger@google.comae85aea2011-05-31 13:50:51 +000024 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000025 'includes': [
26 'gmslides.gypi',
27 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000028 'sources': [
mtkleina7e930f2014-08-06 10:08:42 -070029 '../gm/gm.cpp',
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000030 '../samplecode/GMSampleView.h',
reed0ab326f2015-02-21 09:36:50 -080031 '../samplecode/GMSampleView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 '../samplecode/ClockFaceView.cpp',
33 '../samplecode/OverView.cpp',
tfarina@chromium.orgb1b7f7072012-09-18 01:52:20 +000034 '../samplecode/OverView.h',
egdanielfca294b2015-11-05 13:09:08 -080035 '../samplecode/PerlinPatch.cpp',
reed@google.com4de4d602011-07-08 20:12:55 +000036 '../samplecode/Sample2PtRadial.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000037 '../samplecode/SampleAAClip.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000038 '../samplecode/SampleAARects.cpp',
bsalomon@google.coma3108262011-10-10 14:08:47 +000039 '../samplecode/SampleAARectModes.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../samplecode/SampleAll.cpp',
robertphillips96afa522015-12-09 07:54:24 -080041 '../samplecode/SampleAnimatedText.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../samplecode/SampleAnimator.cpp',
bsalomon@google.com85003222012-03-28 14:44:37 +000043 '../samplecode/SampleAnimBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../samplecode/SampleApp.cpp',
45 '../samplecode/SampleArc.cpp',
reed71c3c762015-06-24 10:29:17 -070046 '../samplecode/SampleAtlas.cpp',
senorblanco@chromium.orge36ddf02011-07-15 14:28:16 +000047 '../samplecode/SampleBigBlur.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../samplecode/SampleBigGradient.cpp',
49 '../samplecode/SampleBitmapRect.cpp',
50 '../samplecode/SampleBlur.cpp',
51 '../samplecode/SampleCamera.cpp',
bsalomon@google.com9053c2e2013-02-13 21:22:13 +000052 '../samplecode/SampleChart.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../samplecode/SampleCircle.cpp',
reed@google.com3bcf8d32011-10-10 15:42:36 +000054 '../samplecode/SampleClip.cpp',
robertphillips7defaa62015-01-27 06:17:22 -080055 '../samplecode/SampleClipDrawMatch.cpp',
56 '../samplecode/SampleClock.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000057 '../samplecode/SampleCode.h',
58 '../samplecode/SampleColorFilter.cpp',
59 '../samplecode/SampleComplexClip.cpp',
senorblanco@chromium.org129b8e32011-06-15 17:52:09 +000060 '../samplecode/SampleConcavePaths.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../samplecode/SampleCull.cpp',
bsalomon@google.com22c5dea2011-07-07 14:38:03 +000062 '../samplecode/SampleDegenerateTwoPtRadials.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000063 '../samplecode/SampleDither.cpp',
64 '../samplecode/SampleDitherBitmap.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000065 '../samplecode/SampleEffects.cpp',
66 '../samplecode/SampleEmboss.cpp',
mike@reedtribe.org50e4c722012-10-22 03:59:34 +000067 '../samplecode/SampleFatBits.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../samplecode/SampleFillType.cpp',
69 '../samplecode/SampleFilter.cpp',
70 '../samplecode/SampleFilter2.cpp',
reedafdbedb2015-01-14 13:16:26 -080071 '../samplecode/SampleFilterQuality.cpp',
commit-bot@chromium.org22d69f92013-09-19 18:40:49 +000072 '../samplecode/SampleFilterFuzz.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000073 '../samplecode/SampleFontCache.cpp',
74 '../samplecode/SampleFontScalerTest.cpp',
75 '../samplecode/SampleFuzz.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000076 '../samplecode/SampleGradients.cpp',
bsalomon@google.comaeb21602011-08-30 18:13:44 +000077 '../samplecode/SampleHairCurves.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000078 '../samplecode/SampleHairline.cpp',
reed@google.comab973972011-09-19 19:01:38 +000079 '../samplecode/SampleHairModes.cpp',
reedadc8d982014-11-26 08:45:36 -080080 '../samplecode/SampleHT.cpp',
humperd1d3bae2014-08-08 12:11:33 -070081 '../samplecode/SampleIdentityScale.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 '../samplecode/SampleLayerMask.cpp',
83 '../samplecode/SampleLayers.cpp',
84 '../samplecode/SampleLCD.cpp',
robertphillips2f0dbc72015-08-20 05:15:06 -070085 '../samplecode/SampleLighting.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 '../samplecode/SampleLines.cpp',
reed@google.com3597b732013-05-22 20:12:50 +000087 '../samplecode/SampleLua.cpp',
bsalomon@google.comd62e88e2013-02-01 14:19:27 +000088 '../samplecode/SampleManyRects.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000089 '../samplecode/SampleMeasure.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 '../samplecode/SamplePatch.cpp',
91 '../samplecode/SamplePath.cpp',
92 '../samplecode/SamplePathClip.cpp',
caryclark63c684a2015-02-25 09:04:04 -080093 '../samplecode/SamplePathFuzz.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 '../samplecode/SamplePathEffects.cpp',
reed@google.com1830c7a2012-06-04 12:05:43 +000095 '../samplecode/SamplePictFile.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000096 '../samplecode/SamplePoints.cpp',
97 '../samplecode/SamplePolyToPoly.cpp',
caryclark88c748a2015-02-18 10:56:00 -080098 '../samplecode/SampleQuadStroker.cpp',
robertphillips901e96d2014-06-02 07:15:18 -070099 '../samplecode/SampleRectanizer.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 '../samplecode/SampleRegion.cpp',
101 '../samplecode/SampleRepeatTile.cpp',
102 '../samplecode/SampleShaders.cpp',
103 '../samplecode/SampleShaderText.cpp',
jvanverth2f5bb3a2015-10-05 11:05:07 -0700104 '../samplecode/SampleShip.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000105 '../samplecode/SampleSkLayer.cpp',
106 '../samplecode/SampleSlides.cpp',
jvanverth@google.com4ea28782013-09-19 15:32:22 +0000107 '../samplecode/SampleStringArt.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000108 '../samplecode/SampleStrokePath.cpp',
commit-bot@chromium.org1803f4e2014-05-29 22:01:08 +0000109 '../samplecode/SampleSubpixelTranslate.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000110 '../samplecode/SampleText.cpp',
111 '../samplecode/SampleTextAlpha.cpp',
112 '../samplecode/SampleTextBox.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000113 '../samplecode/SampleTextOnPath.cpp',
114 '../samplecode/SampleTextureDomain.cpp',
115 '../samplecode/SampleTiling.cpp',
116 '../samplecode/SampleTinyBitmap.cpp',
scroggo@google.com2bbc2c92013-06-14 15:33:20 +0000117 '../samplecode/SampleUnpremul.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000118 '../samplecode/SampleVertices.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 '../samplecode/SampleXfermodesBlur.cpp',
reed1a9caff2015-09-02 19:05:10 -0700120 '../samplecode/SampleXfer.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000121
yangsu@google.coma8540412011-08-30 14:40:49 +0000122 # DrawingBoard
123 #'../experimental/DrawingBoard/SkColorPalette.h',
124 #'../experimental/DrawingBoard/SkColorPalette.cpp',
125 #'../experimental/DrawingBoard/SkNetPipeController.h',
126 #'../experimental/DrawingBoard/SkNetPipeController.cpp',
127 #'../experimental/DrawingBoard/SampleDrawingClient.cpp',
128 #'../experimental/DrawingBoard/SampleDrawingServer.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000129
yangsu@google.coma8540412011-08-30 14:40:49 +0000130 # Networking
131 #'../experimental/Networking/SampleNetPipeReader.cpp',
132 #'../experimental/Networking/SkSockets.cpp',
133 #'../experimental/Networking/SkSockets.h',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000134
egdaniel478c04e2015-11-09 07:40:49 -0800135 # PerlinNoise2
136 '../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp',
137 '../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.h',
138
scroggo@google.comb073d922012-06-08 15:35:03 +0000139 # TiledPipeController
140 '../src/pipe/utils/SamplePipeControllers.h',
141 '../src/pipe/utils/SamplePipeControllers.cpp',
reed@google.com3597b732013-05-22 20:12:50 +0000142
143 # Lua
144 '../src/utils/SkLuaCanvas.cpp',
145 '../src/utils/SkLua.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000146 ],
147 'sources!': [
148 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
epoger@google.comae85aea2011-05-31 13:50:51 +0000149 '../samplecode/SampleFontCache.cpp',
150 ],
151 'dependencies': [
tfarinabcbc1782014-06-18 14:32:48 -0700152 'animator.gyp:animator',
153 'etc1.gyp:libetc1',
154 'experimental.gyp:experimental',
155 'flags.gyp:flags',
156 'lua.gyp:lua',
157 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000158 'skia_lib.gyp:skia_lib',
mtklein9ac68ee2014-06-20 11:29:20 -0700159 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -0700160 'tools.gyp:sk_tool_utils',
jvanverth4d0d81a2015-08-11 11:07:07 -0700161 'tools.gyp:timer',
epoger@google.comae85aea2011-05-31 13:50:51 +0000162 'views.gyp:views',
bungeman@google.com5e41b372012-03-23 14:11:43 +0000163 'views_animated.gyp:views_animated',
tfarinabcbc1782014-06-18 14:32:48 -0700164 'xml.gyp:xml',
epoger@google.comae85aea2011-05-31 13:50:51 +0000165 ],
jvanverth44dcb8a2015-10-02 09:12:05 -0700166 'msvs_settings': {
167 'VCLinkerTool': {
168 #Allows for creation / output to console.
169 #Console (/SUBSYSTEM:CONSOLE)
170 'SubSystem': '1',
171
172 #Console app, use main/wmain
173 'EntryPointSymbol': 'mainCRTStartup',
174 },
175 },
halcanary9f8754f2015-08-04 14:08:42 -0700176 'conditions' : [
epoger@google.comea5dfa82011-07-01 21:01:32 +0000177 [ 'skia_os == "ios"', {
jvanverth44dcb8a2015-10-02 09:12:05 -0700178 'mac_bundle' : 1,
epoger@google.comea5dfa82011-07-01 21:01:32 +0000179 # TODO: This doesn't build properly yet, but it's getting there.
epoger@google.comea5dfa82011-07-01 21:01:32 +0000180 'sources': [
caryclark@google.com867cbd82012-09-20 15:45:41 +0000181 '../src/views/mac/SkEventNotifier.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000182 '../experimental/iOSSampleApp/SkSampleUIView.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000183 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
184 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
185 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
186 '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000187 '../experimental/iOSSampleApp/Shared/SkOptionListController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000188 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000189 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000190 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000191 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
192 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
193
194 # iPad
epoger@google.comea5dfa82011-07-01 21:01:32 +0000195 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
196 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000197
198 # iPhone
epoger@google.comea5dfa82011-07-01 21:01:32 +0000199 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
200 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
201
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000202 '../src/views/ios/SkOSWindow_iOS.mm',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000203
204 '../src/utils/mac/SkCreateCGImageRef.cpp',
205 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
206 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
207 ],
caryclark@google.com867cbd82012-09-20 15:45:41 +0000208 'link_settings': {
caryclark@google.com867cbd82012-09-20 15:45:41 +0000209 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +0000210 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
211 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
212 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
213 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
214 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
215 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
216 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
217 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
218 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000219 ],
220 },
epoger@google.comea5dfa82011-07-01 21:01:32 +0000221 'include_dirs' : [
222 '../experimental/iOSSampleApp',
223 '../experimental/iOSSampleApp/iPad',
224 '../experimental/iOSSampleApp/iPhone',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +0000225 '../experimental/iOSSampleApp/Shared',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000226 '../include/utils/ios',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +0000227 '../src/views/mac',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000228 ],
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000229 'xcode_settings' : {
230 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
231 },
232 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000233 'mac_bundle_resources' : [
234 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
235 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
236 ],
237 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000238 [ 'skia_os == "android"', {
djsollen@google.com58629292011-11-03 13:08:29 +0000239 'sources!': [
240 '../samplecode/SampleAnimator.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000241 ],
jvanverth44dcb8a2015-10-02 09:12:05 -0700242 'conditions': [
243 ['skia_android_framework == 0', {
244 'dependencies': [
245 'android_deps.gyp:Android_EntryPoint',
246 'skia_launcher.gyp:skia_launcher',
247 ],
248 }],
249 ],
djsollen@google.com58629292011-11-03 13:08:29 +0000250 'dependencies!': [
251 'animator.gyp:animator',
252 'experimental.gyp:experimental',
253 ],
djsollen@google.comfad45102011-11-04 13:00:18 +0000254 'dependencies': [
jvanverth44dcb8a2015-10-02 09:12:05 -0700255 'android_output.gyp:android_output',
djsollen@google.com04b54682012-12-13 20:07:21 +0000256 'android_deps.gyp:Android_SampleApp',
djsollen@google.com58629292011-11-03 13:08:29 +0000257 ],
258 }],
robertphillips2f0dbc72015-08-20 05:15:06 -0700259 [ 'skia_os == "chromeos"', {
260 'sources!': [
261 '../samplecode/SampleLighting.cpp', #doesn't compile due to gpu dependencies
jvanverthd17a3292015-07-09 09:04:16 -0700262 ],
robertphillips96afa522015-12-09 07:54:24 -0800263 'include_dirs' : [
264 '../include/gpu',
265 ],
jvanverthd17a3292015-07-09 09:04:16 -0700266 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000267 [ 'skia_gpu == 1', {
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000268 'dependencies': [
269 'gputest.gyp:skgputest',
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000270 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000271 }],
halcanary8ee06f22015-08-11 10:30:12 -0700272 [ 'not skia_pdf', {
273 'dependencies!': [ 'pdf.gyp:pdf' ],
274 'dependencies': [ 'pdf.gyp:nopdf' ],
275 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000276 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000277 },
278 ],
279}