blob: d7a2126bf906b872581eda1876a8b38d2dc06478 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
scroggo@google.com90922892013-11-14 19:09:27 +00005#
epoger@google.comae85aea2011-05-31 13:50:51 +00006{
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'targets': [
8 {
9 'target_name': 'SampleApp',
10 'type': 'executable',
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'include_dirs' : [
mtkleincd1f2da2015-07-28 08:55:14 -070012 '../include/private',
skia.committer@gmail.com4024f322013-01-25 07:06:46 +000013 '../src/core',
humper@google.com7c7292c2013-01-04 20:29:03 +000014 '../src/effects', #needed for BlurMask.h
bsalomon@google.comb805fe52014-02-26 18:12:11 +000015 '../src/gpu', # needed by SkLua.cpp
bsalomon84a4e5a2016-02-29 11:41:52 -080016 '../src/image',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +000017 '../src/images',
18 '../src/lazy',
caryclark64022c12016-05-27 05:13:26 -070019 '../src/pathops',
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000020 '../gm', # needed to pull gm.h
yangsu@google.com0be01572011-08-12 16:06:24 +000021 '../samplecode', # To pull SampleApp.h and SampleCode.h
ethannicholas3cb95422016-02-09 12:44:06 -080022 '../tools/debugger',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 ],
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000024 'includes': [
25 'gmslides.gypi',
jvanverthc7027ab2016-06-16 09:52:35 -070026 'samples.gypi',
bsalomon@google.com48dd1a22011-10-31 14:18:20 +000027 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000028 'sources': [
mtkleina7e930f2014-08-06 10:08:42 -070029 '../gm/gm.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../samplecode/SampleApp.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000031
epoger@google.comae85aea2011-05-31 13:50:51 +000032 ],
33 'dependencies': [
tfarinabcbc1782014-06-18 14:32:48 -070034 'etc1.gyp:libetc1',
tfarinabcbc1782014-06-18 14:32:48 -070035 'flags.gyp:flags',
ethannicholasf62a8b72016-02-11 10:35:21 -080036 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +000037 'skia_lib.gyp:skia_lib',
bsalomon3724e572016-03-30 18:56:19 -070038 'gputest.gyp:skgputest',
mtklein9ac68ee2014-06-20 11:29:20 -070039 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070040 'tools.gyp:sk_tool_utils',
jvanverth4d0d81a2015-08-11 11:07:07 -070041 'tools.gyp:timer',
ethannicholasf62a8b72016-02-11 10:35:21 -080042 'tools.gyp:url_data_manager',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 'views.gyp:views',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 ],
jvanverth44dcb8a2015-10-02 09:12:05 -070045 'msvs_settings': {
46 'VCLinkerTool': {
47 #Allows for creation / output to console.
48 #Console (/SUBSYSTEM:CONSOLE)
49 'SubSystem': '1',
50
51 #Console app, use main/wmain
52 'EntryPointSymbol': 'mainCRTStartup',
53 },
54 },
halcanary9f8754f2015-08-04 14:08:42 -070055 'conditions' : [
epoger@google.comea5dfa82011-07-01 21:01:32 +000056 [ 'skia_os == "ios"', {
jvanverth44dcb8a2015-10-02 09:12:05 -070057 'mac_bundle' : 1,
epoger@google.comea5dfa82011-07-01 21:01:32 +000058 # TODO: This doesn't build properly yet, but it's getting there.
epoger@google.comea5dfa82011-07-01 21:01:32 +000059 'sources': [
caryclark@google.com867cbd82012-09-20 15:45:41 +000060 '../src/views/mac/SkEventNotifier.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000061 '../experimental/iOSSampleApp/SkSampleUIView.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000062 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
63 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
64 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
65 '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
caryclark@google.com867cbd82012-09-20 15:45:41 +000066 '../experimental/iOSSampleApp/Shared/SkOptionListController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000067 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000068 '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000069 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000070 '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm',
71 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
72
73 # iPad
epoger@google.comea5dfa82011-07-01 21:01:32 +000074 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
75 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
caryclark@google.com867cbd82012-09-20 15:45:41 +000076
77 # iPhone
epoger@google.comea5dfa82011-07-01 21:01:32 +000078 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
79 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
80
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000081 '../src/views/ios/SkOSWindow_iOS.mm',
epoger@google.comea5dfa82011-07-01 21:01:32 +000082
83 '../src/utils/mac/SkCreateCGImageRef.cpp',
84 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
85 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
86 ],
caryclark@google.com867cbd82012-09-20 15:45:41 +000087 'link_settings': {
caryclark@google.com867cbd82012-09-20 15:45:41 +000088 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000089 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
90 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
91 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
92 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
93 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
94 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
95 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
96 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
97 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
caryclark@google.com867cbd82012-09-20 15:45:41 +000098 ],
99 },
epoger@google.comea5dfa82011-07-01 21:01:32 +0000100 'include_dirs' : [
101 '../experimental/iOSSampleApp',
102 '../experimental/iOSSampleApp/iPad',
103 '../experimental/iOSSampleApp/iPhone',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +0000104 '../experimental/iOSSampleApp/Shared',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000105 '../include/utils/ios',
vjiaoblack955e8792016-08-05 07:55:01 -0700106 '../src/utils',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +0000107 '../src/views/mac',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000108 ],
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000109 'xcode_settings' : {
110 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist',
111 },
112 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000113 'mac_bundle_resources' : [
114 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
115 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
116 ],
117 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000118 [ 'skia_gpu == 1', {
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000119 'dependencies': [
120 'gputest.gyp:skgputest',
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000121 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000122 }],
halcanary8ee06f22015-08-11 10:30:12 -0700123 [ 'not skia_pdf', {
124 'dependencies!': [ 'pdf.gyp:pdf' ],
125 'dependencies': [ 'pdf.gyp:nopdf' ],
126 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000127 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000128 },
129 ],
130}