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