2011-07-01 21:01:32 +00:00
|
|
|
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'includes': [
|
2011-07-01 17:16:26 +00:00
|
|
|
'common.gypi',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'SampleApp',
|
|
|
|
'type': 'executable',
|
|
|
|
'mac_bundle' : 1,
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm', # needed to pull gm.h
|
2011-06-17 15:04:40 +00:00
|
|
|
'../include/pipe', # To pull in SkGPipe.h for pipe reader/writer
|
2011-08-12 16:06:24 +00:00
|
|
|
'../samplecode', # To pull SampleApp.h and SampleCode.h
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2011-10-31 14:18:20 +00:00
|
|
|
'includes': [
|
|
|
|
'gmslides.gypi',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources': [
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/gm.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gm/gm.h',
|
|
|
|
|
2011-10-31 14:18:20 +00:00
|
|
|
'../samplecode/GMSampleView.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/ClockFaceView.cpp',
|
|
|
|
'../samplecode/OverView.cpp',
|
2011-07-08 20:12:55 +00:00
|
|
|
'../samplecode/Sample2PtRadial.cpp',
|
2011-10-10 15:42:36 +00:00
|
|
|
'../samplecode/SampleAAClip.cpp',
|
|
|
|
'../samplecode/SampleAAClip2.cpp',
|
2011-08-30 18:13:44 +00:00
|
|
|
'../samplecode/SampleAARects.cpp',
|
2011-10-10 14:08:47 +00:00
|
|
|
'../samplecode/SampleAARectModes.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleAll.cpp',
|
|
|
|
'../samplecode/SampleAnimator.cpp',
|
|
|
|
'../samplecode/SampleApp.cpp',
|
|
|
|
'../samplecode/SampleArc.cpp',
|
|
|
|
'../samplecode/SampleAvoid.cpp',
|
2011-07-15 14:28:16 +00:00
|
|
|
'../samplecode/SampleBigBlur.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleBigGradient.cpp',
|
|
|
|
'../samplecode/SampleBitmapRect.cpp',
|
|
|
|
'../samplecode/SampleBlur.cpp',
|
|
|
|
'../samplecode/SampleCamera.cpp',
|
|
|
|
'../samplecode/SampleCircle.cpp',
|
2011-10-10 15:42:36 +00:00
|
|
|
'../samplecode/SampleClip.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleCode.h',
|
|
|
|
'../samplecode/SampleColorFilter.cpp',
|
|
|
|
'../samplecode/SampleComplexClip.cpp',
|
2011-06-15 17:52:09 +00:00
|
|
|
'../samplecode/SampleConcavePaths.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleCull.cpp',
|
|
|
|
'../samplecode/SampleDecode.cpp',
|
2011-07-07 14:38:03 +00:00
|
|
|
'../samplecode/SampleDegenerateTwoPtRadials.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleDither.cpp',
|
|
|
|
'../samplecode/SampleDitherBitmap.cpp',
|
2011-07-28 13:34:31 +00:00
|
|
|
'../samplecode/SampleDrawBitmap.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleDrawLooper.cpp',
|
|
|
|
'../samplecode/SampleEffects.cpp',
|
|
|
|
'../samplecode/SampleEmboss.cpp',
|
2011-10-05 19:57:55 +00:00
|
|
|
'../samplecode/SampleEmptyPath.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleEncode.cpp',
|
|
|
|
'../samplecode/SampleFillType.cpp',
|
|
|
|
'../samplecode/SampleFilter.cpp',
|
|
|
|
'../samplecode/SampleFilter2.cpp',
|
|
|
|
'../samplecode/SampleFontCache.cpp',
|
|
|
|
'../samplecode/SampleFontScalerTest.cpp',
|
|
|
|
'../samplecode/SampleFuzz.cpp',
|
|
|
|
'../samplecode/SampleGradients.cpp',
|
2011-08-30 18:13:44 +00:00
|
|
|
'../samplecode/SampleHairCurves.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleHairline.cpp',
|
2011-09-19 19:01:38 +00:00
|
|
|
'../samplecode/SampleHairModes.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleImage.cpp',
|
|
|
|
'../samplecode/SampleImageDir.cpp',
|
|
|
|
'../samplecode/SampleLayerMask.cpp',
|
|
|
|
'../samplecode/SampleLayers.cpp',
|
|
|
|
'../samplecode/SampleLCD.cpp',
|
|
|
|
'../samplecode/SampleLineClipper.cpp',
|
|
|
|
'../samplecode/SampleLines.cpp',
|
|
|
|
'../samplecode/SampleMeasure.cpp',
|
|
|
|
'../samplecode/SampleMipMap.cpp',
|
|
|
|
'../samplecode/SampleMovie.cpp',
|
|
|
|
'../samplecode/SampleNinePatch.cpp',
|
|
|
|
'../samplecode/SampleOvalTest.cpp',
|
|
|
|
'../samplecode/SampleOverflow.cpp',
|
|
|
|
'../samplecode/SamplePageFlip.cpp',
|
|
|
|
'../samplecode/SamplePatch.cpp',
|
|
|
|
'../samplecode/SamplePath.cpp',
|
|
|
|
'../samplecode/SamplePathClip.cpp',
|
|
|
|
'../samplecode/SamplePathEffects.cpp',
|
|
|
|
'../samplecode/SamplePicture.cpp',
|
|
|
|
'../samplecode/SamplePoints.cpp',
|
|
|
|
'../samplecode/SamplePolyToPoly.cpp',
|
|
|
|
'../samplecode/SampleRegion.cpp',
|
|
|
|
'../samplecode/SampleRepeatTile.cpp',
|
|
|
|
'../samplecode/SampleShaders.cpp',
|
|
|
|
'../samplecode/SampleShaderText.cpp',
|
|
|
|
'../samplecode/SampleShapes.cpp',
|
|
|
|
'../samplecode/SampleSkLayer.cpp',
|
|
|
|
'../samplecode/SampleSlides.cpp',
|
|
|
|
'../samplecode/SampleStrokePath.cpp',
|
|
|
|
'../samplecode/SampleStrokeText.cpp',
|
|
|
|
'../samplecode/SampleTests.cpp',
|
|
|
|
'../samplecode/SampleText.cpp',
|
|
|
|
'../samplecode/SampleTextAlpha.cpp',
|
|
|
|
'../samplecode/SampleTextBox.cpp',
|
|
|
|
'../samplecode/SampleTextEffects.cpp',
|
|
|
|
'../samplecode/SampleTextOnPath.cpp',
|
|
|
|
'../samplecode/SampleTextureDomain.cpp',
|
|
|
|
'../samplecode/SampleTiling.cpp',
|
|
|
|
'../samplecode/SampleTinyBitmap.cpp',
|
|
|
|
'../samplecode/SampleTriangles.cpp',
|
|
|
|
'../samplecode/SampleTypeface.cpp',
|
|
|
|
'../samplecode/SampleUnitMapper.cpp',
|
|
|
|
'../samplecode/SampleVertices.cpp',
|
|
|
|
'../samplecode/SampleXfermodes.cpp',
|
|
|
|
'../samplecode/SampleXfermodesBlur.cpp',
|
2011-08-08 15:37:23 +00:00
|
|
|
'../samplecode/TransitionView.cpp',
|
2011-06-17 15:04:40 +00:00
|
|
|
|
2011-07-01 21:01:32 +00:00
|
|
|
# Dependencies for the pipe code in SampleApp
|
2011-06-17 15:04:40 +00:00
|
|
|
'../src/pipe/SkGPipeRead.cpp',
|
|
|
|
'../src/pipe/SkGPipeWrite.cpp',
|
2011-08-12 15:04:12 +00:00
|
|
|
|
2011-08-30 14:40:49 +00:00
|
|
|
# DrawingBoard
|
|
|
|
#'../experimental/DrawingBoard/SkColorPalette.h',
|
|
|
|
#'../experimental/DrawingBoard/SkColorPalette.cpp',
|
|
|
|
#'../experimental/DrawingBoard/SkNetPipeController.h',
|
|
|
|
#'../experimental/DrawingBoard/SkNetPipeController.cpp',
|
|
|
|
#'../experimental/DrawingBoard/SampleDrawingClient.cpp',
|
|
|
|
#'../experimental/DrawingBoard/SampleDrawingServer.cpp',
|
|
|
|
|
|
|
|
# Networking
|
|
|
|
#'../experimental/Networking/SampleNetPipeReader.cpp',
|
|
|
|
#'../experimental/Networking/SkSockets.cpp',
|
|
|
|
#'../experimental/Networking/SkSockets.h',
|
|
|
|
|
|
|
|
# Debugger
|
2011-08-12 15:04:12 +00:00
|
|
|
'../experimental/Debugger/DebuggerViews.h',
|
|
|
|
'../experimental/Debugger/DebuggerContentView.cpp',
|
|
|
|
'../experimental/Debugger/DebuggerCommandsView.cpp',
|
|
|
|
'../experimental/Debugger/DebuggerStateView.cpp',
|
|
|
|
'../experimental/Debugger/SkDebugDumper.cpp',
|
|
|
|
'../experimental/Debugger/SkDebugDumper.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
|
|
|
|
'../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h
|
|
|
|
'../samplecode/SampleWarp.cpp',
|
|
|
|
'../samplecode/SampleFontCache.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2011-05-31 19:02:37 +00:00
|
|
|
'core.gyp:core',
|
2011-05-31 13:50:51 +00:00
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
2011-12-14 17:12:04 +00:00
|
|
|
'ports.gyp:ports',
|
2011-05-31 13:50:51 +00:00
|
|
|
'views.gyp:views',
|
|
|
|
'utils.gyp:utils',
|
|
|
|
'animator.gyp:animator',
|
|
|
|
'xml.gyp:xml',
|
|
|
|
'svg.gyp:svg',
|
|
|
|
'experimental.gyp:experimental',
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
'gpu.gyp:skgr',
|
2011-06-21 14:44:57 +00:00
|
|
|
'pdf.gyp:pdf',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'conditions' : [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleDecode.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
# require UNIX functions
|
|
|
|
'../samplecode/SampleEncode.cpp',
|
|
|
|
'../samplecode/SamplePageFlip.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleDecode.cpp',
|
|
|
|
],
|
2011-08-02 16:35:00 +00:00
|
|
|
'sources': [
|
2011-08-30 14:40:49 +00:00
|
|
|
# Sample App specific files
|
|
|
|
'../src/utils/mac/SampleApp-Info.plist',
|
|
|
|
'../src/utils/mac/SampleAppDelegate.h',
|
|
|
|
'../src/utils/mac/SampleAppDelegate.mm',
|
|
|
|
'../src/utils/mac/SkSampleNSView.h',
|
|
|
|
'../src/utils/mac/SkSampleNSView.mm',
|
|
|
|
|
|
|
|
# Mac files
|
|
|
|
'../src/utils/mac/SkEventNotifier.h',
|
|
|
|
'../src/utils/mac/SkEventNotifier.mm',
|
|
|
|
'../src/utils/mac/skia_mac.mm',
|
|
|
|
'../src/utils/mac/SkNSView.h',
|
|
|
|
'../src/utils/mac/SkNSView.mm',
|
|
|
|
'../src/utils/mac/SkOptionsTableView.h',
|
|
|
|
'../src/utils/mac/SkOptionsTableView.mm',
|
|
|
|
'../src/utils/mac/SkOSWindow_Mac.mm',
|
|
|
|
'../src/utils/mac/SkTextFieldCell.h',
|
|
|
|
'../src/utils/mac/SkTextFieldCell.m',
|
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
2011-08-02 16:35:00 +00:00
|
|
|
],
|
2011-08-30 14:40:49 +00:00
|
|
|
'xcode_settings' : {
|
|
|
|
'INFOPLIST_FILE' : '../src/utils/mac/SampleApp-Info.plist',
|
|
|
|
},
|
|
|
|
'mac_bundle_resources' : [
|
|
|
|
'../src/utils/mac/SampleApp.xib',
|
2011-08-08 18:38:58 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
}],
|
2011-07-01 21:01:32 +00:00
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
# TODO: This doesn't build properly yet, but it's getting there.
|
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleDecode.cpp',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../experimental/iOSSampleApp/SkIOSNotifier.mm',
|
|
|
|
'../experimental/iOSSampleApp/SkTime_iOS.mm',
|
|
|
|
'../experimental/iOSSampleApp/SkUIDetailViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/SkUIRootViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/SkUIView_shell.mm',
|
|
|
|
|
|
|
|
'../experimental/iOSSampleApp/iOSSampleApp_Prefix.pch',
|
|
|
|
'../experimental/iOSSampleApp/Shared/main.m',
|
|
|
|
'../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
|
|
|
|
'../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
|
|
|
|
'../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
|
|
|
|
|
|
|
|
'../src/utils/ios/SkOSWindow_iOS.mm',
|
|
|
|
'../src/utils/ios/SkImageDecoder_iOS.mm',
|
|
|
|
'../src/utils/ios/SkStream_NSData.mm',
|
|
|
|
'../src/utils/ios/SkOSFile_iOS.mm',
|
|
|
|
|
|
|
|
'../src/utils/mac/SkCreateCGImageRef.cpp',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
|
|
|
|
],
|
|
|
|
'include_dirs' : [
|
|
|
|
'../experimental/iOSSampleApp',
|
|
|
|
'../experimental/iOSSampleApp/iPad',
|
|
|
|
'../experimental/iOSSampleApp/iPhone',
|
|
|
|
'../include/utils/ios',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../../include/gpu',
|
2011-07-01 21:01:32 +00:00
|
|
|
],
|
|
|
|
'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
|
|
|
|
'mac_bundle_resources' : [
|
|
|
|
'../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
|
|
|
|
'../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
|
|
|
|
],
|
|
|
|
}],
|
2011-11-03 13:08:29 +00:00
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleAnimator.cpp',
|
|
|
|
'../samplecode/SampleUnitMapper.cpp',
|
|
|
|
],
|
|
|
|
'dependencies!': [
|
|
|
|
'animator.gyp:animator',
|
|
|
|
'experimental.gyp:experimental',
|
|
|
|
],
|
2011-11-04 13:00:18 +00:00
|
|
|
'dependencies': [
|
|
|
|
'android_system.gyp:sampleApp',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': '2',
|
|
|
|
'AdditionalDependencies': [
|
2011-07-01 17:16:26 +00:00
|
|
|
'd3d9.lib',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|