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
|
2016-02-29 19:41:52 +00:00
|
|
|
'../src/image',
|
2013-12-05 18:31:42 +00:00
|
|
|
'../src/images',
|
|
|
|
'../src/lazy',
|
2016-05-27 12:13:26 +00:00
|
|
|
'../src/pathops',
|
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',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2011-10-31 14:18:20 +00:00
|
|
|
'includes': [
|
|
|
|
'gmslides.gypi',
|
2016-06-16 16:52:35 +00:00
|
|
|
'samples.gypi',
|
2011-10-31 14:18:20 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources': [
|
2014-08-06 17:08:42 +00:00
|
|
|
'../gm/gm.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../samplecode/SampleApp.cpp',
|
2012-08-23 18:14:13 +00:00
|
|
|
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2014-06-18 21:32:48 +00:00
|
|
|
'etc1.gyp:libetc1',
|
|
|
|
'flags.gyp:flags',
|
2016-02-11 18:35:21 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2014-06-18 21:32:48 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2016-03-31 01:56:19 +00:00
|
|
|
'gputest.gyp:skgputest',
|
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',
|
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',
|
2016-08-05 14:55:01 +00:00
|
|
|
'../src/utils',
|
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',
|
|
|
|
],
|
|
|
|
}],
|
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
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|