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-08-12 16:06:24 +00:00
|
|
|
'../samplecode', # To pull SampleApp.h and SampleCode.h
|
2012-06-08 15:35:03 +00:00
|
|
|
'../src/pipe/utils', # For TiledPipeController
|
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',
|
2012-09-18 01:52:20 +00:00
|
|
|
'../samplecode/OverView.h',
|
2011-07-08 20:12:55 +00:00
|
|
|
'../samplecode/Sample2PtRadial.cpp',
|
2011-10-10 15:42:36 +00:00
|
|
|
'../samplecode/SampleAAClip.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',
|
2012-03-28 14:44:37 +00:00
|
|
|
'../samplecode/SampleAnimBlur.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
|
|
|
'../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',
|
2012-10-22 03:59:34 +00:00
|
|
|
'../samplecode/SampleFatBits.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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/SampleLayerMask.cpp',
|
|
|
|
'../samplecode/SampleLayers.cpp',
|
|
|
|
'../samplecode/SampleLCD.cpp',
|
|
|
|
'../samplecode/SampleLines.cpp',
|
|
|
|
'../samplecode/SampleMeasure.cpp',
|
|
|
|
'../samplecode/SampleMipMap.cpp',
|
|
|
|
'../samplecode/SampleMovie.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',
|
2012-06-04 12:05:43 +00:00
|
|
|
'../samplecode/SamplePictFile.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SamplePoints.cpp',
|
|
|
|
'../samplecode/SamplePolyToPoly.cpp',
|
|
|
|
'../samplecode/SampleRegion.cpp',
|
|
|
|
'../samplecode/SampleRepeatTile.cpp',
|
|
|
|
'../samplecode/SampleShaders.cpp',
|
|
|
|
'../samplecode/SampleShaderText.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/SampleTextOnPath.cpp',
|
|
|
|
'../samplecode/SampleTextureDomain.cpp',
|
|
|
|
'../samplecode/SampleTiling.cpp',
|
|
|
|
'../samplecode/SampleTinyBitmap.cpp',
|
|
|
|
'../samplecode/SampleTriangles.cpp',
|
|
|
|
'../samplecode/SampleTypeface.cpp',
|
|
|
|
'../samplecode/SampleUnitMapper.cpp',
|
|
|
|
'../samplecode/SampleVertices.cpp',
|
|
|
|
'../samplecode/SampleXfermodesBlur.cpp',
|
2011-08-08 15:37:23 +00:00
|
|
|
'../samplecode/TransitionView.cpp',
|
2012-09-14 18:42:01 +00:00
|
|
|
'../samplecode/TransitionView.h',
|
2012-08-23 18:14:13 +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',
|
2012-08-23 18:14:13 +00:00
|
|
|
|
2011-08-30 14:40:49 +00:00
|
|
|
# Networking
|
|
|
|
#'../experimental/Networking/SampleNetPipeReader.cpp',
|
|
|
|
#'../experimental/Networking/SkSockets.cpp',
|
|
|
|
#'../experimental/Networking/SkSockets.h',
|
2012-08-23 18:14:13 +00:00
|
|
|
|
2011-08-30 14:40:49 +00:00
|
|
|
# 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',
|
2012-06-08 15:35:03 +00:00
|
|
|
|
|
|
|
# TiledPipeController
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.h',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
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': [
|
2012-10-10 19:45:51 +00:00
|
|
|
'skia_base_libs.gyp:skia_base_libs',
|
2011-05-31 13:50:51 +00:00
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
'views.gyp:views',
|
|
|
|
'animator.gyp:animator',
|
|
|
|
'xml.gyp:xml',
|
|
|
|
'experimental.gyp:experimental',
|
2011-06-21 14:44:57 +00:00
|
|
|
'pdf.gyp:pdf',
|
2012-03-23 14:11:43 +00:00
|
|
|
'views_animated.gyp:views_animated',
|
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
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/mac/SampleApp-Info.plist',
|
|
|
|
'../src/views/mac/SampleAppDelegate.h',
|
|
|
|
'../src/views/mac/SampleAppDelegate.mm',
|
|
|
|
'../src/views/mac/SkSampleNSView.h',
|
|
|
|
'../src/views/mac/SkSampleNSView.mm',
|
2012-08-23 18:14:13 +00:00
|
|
|
|
2011-08-30 14:40:49 +00:00
|
|
|
# Mac files
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/mac/SkEventNotifier.h',
|
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
|
|
|
'../src/views/mac/skia_mac.mm',
|
|
|
|
'../src/views/mac/SkNSView.h',
|
|
|
|
'../src/views/mac/SkNSView.mm',
|
|
|
|
'../src/views/mac/SkOptionsTableView.h',
|
|
|
|
'../src/views/mac/SkOptionsTableView.mm',
|
|
|
|
'../src/views/mac/SkOSWindow_Mac.mm',
|
|
|
|
'../src/views/mac/SkTextFieldCell.h',
|
|
|
|
'../src/views/mac/SkTextFieldCell.m',
|
2011-08-30 14:40:49 +00:00
|
|
|
],
|
|
|
|
'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' : {
|
2012-03-21 20:59:49 +00:00
|
|
|
'INFOPLIST_FILE' : '../src/views/mac/SampleApp-Info.plist',
|
2011-08-30 14:40:49 +00:00
|
|
|
},
|
|
|
|
'mac_bundle_resources' : [
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/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': [
|
2012-09-20 15:45:41 +00:00
|
|
|
'../src/views/mac/SkEventNotifier.h',
|
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
2012-09-26 13:02:37 +00:00
|
|
|
'../experimental/iOSSampleApp/SkSampleUIView.h',
|
|
|
|
'../experimental/iOSSampleApp/SkSampleUIView.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
|
|
|
|
'../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkOptionListController.h',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkOptionListController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIRootViewController.h',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.h',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIView.h',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIView.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIDetailViewController.h',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/skia_ios.mm',
|
|
|
|
|
|
|
|
# iPad
|
|
|
|
'../experimental/iOSSampleApp/iPad/AppDelegate_iPad.h',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/SkUISplitViewController.h',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
|
|
|
|
|
|
|
|
# iPhone
|
|
|
|
'../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.h',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/SkUINavigationController.h',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
|
2011-07-01 21:01:32 +00:00
|
|
|
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/ios/SkOSWindow_iOS.mm',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../src/utils/ios/SkImageDecoder_iOS.mm',
|
|
|
|
'../src/utils/ios/SkStream_NSData.mm',
|
|
|
|
'../src/utils/ios/SkOSFile_iOS.mm',
|
|
|
|
|
2012-09-20 15:45:41 +00:00
|
|
|
'../include/utils/mac/SkCGUtils.h',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../src/utils/mac/SkCreateCGImageRef.cpp',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
|
|
|
|
'../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
|
|
|
|
],
|
2012-09-20 15:45:41 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
2012-10-04 12:52:03 +00:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
|
2012-09-20 15:45:41 +00:00
|
|
|
],
|
|
|
|
},
|
2011-07-01 21:01:32 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../experimental/iOSSampleApp',
|
|
|
|
'../experimental/iOSSampleApp/iPad',
|
|
|
|
'../experimental/iOSSampleApp/iPhone',
|
|
|
|
'../include/utils/ios',
|
|
|
|
],
|
2012-09-26 13:02:37 +00:00
|
|
|
'xcode_settings' : {
|
|
|
|
'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
|
|
|
|
},
|
|
|
|
'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
|
2011-07-01 21:01:32 +00:00
|
|
|
'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': [
|
2012-06-05 17:57:48 +00:00
|
|
|
'android_system.gyp:SampleAppAndroid',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
}],
|
2012-08-02 14:03:32 +00:00
|
|
|
[ 'skia_gpu == 1', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/gpu', # To pull gl/GrGLUtil.h
|
|
|
|
],
|
|
|
|
}],
|
2012-11-01 17:43:44 +00:00
|
|
|
[ 'skia_os == "nacl"', {
|
|
|
|
'sources': [
|
|
|
|
'../../nacl/src/nacl_sample.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': '2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|