2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2013-11-14 19:09:27 +00:00
|
|
|
#
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'SampleApp',
|
|
|
|
'type': 'executable',
|
|
|
|
'include_dirs' : [
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
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
|
2016-02-09 20:44:06 +00:00
|
|
|
'../tools/debugger',
|
2015-08-11 18:07:07 +00:00
|
|
|
'../tools',
|
2015-11-09 15:40:49 +00:00
|
|
|
'../experimental',
|
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': [
|
2014-08-06 17:08:42 +00:00
|
|
|
'../gm/gm.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../samplecode/GMSampleView.h',
|
2015-02-21 17:36:50 +00:00
|
|
|
'../samplecode/GMSampleView.cpp',
|
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',
|
2015-11-05 21:09:08 +00:00
|
|
|
'../samplecode/PerlinPatch.cpp',
|
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',
|
2015-12-09 15:54:24 +00:00
|
|
|
'../samplecode/SampleAnimatedText.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
2015-06-24 17:29:17 +00:00
|
|
|
'../samplecode/SampleAtlas.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',
|
2011-10-10 15:42:36 +00:00
|
|
|
'../samplecode/SampleClip.cpp',
|
2015-01-27 14:17:22 +00:00
|
|
|
'../samplecode/SampleClipDrawMatch.cpp',
|
|
|
|
'../samplecode/SampleClock.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-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',
|
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',
|
2015-01-14 21:16:26 +00:00
|
|
|
'../samplecode/SampleFilterQuality.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',
|
2014-11-26 16:45:36 +00:00
|
|
|
'../samplecode/SampleHT.cpp',
|
2014-08-08 19:11:33 +00:00
|
|
|
'../samplecode/SampleIdentityScale.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleLayerMask.cpp',
|
|
|
|
'../samplecode/SampleLayers.cpp',
|
|
|
|
'../samplecode/SampleLCD.cpp',
|
2015-08-20 12:15:06 +00:00
|
|
|
'../samplecode/SampleLighting.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
2016-01-30 18:11:21 +00:00
|
|
|
'../samplecode/SampleMegaStroke.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SamplePatch.cpp',
|
|
|
|
'../samplecode/SamplePath.cpp',
|
|
|
|
'../samplecode/SamplePathClip.cpp',
|
2015-02-25 17:04:04 +00:00
|
|
|
'../samplecode/SamplePathFuzz.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SamplePathEffects.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',
|
2015-02-18 18:56:00 +00:00
|
|
|
'../samplecode/SampleQuadStroker.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',
|
|
|
|
'../samplecode/SampleShaders.cpp',
|
|
|
|
'../samplecode/SampleShaderText.cpp',
|
2015-10-05 18:05:07 +00:00
|
|
|
'../samplecode/SampleShip.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../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',
|
2015-09-03 02:05:10 +00:00
|
|
|
'../samplecode/SampleXfer.cpp',
|
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
|
|
|
|
2015-11-09 15:40:49 +00:00
|
|
|
# PerlinNoise2
|
|
|
|
'../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.cpp',
|
|
|
|
'../experimental/SkPerlinNoiseShader2/SkPerlinNoiseShader2.h',
|
|
|
|
|
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/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',
|
2016-02-11 18:35:21 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2014-06-18 21:32:48 +00:00
|
|
|
'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',
|
2015-08-11 18:07:07 +00:00
|
|
|
'tools.gyp:timer',
|
2016-02-11 18:35:21 +00:00
|
|
|
'tools.gyp:url_data_manager',
|
2014-06-18 21:32:48 +00:00
|
|
|
'views.gyp:views',
|
|
|
|
'xml.gyp:xml',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2015-10-02 16:12:05 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
#Allows for creation / output to console.
|
|
|
|
#Console (/SUBSYSTEM:CONSOLE)
|
|
|
|
'SubSystem': '1',
|
|
|
|
|
|
|
|
#Console app, use main/wmain
|
|
|
|
'EntryPointSymbol': 'mainCRTStartup',
|
|
|
|
},
|
|
|
|
},
|
2015-08-04 21:08:42 +00:00
|
|
|
'conditions' : [
|
2011-07-01 21:01:32 +00:00
|
|
|
[ 'skia_os == "ios"', {
|
2015-10-02 16:12:05 +00:00
|
|
|
'mac_bundle' : 1,
|
2011-07-01 21:01:32 +00:00
|
|
|
# TODO: This doesn't build properly yet, but it's getting there.
|
|
|
|
'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
|
|
|
|
|
|
|
# iPhone
|
2011-07-01 21:01:32 +00:00
|
|
|
'../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
|
|
|
|
'../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
|
|
|
|
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/ios/SkOSWindow_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',
|
|
|
|
],
|
2015-10-02 16:12:05 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_android_framework == 0', {
|
|
|
|
'dependencies': [
|
|
|
|
'android_deps.gyp:Android_EntryPoint',
|
|
|
|
'skia_launcher.gyp:skia_launcher',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2011-11-03 13:08:29 +00:00
|
|
|
'dependencies!': [
|
|
|
|
'animator.gyp:animator',
|
|
|
|
'experimental.gyp:experimental',
|
|
|
|
],
|
2011-11-04 13:00:18 +00:00
|
|
|
'dependencies': [
|
2015-10-02 16:12:05 +00:00
|
|
|
'android_output.gyp:android_output',
|
2012-12-13 20:07:21 +00:00
|
|
|
'android_deps.gyp:Android_SampleApp',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
}],
|
2015-08-20 12:15:06 +00:00
|
|
|
[ 'skia_os == "chromeos"', {
|
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleLighting.cpp', #doesn't compile due to gpu dependencies
|
2015-07-09 16:04:16 +00:00
|
|
|
],
|
2015-12-09 15:54:24 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../include/gpu',
|
|
|
|
],
|
2015-07-09 16:04:16 +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
|
|
|
],
|
|
|
|
}],
|
2015-08-11 17:30:12 +00:00
|
|
|
[ 'not skia_pdf', {
|
|
|
|
'dependencies!': [ 'pdf.gyp:pdf' ],
|
|
|
|
'dependencies': [ 'pdf.gyp:nopdf' ],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|