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