epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 1 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 2 | { |
| 3 | 'includes': [ |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 4 | 'common.gypi', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 5 | ], |
| 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'SampleApp', |
| 9 | 'type': 'executable', |
| 10 | 'mac_bundle' : 1, |
| 11 | 'include_dirs' : [ |
| 12 | '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir? |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 13 | '../gm', # needed to pull gm.h |
yangsu@google.com | 06b4da1 | 2011-06-17 15:04:40 +0000 | [diff] [blame] | 14 | '../include/pipe', # To pull in SkGPipe.h for pipe reader/writer |
yangsu@google.com | 0be0157 | 2011-08-12 16:06:24 +0000 | [diff] [blame] | 15 | '../samplecode', # To pull SampleApp.h and SampleCode.h |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 16 | ], |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 17 | 'includes': [ |
| 18 | 'gmslides.gypi', |
| 19 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 20 | 'sources': [ |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 21 | '../gm/gm.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 22 | '../gm/gm.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 23 | |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 24 | '../samplecode/GMSampleView.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | '../samplecode/ClockFaceView.cpp', |
| 26 | '../samplecode/OverView.cpp', |
reed@google.com | 4de4d60 | 2011-07-08 20:12:55 +0000 | [diff] [blame] | 27 | '../samplecode/Sample2PtRadial.cpp', |
reed@google.com | 3bcf8d3 | 2011-10-10 15:42:36 +0000 | [diff] [blame] | 28 | '../samplecode/SampleAAClip.cpp', |
| 29 | '../samplecode/SampleAAClip2.cpp', |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 30 | '../samplecode/SampleAARects.cpp', |
bsalomon@google.com | a310826 | 2011-10-10 14:08:47 +0000 | [diff] [blame] | 31 | '../samplecode/SampleAARectModes.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 32 | '../samplecode/SampleAll.cpp', |
| 33 | '../samplecode/SampleAnimator.cpp', |
| 34 | '../samplecode/SampleApp.cpp', |
| 35 | '../samplecode/SampleArc.cpp', |
| 36 | '../samplecode/SampleAvoid.cpp', |
senorblanco@chromium.org | e36ddf0 | 2011-07-15 14:28:16 +0000 | [diff] [blame] | 37 | '../samplecode/SampleBigBlur.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 38 | '../samplecode/SampleBigGradient.cpp', |
| 39 | '../samplecode/SampleBitmapRect.cpp', |
| 40 | '../samplecode/SampleBlur.cpp', |
| 41 | '../samplecode/SampleCamera.cpp', |
| 42 | '../samplecode/SampleCircle.cpp', |
reed@google.com | 3bcf8d3 | 2011-10-10 15:42:36 +0000 | [diff] [blame] | 43 | '../samplecode/SampleClip.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 44 | '../samplecode/SampleCode.h', |
| 45 | '../samplecode/SampleColorFilter.cpp', |
| 46 | '../samplecode/SampleComplexClip.cpp', |
senorblanco@chromium.org | 129b8e3 | 2011-06-15 17:52:09 +0000 | [diff] [blame] | 47 | '../samplecode/SampleConcavePaths.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | '../samplecode/SampleCull.cpp', |
| 49 | '../samplecode/SampleDecode.cpp', |
bsalomon@google.com | 22c5dea | 2011-07-07 14:38:03 +0000 | [diff] [blame] | 50 | '../samplecode/SampleDegenerateTwoPtRadials.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 51 | '../samplecode/SampleDither.cpp', |
| 52 | '../samplecode/SampleDitherBitmap.cpp', |
junov@google.com | 61d46a0 | 2011-07-28 13:34:31 +0000 | [diff] [blame] | 53 | '../samplecode/SampleDrawBitmap.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 54 | '../samplecode/SampleDrawLooper.cpp', |
| 55 | '../samplecode/SampleEffects.cpp', |
| 56 | '../samplecode/SampleEmboss.cpp', |
bsalomon@google.com | fa6ac93 | 2011-10-05 19:57:55 +0000 | [diff] [blame] | 57 | '../samplecode/SampleEmptyPath.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | '../samplecode/SampleEncode.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 59 | '../samplecode/SampleFillType.cpp', |
| 60 | '../samplecode/SampleFilter.cpp', |
| 61 | '../samplecode/SampleFilter2.cpp', |
| 62 | '../samplecode/SampleFontCache.cpp', |
| 63 | '../samplecode/SampleFontScalerTest.cpp', |
| 64 | '../samplecode/SampleFuzz.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 65 | '../samplecode/SampleGradients.cpp', |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 66 | '../samplecode/SampleHairCurves.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 67 | '../samplecode/SampleHairline.cpp', |
reed@google.com | ab97397 | 2011-09-19 19:01:38 +0000 | [diff] [blame] | 68 | '../samplecode/SampleHairModes.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 69 | '../samplecode/SampleImage.cpp', |
| 70 | '../samplecode/SampleImageDir.cpp', |
| 71 | '../samplecode/SampleLayerMask.cpp', |
| 72 | '../samplecode/SampleLayers.cpp', |
| 73 | '../samplecode/SampleLCD.cpp', |
| 74 | '../samplecode/SampleLineClipper.cpp', |
| 75 | '../samplecode/SampleLines.cpp', |
| 76 | '../samplecode/SampleMeasure.cpp', |
| 77 | '../samplecode/SampleMipMap.cpp', |
| 78 | '../samplecode/SampleMovie.cpp', |
| 79 | '../samplecode/SampleNinePatch.cpp', |
| 80 | '../samplecode/SampleOvalTest.cpp', |
| 81 | '../samplecode/SampleOverflow.cpp', |
| 82 | '../samplecode/SamplePageFlip.cpp', |
| 83 | '../samplecode/SamplePatch.cpp', |
| 84 | '../samplecode/SamplePath.cpp', |
| 85 | '../samplecode/SamplePathClip.cpp', |
| 86 | '../samplecode/SamplePathEffects.cpp', |
| 87 | '../samplecode/SamplePicture.cpp', |
| 88 | '../samplecode/SamplePoints.cpp', |
| 89 | '../samplecode/SamplePolyToPoly.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 90 | '../samplecode/SampleRegion.cpp', |
| 91 | '../samplecode/SampleRepeatTile.cpp', |
| 92 | '../samplecode/SampleShaders.cpp', |
| 93 | '../samplecode/SampleShaderText.cpp', |
| 94 | '../samplecode/SampleShapes.cpp', |
| 95 | '../samplecode/SampleSkLayer.cpp', |
| 96 | '../samplecode/SampleSlides.cpp', |
| 97 | '../samplecode/SampleStrokePath.cpp', |
| 98 | '../samplecode/SampleStrokeText.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 99 | '../samplecode/SampleTests.cpp', |
| 100 | '../samplecode/SampleText.cpp', |
| 101 | '../samplecode/SampleTextAlpha.cpp', |
| 102 | '../samplecode/SampleTextBox.cpp', |
| 103 | '../samplecode/SampleTextEffects.cpp', |
| 104 | '../samplecode/SampleTextOnPath.cpp', |
| 105 | '../samplecode/SampleTextureDomain.cpp', |
| 106 | '../samplecode/SampleTiling.cpp', |
| 107 | '../samplecode/SampleTinyBitmap.cpp', |
| 108 | '../samplecode/SampleTriangles.cpp', |
| 109 | '../samplecode/SampleTypeface.cpp', |
| 110 | '../samplecode/SampleUnitMapper.cpp', |
| 111 | '../samplecode/SampleVertices.cpp', |
| 112 | '../samplecode/SampleXfermodes.cpp', |
| 113 | '../samplecode/SampleXfermodesBlur.cpp', |
yangsu@google.com | db03eaa | 2011-08-08 15:37:23 +0000 | [diff] [blame] | 114 | '../samplecode/TransitionView.cpp', |
yangsu@google.com | 06b4da1 | 2011-06-17 15:04:40 +0000 | [diff] [blame] | 115 | |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 116 | # Dependencies for the pipe code in SampleApp |
yangsu@google.com | 06b4da1 | 2011-06-17 15:04:40 +0000 | [diff] [blame] | 117 | '../src/pipe/SkGPipeRead.cpp', |
| 118 | '../src/pipe/SkGPipeWrite.cpp', |
yangsu@google.com | f3523fb | 2011-08-12 15:04:12 +0000 | [diff] [blame] | 119 | |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame] | 120 | # DrawingBoard |
| 121 | #'../experimental/DrawingBoard/SkColorPalette.h', |
| 122 | #'../experimental/DrawingBoard/SkColorPalette.cpp', |
| 123 | #'../experimental/DrawingBoard/SkNetPipeController.h', |
| 124 | #'../experimental/DrawingBoard/SkNetPipeController.cpp', |
| 125 | #'../experimental/DrawingBoard/SampleDrawingClient.cpp', |
| 126 | #'../experimental/DrawingBoard/SampleDrawingServer.cpp', |
| 127 | |
| 128 | # Networking |
| 129 | #'../experimental/Networking/SampleNetPipeReader.cpp', |
| 130 | #'../experimental/Networking/SkSockets.cpp', |
| 131 | #'../experimental/Networking/SkSockets.h', |
| 132 | |
| 133 | # Debugger |
yangsu@google.com | f3523fb | 2011-08-12 15:04:12 +0000 | [diff] [blame] | 134 | '../experimental/Debugger/DebuggerViews.h', |
| 135 | '../experimental/Debugger/DebuggerContentView.cpp', |
| 136 | '../experimental/Debugger/DebuggerCommandsView.cpp', |
| 137 | '../experimental/Debugger/DebuggerStateView.cpp', |
| 138 | '../experimental/Debugger/SkDebugDumper.cpp', |
| 139 | '../experimental/Debugger/SkDebugDumper.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 140 | ], |
| 141 | 'sources!': [ |
| 142 | '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile |
| 143 | '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h |
| 144 | '../samplecode/SampleWarp.cpp', |
| 145 | '../samplecode/SampleFontCache.cpp', |
| 146 | ], |
| 147 | 'dependencies': [ |
epoger@google.com | 51c078b | 2011-05-31 19:02:37 +0000 | [diff] [blame] | 148 | 'core.gyp:core', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 149 | 'effects.gyp:effects', |
| 150 | 'images.gyp:images', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame^] | 151 | 'ports.gyp:ports', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 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', |
Scroggo | 8ac0d54 | 2011-06-21 14:44:57 +0000 | [diff] [blame] | 160 | 'pdf.gyp:pdf', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 161 | ], |
| 162 | 'conditions' : [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 163 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 164 | 'sources!': [ |
| 165 | '../samplecode/SampleDecode.cpp', |
| 166 | ], |
| 167 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 168 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 169 | 'sources!': [ |
| 170 | # require UNIX functions |
| 171 | '../samplecode/SampleEncode.cpp', |
| 172 | '../samplecode/SamplePageFlip.cpp', |
| 173 | ], |
| 174 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 175 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 176 | 'sources!': [ |
| 177 | '../samplecode/SampleDecode.cpp', |
| 178 | ], |
yangsu@google.com | 901aea5 | 2011-08-02 16:35:00 +0000 | [diff] [blame] | 179 | 'sources': [ |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame] | 180 | # Sample App specific files |
| 181 | '../src/utils/mac/SampleApp-Info.plist', |
| 182 | '../src/utils/mac/SampleAppDelegate.h', |
| 183 | '../src/utils/mac/SampleAppDelegate.mm', |
| 184 | '../src/utils/mac/SkSampleNSView.h', |
| 185 | '../src/utils/mac/SkSampleNSView.mm', |
| 186 | |
| 187 | # Mac files |
| 188 | '../src/utils/mac/SkEventNotifier.h', |
| 189 | '../src/utils/mac/SkEventNotifier.mm', |
| 190 | '../src/utils/mac/skia_mac.mm', |
| 191 | '../src/utils/mac/SkNSView.h', |
| 192 | '../src/utils/mac/SkNSView.mm', |
| 193 | '../src/utils/mac/SkOptionsTableView.h', |
| 194 | '../src/utils/mac/SkOptionsTableView.mm', |
| 195 | '../src/utils/mac/SkOSWindow_Mac.mm', |
| 196 | '../src/utils/mac/SkTextFieldCell.h', |
| 197 | '../src/utils/mac/SkTextFieldCell.m', |
yangsu@google.com | 901aea5 | 2011-08-02 16:35:00 +0000 | [diff] [blame] | 198 | ], |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame] | 199 | 'libraries': [ |
| 200 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 201 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 202 | ], |
| 203 | 'xcode_settings' : { |
| 204 | 'INFOPLIST_FILE' : '../src/utils/mac/SampleApp-Info.plist', |
| 205 | }, |
| 206 | 'mac_bundle_resources' : [ |
| 207 | '../src/utils/mac/SampleApp.xib', |
yangsu@google.com | 42fd1e9 | 2011-08-08 18:38:58 +0000 | [diff] [blame] | 208 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 209 | }], |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 210 | [ 'skia_os == "ios"', { |
| 211 | # TODO: This doesn't build properly yet, but it's getting there. |
| 212 | 'sources!': [ |
| 213 | '../samplecode/SampleDecode.cpp', |
| 214 | ], |
| 215 | 'sources': [ |
| 216 | '../experimental/iOSSampleApp/SkIOSNotifier.mm', |
| 217 | '../experimental/iOSSampleApp/SkTime_iOS.mm', |
| 218 | '../experimental/iOSSampleApp/SkUIDetailViewController.mm', |
| 219 | '../experimental/iOSSampleApp/SkUIRootViewController.mm', |
| 220 | '../experimental/iOSSampleApp/SkUIView_shell.mm', |
| 221 | |
| 222 | '../experimental/iOSSampleApp/iOSSampleApp_Prefix.pch', |
| 223 | '../experimental/iOSSampleApp/Shared/main.m', |
| 224 | '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', |
| 225 | '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm', |
| 226 | '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', |
| 227 | '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm', |
| 228 | |
| 229 | '../src/utils/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 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 235 | '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig', |
| 236 | '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig', |
| 237 | ], |
| 238 | 'include_dirs' : [ |
| 239 | '../experimental/iOSSampleApp', |
| 240 | '../experimental/iOSSampleApp/iPad', |
| 241 | '../experimental/iOSSampleApp/iPhone', |
| 242 | '../include/utils/ios', |
bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame] | 243 | '../../include/gpu', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 244 | ], |
| 245 | 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', |
| 246 | 'mac_bundle_resources' : [ |
| 247 | '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib', |
| 248 | '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib', |
| 249 | ], |
| 250 | }], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 251 | [ 'skia_os == "android"', { |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 252 | 'sources!': [ |
| 253 | '../samplecode/SampleAnimator.cpp', |
| 254 | '../samplecode/SampleUnitMapper.cpp', |
| 255 | ], |
| 256 | 'dependencies!': [ |
| 257 | 'animator.gyp:animator', |
| 258 | 'experimental.gyp:experimental', |
| 259 | ], |
djsollen@google.com | fad4510 | 2011-11-04 13:00:18 +0000 | [diff] [blame] | 260 | 'dependencies': [ |
| 261 | 'android_system.gyp:sampleApp', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 262 | ], |
| 263 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 264 | ], |
| 265 | 'msvs_settings': { |
| 266 | 'VCLinkerTool': { |
| 267 | 'SubSystem': '2', |
| 268 | 'AdditionalDependencies': [ |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 269 | 'd3d9.lib', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 270 | ], |
| 271 | }, |
| 272 | }, |
| 273 | }, |
| 274 | ], |
| 275 | } |
| 276 | |
| 277 | # Local Variables: |
| 278 | # tab-width:2 |
| 279 | # indent-tabs-mode:nil |
| 280 | # End: |
| 281 | # vim: set expandtab tabstop=2 shiftwidth=2: |