blob: 59d0aa04a2849bc3497785869bef2e8e904e491b [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.
caryclark@google.com5c83dcc2012-09-26 13:02:37 +00005{
6 'conditions' : [
7 [ 'skia_os != "ios"', {
8 'error': '<!(set GYP_DEFINES=\"skia_os=\'ios\'\")'
9 }],
10 ],
11 'targets': [
12 {
13 'target_name': 'SimpleiOSApp',
14 'type': 'executable',
15 'mac_bundle' : 1,
16 'include_dirs' : [
17 '../experimental/iOSSampleApp/Shared',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +000018 '../src/views/mac',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000019 ],
20 'sources': [
21 '../src/views/ios/SkOSWindow_iOS.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000022 '../src/views/mac/SkEventNotifier.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000023 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000024 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000025 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
26 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000027 '../experimental/SimpleiOSApp/SimpleApp.mm',
28 '../experimental/SimpleiOSApp/SimpleiOSApp-Info.plist',
29 ],
30 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000031 'skia_lib.gyp:skia_lib',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000032 'views.gyp:views',
33 'xml.gyp:xml',
34 ],
35 'link_settings': {
36 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000037 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
38 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
39 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
40 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
41 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
42 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000043 ],
44 'libraries!': [
45 #remove mac dependencies
46 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
47 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
48 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
49 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
50 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
51 ],
52 },
53 'xcode_settings' : {
54 'INFOPLIST_FILE' : '../experimental/SimpleiOSApp/SimpleiOSApp-Info.plist',
55 },
56 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
57 'mac_bundle_resources' : [
58 '../experimental/SimpleiOSApp/iPad/MainWindow_iPad.xib',
59 '../experimental/SimpleiOSApp/iPhone/MainWindow_iPhone.xib',
60 ],
61 },
62 ],
63}