blob: bb5fc8f34e771c489bf99052ad5e0b03b82cb437 [file] [log] [blame]
caryclark@google.com5c83dcc2012-09-26 13:02:37 +00001{
2 'conditions' : [
3 [ 'skia_os != "ios"', {
4 'error': '<!(set GYP_DEFINES=\"skia_os=\'ios\'\")'
5 }],
6 ],
7 'targets': [
8 {
9 'target_name': 'SimpleiOSApp',
10 'type': 'executable',
11 'mac_bundle' : 1,
12 'include_dirs' : [
13 '../experimental/iOSSampleApp/Shared',
commit-bot@chromium.orgae0054e2014-04-05 01:13:43 +000014 '../src/views/mac',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000015 ],
16 'sources': [
17 '../src/views/ios/SkOSWindow_iOS.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000018 '../src/views/mac/SkEventNotifier.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000019 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000020 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000021 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
22 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000023 '../experimental/SimpleiOSApp/SimpleApp.mm',
24 '../experimental/SimpleiOSApp/SimpleiOSApp-Info.plist',
25 ],
26 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000027 'skia_lib.gyp:skia_lib',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000028 'views.gyp:views',
29 'xml.gyp:xml',
30 ],
31 'link_settings': {
32 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000033 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
34 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
35 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
36 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
37 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
38 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000039 ],
40 'libraries!': [
41 #remove mac dependencies
42 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
43 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
44 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
45 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
46 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
47 ],
48 },
49 'xcode_settings' : {
50 'INFOPLIST_FILE' : '../experimental/SimpleiOSApp/SimpleiOSApp-Info.plist',
51 },
52 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
53 'mac_bundle_resources' : [
54 '../experimental/SimpleiOSApp/iPad/MainWindow_iPad.xib',
55 '../experimental/SimpleiOSApp/iPhone/MainWindow_iPhone.xib',
56 ],
57 },
58 ],
59}