scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # 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.com | 9092289 | 2013-11-14 19:09:27 +0000 | [diff] [blame] | 5 | # |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 6 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'targets': [ |
| 8 | { |
| 9 | 'target_name': 'SampleApp', |
| 10 | 'type': 'executable', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 11 | 'include_dirs' : [ |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 12 | '../include/private', |
skia.committer@gmail.com | 4024f32 | 2013-01-25 07:06:46 +0000 | [diff] [blame] | 13 | '../src/core', |
humper@google.com | 7c7292c | 2013-01-04 20:29:03 +0000 | [diff] [blame] | 14 | '../src/effects', #needed for BlurMask.h |
bsalomon@google.com | b805fe5 | 2014-02-26 18:12:11 +0000 | [diff] [blame] | 15 | '../src/gpu', # needed by SkLua.cpp |
bsalomon | 84a4e5a | 2016-02-29 11:41:52 -0800 | [diff] [blame] | 16 | '../src/image', |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 17 | '../src/images', |
| 18 | '../src/lazy', |
caryclark | 64022c1 | 2016-05-27 05:13:26 -0700 | [diff] [blame] | 19 | '../src/pathops', |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 20 | '../gm', # needed to pull gm.h |
yangsu@google.com | 0be0157 | 2011-08-12 16:06:24 +0000 | [diff] [blame] | 21 | '../samplecode', # To pull SampleApp.h and SampleCode.h |
ethannicholas | 3cb9542 | 2016-02-09 12:44:06 -0800 | [diff] [blame] | 22 | '../tools/debugger', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 23 | ], |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 24 | 'includes': [ |
| 25 | 'gmslides.gypi', |
jvanverth | c7027ab | 2016-06-16 09:52:35 -0700 | [diff] [blame] | 26 | 'samples.gypi', |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 27 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 28 | 'sources': [ |
mtklein | a7e930f | 2014-08-06 10:08:42 -0700 | [diff] [blame] | 29 | '../gm/gm.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 30 | '../samplecode/SampleApp.cpp', |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 31 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 32 | ], |
| 33 | 'dependencies': [ |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 34 | 'etc1.gyp:libetc1', |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 35 | 'flags.gyp:flags', |
ethannicholas | f62a8b7 | 2016-02-11 10:35:21 -0800 | [diff] [blame] | 36 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 37 | 'skia_lib.gyp:skia_lib', |
bsalomon | 3724e57 | 2016-03-30 18:56:19 -0700 | [diff] [blame] | 38 | 'gputest.gyp:skgputest', |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 39 | 'tools.gyp:resources', |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 40 | 'tools.gyp:sk_tool_utils', |
jvanverth | 4d0d81a | 2015-08-11 11:07:07 -0700 | [diff] [blame] | 41 | 'tools.gyp:timer', |
ethannicholas | f62a8b7 | 2016-02-11 10:35:21 -0800 | [diff] [blame] | 42 | 'tools.gyp:url_data_manager', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 43 | 'views.gyp:views', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 44 | ], |
jvanverth | 44dcb8a | 2015-10-02 09:12:05 -0700 | [diff] [blame] | 45 | '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 | }, |
halcanary | 9f8754f | 2015-08-04 14:08:42 -0700 | [diff] [blame] | 55 | 'conditions' : [ |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 56 | [ 'skia_os == "ios"', { |
jvanverth | 44dcb8a | 2015-10-02 09:12:05 -0700 | [diff] [blame] | 57 | 'mac_bundle' : 1, |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 58 | # TODO: This doesn't build properly yet, but it's getting there. |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 59 | 'sources': [ |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 60 | '../src/views/mac/SkEventNotifier.mm', |
caryclark@google.com | 5c83dcc | 2012-09-26 13:02:37 +0000 | [diff] [blame] | 61 | '../experimental/iOSSampleApp/SkSampleUIView.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 62 | '../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.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 66 | '../experimental/iOSSampleApp/Shared/SkOptionListController.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 67 | '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 68 | '../experimental/iOSSampleApp/Shared/SkOptionsTableViewController.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 69 | '../experimental/iOSSampleApp/Shared/SkUIView.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 70 | '../experimental/iOSSampleApp/Shared/SkUIDetailViewController.mm', |
| 71 | '../experimental/iOSSampleApp/Shared/skia_ios.mm', |
| 72 | |
| 73 | # iPad |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 74 | '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', |
| 75 | '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 76 | |
| 77 | # iPhone |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 78 | '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', |
| 79 | '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm', |
| 80 | |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 81 | '../src/views/ios/SkOSWindow_iOS.mm', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 82 | |
| 83 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 84 | '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig', |
| 85 | '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig', |
| 86 | ], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 87 | 'link_settings': { |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 88 | 'libraries': [ |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 89 | '$(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.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 98 | ], |
| 99 | }, |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 100 | 'include_dirs' : [ |
| 101 | '../experimental/iOSSampleApp', |
| 102 | '../experimental/iOSSampleApp/iPad', |
| 103 | '../experimental/iOSSampleApp/iPhone', |
commit-bot@chromium.org | ae0054e | 2014-04-05 01:13:43 +0000 | [diff] [blame] | 104 | '../experimental/iOSSampleApp/Shared', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 105 | '../include/utils/ios', |
vjiaoblack | 955e879 | 2016-08-05 07:55:01 -0700 | [diff] [blame] | 106 | '../src/utils', |
commit-bot@chromium.org | ae0054e | 2014-04-05 01:13:43 +0000 | [diff] [blame] | 107 | '../src/views/mac', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 108 | ], |
caryclark@google.com | 5c83dcc | 2012-09-26 13:02:37 +0000 | [diff] [blame] | 109 | 'xcode_settings' : { |
| 110 | 'INFOPLIST_FILE' : '../experimental/iOSSampleApp/iOSSampleApp-Info.plist', |
| 111 | }, |
| 112 | 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 113 | 'mac_bundle_resources' : [ |
| 114 | '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib', |
| 115 | '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib', |
| 116 | ], |
| 117 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 118 | [ 'skia_gpu == 1', { |
commit-bot@chromium.org | 78a1078 | 2013-08-21 19:27:48 +0000 | [diff] [blame] | 119 | 'dependencies': [ |
| 120 | 'gputest.gyp:skgputest', |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 121 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 122 | }], |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 123 | [ 'not skia_pdf', { |
| 124 | 'dependencies!': [ 'pdf.gyp:pdf' ], |
| 125 | 'dependencies': [ 'pdf.gyp:nopdf' ], |
| 126 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 127 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 128 | }, |
| 129 | ], |
| 130 | } |