blob: 63d58b75c905e56e268e93e7f2cf81248b2775a2 [file] [log] [blame]
yangsu@google.coma8540412011-08-30 14:40:49 +00001{
2 'includes': [
3 'target_defaults.gypi',
4 ],
5 'defines!': [
6 'SK_BUILD_FOR_MAC',
7 ],
8 'targets': [
9 {
10 'target_name': 'iOSSampleApp',
11 'type': 'executable',
12 'mac_bundle' : 1,
13 'include_dirs' : [
14 '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
15 '../gm', # SampleGM.cpp pulls gm.h
16 '../include/pipe', # To pull in SkGPipe.h for pipe reader/writer
17 ],
18 'sources': [
19 # gm files needed for SampleGM.cpp
20 '../gm/bitmapfilters.cpp',
21 '../gm/blurs.cpp',
22 '../gm/complexclip.cpp',
23 '../gm/filltypes.cpp',
24 '../gm/gm.h',
25 '../gm/gradients.cpp',
26 '../gm/nocolorbleed.cpp',
27 '../gm/points.cpp',
28 '../gm/poly2poly.cpp',
29 '../gm/shadertext.cpp',
30 '../gm/shadows.cpp',
31 '../gm/shapes.cpp',
32 '../gm/tilemodes.cpp',
33 '../gm/xfermodes.cpp',
34
35 '../samplecode/ClockFaceView.cpp',
36 '../samplecode/OverView.cpp',
37 '../samplecode/Sample2PtRadial.cpp',
38 '../samplecode/SampleAll.cpp',
39 '../samplecode/SampleAnimator.cpp',
40 '../samplecode/SampleApp.cpp',
41 '../samplecode/SampleArc.cpp',
42 '../samplecode/SampleAvoid.cpp',
43 '../samplecode/SampleBigBlur.cpp',
44 '../samplecode/SampleBigGradient.cpp',
45 '../samplecode/SampleBitmapRect.cpp',
46 '../samplecode/SampleBlur.cpp',
47 '../samplecode/SampleCamera.cpp',
48 '../samplecode/SampleCircle.cpp',
49 '../samplecode/SampleCode.h',
50 '../samplecode/SampleColorFilter.cpp',
51 '../samplecode/SampleComplexClip.cpp',
52 '../samplecode/SampleConcavePaths.cpp',
53 '../samplecode/SampleCull.cpp',
54 '../samplecode/SampleDecode.cpp',
55 '../samplecode/SampleDegenerateTwoPtRadials.cpp',
56 '../samplecode/SampleDither.cpp',
57 '../samplecode/SampleDitherBitmap.cpp',
58 '../samplecode/SampleDrawBitmap.cpp',
59 '../samplecode/SampleDrawLooper.cpp',
60 '../samplecode/SampleEffects.cpp',
61 '../samplecode/SampleEmboss.cpp',
62 '../samplecode/SampleEncode.cpp',
63 '../samplecode/SampleExtractAlpha.cpp',
64 '../samplecode/SampleFillType.cpp',
65 '../samplecode/SampleFilter.cpp',
66 '../samplecode/SampleFilter2.cpp',
67 '../samplecode/SampleFontCache.cpp',
68 '../samplecode/SampleFontScalerTest.cpp',
69 '../samplecode/SampleFuzz.cpp',
70 '../samplecode/SampleGM.cpp',
71 '../samplecode/SampleGradients.cpp',
72 '../samplecode/SampleHairline.cpp',
73 '../samplecode/SampleImage.cpp',
74 '../samplecode/SampleImageDir.cpp',
75 '../samplecode/SampleLayerMask.cpp',
76 '../samplecode/SampleLayers.cpp',
77 '../samplecode/SampleLCD.cpp',
78 '../samplecode/SampleLineClipper.cpp',
79 '../samplecode/SampleLines.cpp',
80 '../samplecode/SampleMeasure.cpp',
81 '../samplecode/SampleMipMap.cpp',
82 '../samplecode/SampleMovie.cpp',
83 '../samplecode/SampleNinePatch.cpp',
84 '../samplecode/SampleOvalTest.cpp',
85 '../samplecode/SampleOverflow.cpp',
86 '../samplecode/SamplePageFlip.cpp',
87 '../samplecode/SamplePatch.cpp',
88 '../samplecode/SamplePath.cpp',
89 '../samplecode/SamplePathClip.cpp',
90 '../samplecode/SamplePathEffects.cpp',
91 '../samplecode/SamplePicture.cpp',
92 '../samplecode/SamplePoints.cpp',
93 '../samplecode/SamplePolyToPoly.cpp',
94 '../samplecode/SampleAARects.cpp',
95 '../samplecode/SampleRegion.cpp',
96 '../samplecode/SampleRepeatTile.cpp',
97 '../samplecode/SampleShaders.cpp',
98 '../samplecode/SampleShaderText.cpp',
99 '../samplecode/SampleShapes.cpp',
100 '../samplecode/SampleSkLayer.cpp',
101 '../samplecode/SampleSlides.cpp',
102 '../samplecode/SampleStrokePath.cpp',
103 '../samplecode/SampleStrokeText.cpp',
104 '../samplecode/SampleTests.cpp',
105 '../samplecode/SampleText.cpp',
106 '../samplecode/SampleTextAlpha.cpp',
107 '../samplecode/SampleTextBox.cpp',
108 '../samplecode/SampleTextEffects.cpp',
109 '../samplecode/SampleTextOnPath.cpp',
110 '../samplecode/SampleTextureDomain.cpp',
111 '../samplecode/SampleTiling.cpp',
112 '../samplecode/SampleTinyBitmap.cpp',
113 '../samplecode/SampleTriangles.cpp',
114 '../samplecode/SampleTypeface.cpp',
115 '../samplecode/SampleUnitMapper.cpp',
116 '../samplecode/SampleVertices.cpp',
117 '../samplecode/SampleXfermodes.cpp',
118 '../samplecode/SampleXfermodesBlur.cpp',
119
120 # Dependencies for the pipe code in SampleApp
121 '../src/pipe/SkGPipeRead.cpp',
122 '../src/pipe/SkGPipeWrite.cpp',
123
124 # DrawingBoard
125 '../experimental/DrawingBoard/SkColorPalette.h',
126 '../experimental/DrawingBoard/SkColorPalette.cpp',
127 '../experimental/DrawingBoard/SkNetPipeController.h',
128 '../experimental/DrawingBoard/SkNetPipeController.cpp',
129 '../experimental/DrawingBoard/SampleDrawingClient.cpp',
130 '../experimental/DrawingBoard/SampleDrawingServer.cpp',
131
132 # Networking
133 '../experimental/Networking/SampleNetPipeReader.cpp',
134 '../experimental/Networking/SkSockets.cpp',
135 '../experimental/Networking/SkSockets.h',
136
137 # Transition
138 '../src/utils/SkInterpolator.cpp',
139 '../include/utils/SkInterpolator.h',
140 '../samplecode/TransitionView.cpp',
141 ],
142 'sources!': [
143 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
144 '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h
145 '../samplecode/SampleWarp.cpp',
146 '../samplecode/SampleFontCache.cpp',
147 ],
148 'dependencies': [
149 'core.gyp:core',
150 'effects.gyp:effects',
151 'images.gyp:images',
152 'views.gyp:views',
153 'utils.gyp:utils',
154 'animator.gyp:animator',
155 'xml.gyp:xml',
156 'svg.gyp:svg',
157 'experimental.gyp:experimental',
158 'gpu.gyp:gr',
159 'gpu.gyp:skgr',
160 'pdf.gyp:pdf',
161 ],
162 'conditions' : [
163 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
164 'sources!': [
165 '../samplecode/SampleDecode.cpp',
166 ],
167 }],
168 [ 'OS == "win"', {
169 'sources!': [
170 # require UNIX functions
171 '../samplecode/SampleEncode.cpp',
172 '../samplecode/SamplePageFlip.cpp',
173 ],
174 }],
175 [ 'OS == "mac"', {
176 'sources!': [
177 '../samplecode/SampleDecode.cpp',
178 '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
179 ],
180 'sources': [
181 # Shared resources
182 '../experimental/SkEventNotifier.h',
183 '../experimental/SkEventNotifier.mm',
184 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
185 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
186 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
187 '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
188 '../experimental/iOSSampleApp/iOSSampleApp_Prefix.pch',
189 '../experimental/iOSSampleApp/Shared/SkOptionListController.h',
190 '../experimental/iOSSampleApp/Shared/SkOptionListController.mm',
191 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.h',
192 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
193 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.h',
194 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
195 '../experimental/iOSSampleApp/Shared/SkUIView.h',
196 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
197 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.h',
198 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
199 '../experimental/iOSSampleApp/Shared/main.m',
200
201 # iPad
202 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.h',
203 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
204 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.h',
205 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
206 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
207
208 # iPhone
209 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.h',
210 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
211 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.h',
212 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
213 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
214
215 '../src/utils/ios/SkOSWindow_iOS.mm',
216 '../src/utils/ios/SkImageDecoder_iOS.mm',
217 '../src/utils/ios/SkStream_NSData.mm',
218 '../src/utils/ios/SkOSFile_iOS.mm',
219
220 '../include/utils/mac/SkCGUtils.h',
221 '../src/utils/mac/SkCreateCGImageRef.cpp',
222 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
223 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
224 ],
225 'link_settings': {
226 'libraries': [
227 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework',
228 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreGraphics.framework',
229 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreText.framework',
230 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework',
231 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework',
232 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework',
233 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/OpenGLES.framework',
234 ],
235 'libraries!': [
236 #remove mac dependencies
237 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
238 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
239 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
240 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
241 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
242 ],
243 },
244 'include_dirs' : [
245 '../experimental/iOSSampleApp',
246 '../experimental/iOSSampleApp/iPad',
247 '../experimental/iOSSampleApp/iPhone',
248 '../include/utils/ios',
249 '../../gpu/include',
250 ],
251 #'xcode_settings' : {
252 # 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
253 # 'ARCHS' : 'armv6 armv7',
254 # 'IPHONEOS_DEPLOYMENT_TARGET' : '4.2',
255 # 'SDKROOT' : 'iphoneos',
256 # 'TARGETED_DEVICE_FAMILY' : '1,2',
257 # 'USER_HEADER_SEARCH_PATHS' : '../../gpu/include/** ../../include/**',
258 # 'CODE_SIGN_IDENTITY' : 'iPhone Developer',
259 # 'GCC_PREPROCESSOR_DEFINITIONS' : 'SK_BUILD_FOR_IOS',
260 # 'GCC_OPTIMIZATION_LEVEL' : '0',
261 #},
262 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
263 'mac_bundle_resources' : [
264 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
265 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
266 ],
267 }],
268
269 ],
270 },
271 ],
272}
273
274# Local Variables:
275# tab-width:2
276# indent-tabs-mode:nil
277# End:
278# vim: set expandtab tabstop=2 shiftwidth=2: