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