1 { 2 'targets': [ 3 { 4 'target_name': 'SampleApp', 5 'type': 'executable', 6 'mac_bundle' : 1, 7 'include_dirs' : [ 8 '../src/core', 9 '../src/effects', #needed for BlurMask.h 10 '../gm', # needed to pull gm.h 11 '../samplecode', # To pull SampleApp.h and SampleCode.h 12 '../src/pipe/utils', # For TiledPipeController 13 ], 14 'includes': [ 15 'gmslides.gypi', 16 ], 17 'sources': [ 18 '../gm/gm.cpp', 19 '../gm/gm.h', 20 21 '../samplecode/GMSampleView.h', 22 '../samplecode/ClockFaceView.cpp', 23 '../samplecode/OverView.cpp', 24 '../samplecode/OverView.h', 25 '../samplecode/Sample2PtRadial.cpp', 26 '../samplecode/SampleAAClip.cpp', 27 '../samplecode/SampleAARects.cpp', 28 '../samplecode/SampleAARectModes.cpp', 29 '../samplecode/SampleAll.cpp', 30 '../samplecode/SampleAnimator.cpp', 31 '../samplecode/SampleAnimBlur.cpp', 32 '../samplecode/SampleApp.cpp', 33 '../samplecode/SampleArc.cpp', 34 '../samplecode/SampleAvoid.cpp', 35 '../samplecode/SampleBigBlur.cpp', 36 '../samplecode/SampleBigGradient.cpp', 37 '../samplecode/SampleBitmapRect.cpp', 38 '../samplecode/SampleBlur.cpp', 39 '../samplecode/SampleCamera.cpp', 40 '../samplecode/SampleCircle.cpp', 41 '../samplecode/SampleClip.cpp', 42 '../samplecode/SampleCode.h', 43 '../samplecode/SampleColorFilter.cpp', 44 '../samplecode/SampleComplexClip.cpp', 45 '../samplecode/SampleConcavePaths.cpp', 46 '../samplecode/SampleCull.cpp', 47 '../samplecode/SampleDecode.cpp', 48 '../samplecode/SampleDegenerateTwoPtRadials.cpp', 49 '../samplecode/SampleDither.cpp', 50 '../samplecode/SampleDitherBitmap.cpp', 51 '../samplecode/SampleEffects.cpp', 52 '../samplecode/SampleEmboss.cpp', 53 '../samplecode/SampleEmptyPath.cpp', 54 '../samplecode/SampleEncode.cpp', 55 '../samplecode/SampleFatBits.cpp', 56 '../samplecode/SampleFillType.cpp', 57 '../samplecode/SampleFilter.cpp', 58 '../samplecode/SampleFilter2.cpp', 59 '../samplecode/SampleFontCache.cpp', 60 '../samplecode/SampleFontScalerTest.cpp', 61 '../samplecode/SampleFuzz.cpp', 62 '../samplecode/SampleGradients.cpp', 63 '../samplecode/SampleHairCurves.cpp', 64 '../samplecode/SampleHairline.cpp', 65 '../samplecode/SampleHairModes.cpp', 66 '../samplecode/SampleLayerMask.cpp', 67 '../samplecode/SampleLayers.cpp', 68 '../samplecode/SampleLCD.cpp', 69 '../samplecode/SampleLines.cpp', 70 '../samplecode/SampleManyRects.cpp', 71 '../samplecode/SampleMeasure.cpp', 72 '../samplecode/SampleMipMap.cpp', 73 '../samplecode/SampleMovie.cpp', 74 '../samplecode/SampleOvalTest.cpp', 75 '../samplecode/SampleOverflow.cpp', 76 '../samplecode/SamplePatch.cpp', 77 '../samplecode/SamplePath.cpp', 78 '../samplecode/SamplePathClip.cpp', 79 '../samplecode/SamplePathEffects.cpp', 80 '../samplecode/SamplePicture.cpp', 81 '../samplecode/SamplePictFile.cpp', 82 '../samplecode/SamplePoints.cpp', 83 '../samplecode/SamplePolyToPoly.cpp', 84 '../samplecode/SampleRegion.cpp', 85 '../samplecode/SampleRepeatTile.cpp', 86 '../samplecode/SampleRotateCircles.cpp', 87 '../samplecode/SampleShaders.cpp', 88 '../samplecode/SampleShaderText.cpp', 89 '../samplecode/SampleSkLayer.cpp', 90 '../samplecode/SampleSlides.cpp', 91 '../samplecode/SampleStrokePath.cpp', 92 '../samplecode/SampleStrokeText.cpp', 93 '../samplecode/SampleTests.cpp', 94 '../samplecode/SampleText.cpp', 95 '../samplecode/SampleTextAlpha.cpp', 96 '../samplecode/SampleTextBox.cpp', 97 '../samplecode/SampleTextOnPath.cpp', 98 '../samplecode/SampleTextureDomain.cpp', 99 '../samplecode/SampleTiling.cpp', 100 '../samplecode/SampleTinyBitmap.cpp', 101 '../samplecode/SampleTypeface.cpp', 102 '../samplecode/SampleUnitMapper.cpp', 103 '../samplecode/SampleVertices.cpp', 104 '../samplecode/SampleXfermodesBlur.cpp', 105 '../samplecode/TransitionView.cpp', 106 '../samplecode/TransitionView.h', 107 108 # DrawingBoard 109 #'../experimental/DrawingBoard/SkColorPalette.h', 110 #'../experimental/DrawingBoard/SkColorPalette.cpp', 111 #'../experimental/DrawingBoard/SkNetPipeController.h', 112 #'../experimental/DrawingBoard/SkNetPipeController.cpp', 113 #'../experimental/DrawingBoard/SampleDrawingClient.cpp', 114 #'../experimental/DrawingBoard/SampleDrawingServer.cpp', 115 116 # Networking 117 #'../experimental/Networking/SampleNetPipeReader.cpp', 118 #'../experimental/Networking/SkSockets.cpp', 119 #'../experimental/Networking/SkSockets.h', 120 121 # TiledPipeController 122 '../src/pipe/utils/SamplePipeControllers.h', 123 '../src/pipe/utils/SamplePipeControllers.cpp', 124 ], 125 'sources!': [ 126 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile 127 '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h 128 '../samplecode/SampleWarp.cpp', 129 '../samplecode/SampleFontCache.cpp', 130 ], 131 'dependencies': [ 132 'skia_base_libs.gyp:skia_base_libs', 133 'effects.gyp:effects', 134 'images.gyp:images', 135 'views.gyp:views', 136 'animator.gyp:animator', 137 'xml.gyp:xml', 138 'experimental.gyp:experimental', 139 'pdf.gyp:pdf', 140 'views_animated.gyp:views_animated', 141 ], 142 'conditions' : [ 143 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 144 'sources!': [ 145 '../samplecode/SampleDecode.cpp', 146 ], 147 }], 148 [ 'skia_os == "win"', { 149 'sources!': [ 150 # require UNIX functions 151 '../samplecode/SampleEncode.cpp', 152 ], 153 }], 154 [ 'skia_os == "mac"', { 155 'sources!': [ 156 '../samplecode/SampleDecode.cpp', 157 ], 158 'sources': [ 159 # Sample App specific files 160 '../src/views/mac/SampleApp-Info.plist', 161 '../src/views/mac/SampleAppDelegate.h', 162 '../src/views/mac/SampleAppDelegate.mm', 163 '../src/views/mac/SkSampleNSView.h', 164 '../src/views/mac/SkSampleNSView.mm', 165 166 # Mac files 167 '../src/views/mac/SkEventNotifier.h', 168 '../src/views/mac/SkEventNotifier.mm', 169 '../src/views/mac/skia_mac.mm', 170 '../src/views/mac/SkNSView.h', 171 '../src/views/mac/SkNSView.mm', 172 '../src/views/mac/SkOptionsTableView.h', 173 '../src/views/mac/SkOptionsTableView.mm', 174 '../src/views/mac/SkOSWindow_Mac.mm', 175 '../src/views/mac/SkTextFieldCell.h', 176 '../src/views/mac/SkTextFieldCell.m', 177 ], 178 'libraries': [ 179 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 180 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 181 ], 182 'xcode_settings' : { 183 'INFOPLIST_FILE' : '../src/views/mac/SampleApp-Info.plist', 184 }, 185 'mac_bundle_resources' : [ 186 '../src/views/mac/SampleApp.xib', 187 ], 188 }], 189 [ 'skia_os == "ios"', { 190 # TODO: This doesn't build properly yet, but it's getting there. 191 'sources!': [ 192 '../samplecode/SampleDecode.cpp', 193 ], 194 'sources': [ 195 '../src/views/mac/SkEventNotifier.h', 196 '../src/views/mac/SkEventNotifier.mm', 197 '../experimental/iOSSampleApp/SkSampleUIView.h', 198 '../experimental/iOSSampleApp/SkSampleUIView.mm', 199 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', 200 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig', 201 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig', 202 '../experimental/iOSSampleApp/iOSSampleApp-Info.plist', 203 '../experimental/iOSSampleApp/Shared/SkOptionListController.h', 204 '../experimental/iOSSampleApp/Shared/SkOptionListController.mm', 205 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.h', 206 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm', 207 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.h', 208 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm', 209 '../experimental/iOSSampleApp/Shared/SkUIView.h', 210 '../experimental/iOSSampleApp/Shared/SkUIView.mm', 211 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.h', 212 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm', 213 '../experimental/iOSSampleApp/Shared/skia_ios.mm', 214 215 # iPad 216 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.h', 217 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', 218 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.h', 219 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm', 220 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib', 221 222 # iPhone 223 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.h', 224 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', 225 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.h', 226 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm', 227 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib', 228 229 '../src/views/ios/SkOSWindow_iOS.mm', 230 '../src/utils/ios/SkImageDecoder_iOS.mm', 231 '../src/utils/ios/SkStream_NSData.mm', 232 '../src/utils/ios/SkOSFile_iOS.mm', 233 234 '../include/utils/mac/SkCGUtils.h', 235 '../src/utils/mac/SkCreateCGImageRef.cpp', 236 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig', 237 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig', 238 ], 239 'link_settings': { 240 'libraries': [ 241 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 242 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', 243 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', 244 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', 245 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 246 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 247 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', 248 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', 249 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', 250 ], 251 }, 252 'include_dirs' : [ 253 '../experimental/iOSSampleApp', 254 '../experimental/iOSSampleApp/iPad', 255 '../experimental/iOSSampleApp/iPhone', 256 '../include/utils/ios', 257 ], 258 'xcode_settings' : { 259 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist', 260 }, 261 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', 262 'mac_bundle_resources' : [ 263 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib', 264 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib', 265 ], 266 }], 267 [ 'skia_os == "android"', { 268 'sources!': [ 269 '../samplecode/SampleAnimator.cpp', 270 '../samplecode/SampleUnitMapper.cpp', 271 ], 272 'dependencies!': [ 273 'animator.gyp:animator', 274 'experimental.gyp:experimental', 275 ], 276 'dependencies': [ 277 'android_deps.gyp:Android_SampleApp', 278 ], 279 }], 280 [ 'skia_gpu == 1', { 281 'include_dirs': [ 282 '../src/gpu', # To pull gl/GrGLUtil.h 283 ], 284 }], 285 [ 'skia_os == "nacl"', { 286 'sources': [ 287 '../../nacl/src/nacl_sample.cpp', 288 ], 289 }], 290 ], 291 'msvs_settings': { 292 'VCLinkerTool': { 293 'SubSystem': '2', 294 }, 295 }, 296 }, 297 ], 298 } 299 300 # Local Variables: 301 # tab-width:2 302 # indent-tabs-mode:nil 303 # End: 304 # vim: set expandtab tabstop=2 shiftwidth=2: 305