2013-11-14 19:09:27 +00:00
|
|
|
#
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
2013-07-11 14:28:04 +00:00
|
|
|
'variables': {
|
2013-08-16 16:13:44 +00:00
|
|
|
#manually set sample_pdf_file_viewer to 1 to have the PdfViewer in SampleApp
|
2013-07-11 14:28:04 +00:00
|
|
|
'sample_pdf_file_viewer%': 0,
|
|
|
|
},
|
2011-05-31 13:50:51 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'SampleApp',
|
|
|
|
'type': 'executable',
|
|
|
|
'mac_bundle' : 1,
|
|
|
|
'include_dirs' : [
|
2013-01-25 07:06:46 +00:00
|
|
|
'../src/core',
|
2013-01-04 20:29:03 +00:00
|
|
|
'../src/effects', #needed for BlurMask.h
|
2014-02-26 18:12:11 +00:00
|
|
|
'../src/gpu', # needed by SkLua.cpp
|
2013-12-05 18:31:42 +00:00
|
|
|
'../src/images',
|
|
|
|
'../src/lazy',
|
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
|
2013-06-13 21:25:45 +00:00
|
|
|
'../src/utils/debugger',
|
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
|
|
|
'../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',
|
2013-02-13 21:22:13 +00:00
|
|
|
'../samplecode/SampleChart.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleCircle.cpp',
|
2013-09-17 19:52:05 +00:00
|
|
|
'../samplecode/SampleClock.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',
|
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',
|
2013-09-19 18:40:49 +00:00
|
|
|
'../samplecode/SampleFilterFuzz.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
2013-05-22 20:12:50 +00:00
|
|
|
'../samplecode/SampleLua.cpp',
|
2013-02-01 14:19:27 +00:00
|
|
|
'../samplecode/SampleManyRects.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleMeasure.cpp',
|
|
|
|
'../samplecode/SampleMipMap.cpp',
|
|
|
|
'../samplecode/SampleMovie.cpp',
|
|
|
|
'../samplecode/SampleOvalTest.cpp',
|
|
|
|
'../samplecode/SamplePatch.cpp',
|
|
|
|
'../samplecode/SamplePath.cpp',
|
|
|
|
'../samplecode/SamplePathClip.cpp',
|
2013-07-01 17:50:29 +00:00
|
|
|
'../samplecode/SamplePathUtils.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
2014-06-02 14:15:18 +00:00
|
|
|
'../samplecode/SampleRectanizer.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleRegion.cpp',
|
|
|
|
'../samplecode/SampleRepeatTile.cpp',
|
2012-12-22 20:54:18 +00:00
|
|
|
'../samplecode/SampleRotateCircles.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleShaders.cpp',
|
|
|
|
'../samplecode/SampleShaderText.cpp',
|
|
|
|
'../samplecode/SampleSkLayer.cpp',
|
|
|
|
'../samplecode/SampleSlides.cpp',
|
2013-09-19 15:32:22 +00:00
|
|
|
'../samplecode/SampleStringArt.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleStrokePath.cpp',
|
2014-05-29 22:01:08 +00:00
|
|
|
'../samplecode/SampleSubpixelTranslate.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleText.cpp',
|
|
|
|
'../samplecode/SampleTextAlpha.cpp',
|
|
|
|
'../samplecode/SampleTextBox.cpp',
|
|
|
|
'../samplecode/SampleTextOnPath.cpp',
|
|
|
|
'../samplecode/SampleTextureDomain.cpp',
|
|
|
|
'../samplecode/SampleTiling.cpp',
|
|
|
|
'../samplecode/SampleTinyBitmap.cpp',
|
2013-06-14 15:33:20 +00:00
|
|
|
'../samplecode/SampleUnpremul.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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
|
|
|
|
2012-06-08 15:35:03 +00:00
|
|
|
# TiledPipeController
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.h',
|
|
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
2013-05-22 20:12:50 +00:00
|
|
|
|
|
|
|
# Lua
|
|
|
|
'../src/utils/SkLuaCanvas.cpp',
|
|
|
|
'../src/utils/SkLua.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
|
|
|
|
'../samplecode/SampleWarp.cpp',
|
|
|
|
'../samplecode/SampleFontCache.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'animator.gyp:animator',
|
2014-06-18 21:32:48 +00:00
|
|
|
'etc1.gyp:libetc1',
|
2011-05-31 13:50:51 +00:00
|
|
|
'experimental.gyp:experimental',
|
2014-06-18 21:32:48 +00:00
|
|
|
'flags.gyp:flags',
|
|
|
|
'lua.gyp:lua',
|
2011-06-21 14:44:57 +00:00
|
|
|
'pdf.gyp:pdf',
|
2014-06-18 21:32:48 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2014-06-20 18:29:20 +00:00
|
|
|
'tools.gyp:resources',
|
2014-06-21 17:54:17 +00:00
|
|
|
'tools.gyp:sk_tool_utils',
|
2014-06-18 21:32:48 +00:00
|
|
|
'views.gyp:views',
|
2012-03-23 14:11:43 +00:00
|
|
|
'views_animated.gyp:views_animated',
|
2014-06-18 21:32:48 +00:00
|
|
|
'xml.gyp:xml',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2013-07-11 14:28:04 +00:00
|
|
|
'conditions' : [
|
|
|
|
[ 'sample_pdf_file_viewer == 1', {
|
|
|
|
'defines': [
|
|
|
|
'SAMPLE_PDF_FILE_VIEWER',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-08-16 17:01:24 +00:00
|
|
|
'pdfviewer_lib.gyp:pdfviewer_lib',
|
2013-07-11 14:28:04 +00:00
|
|
|
],
|
|
|
|
'include_dirs' : [
|
2013-11-14 19:09:27 +00:00
|
|
|
'../experimental/PdfViewer/inc',
|
2013-07-11 14:28:04 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../samplecode/SamplePdfFileViewer.cpp',
|
|
|
|
]
|
2013-07-12 07:01:14 +00:00
|
|
|
}],
|
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',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
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',
|
2014-07-18 17:58:56 +00:00
|
|
|
'../experimental/SimpleiOSApp/SimpleApp.mm',
|
2011-07-01 21:01:32 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2012-09-20 15:45:41 +00:00
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
2012-09-26 13:02:37 +00:00
|
|
|
'../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.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIView.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
|
|
|
|
'../experimental/iOSSampleApp/Shared/skia_ios.mm',
|
|
|
|
|
|
|
|
# iPad
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
|
|
|
|
'../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
|
|
|
|
|
|
|
|
# iPhone
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
|
|
|
|
'../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/SkStream_NSData.mm',
|
2014-06-11 20:59:22 +00:00
|
|
|
# Not fully implemented yet
|
|
|
|
# '../src/utils/ios/SkOSFile_iOS.mm',
|
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',
|
2014-04-05 01:13:43 +00:00
|
|
|
'../experimental/iOSSampleApp/Shared',
|
2011-07-01 21:01:32 +00:00
|
|
|
'../include/utils/ios',
|
2014-04-05 01:13:43 +00:00
|
|
|
'../src/views/mac',
|
2011-07-01 21:01:32 +00:00
|
|
|
],
|
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',
|
|
|
|
],
|
|
|
|
'dependencies!': [
|
|
|
|
'animator.gyp:animator',
|
|
|
|
'experimental.gyp:experimental',
|
|
|
|
],
|
2011-11-04 13:00:18 +00:00
|
|
|
'dependencies': [
|
2012-12-13 20:07:21 +00:00
|
|
|
'android_deps.gyp:Android_SampleApp',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
}],
|
2012-08-02 14:03:32 +00:00
|
|
|
[ 'skia_gpu == 1', {
|
2013-08-21 19:27:48 +00:00
|
|
|
'dependencies': [
|
|
|
|
'gputest.gyp:skgputest',
|
2012-08-02 14:03:32 +00:00
|
|
|
],
|
|
|
|
}],
|
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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|