blob: ac2ed303030f5b75e3b214359ca11fd63863e422 [file] [log] [blame]
caryclark936b7342014-07-11 12:14:51 -07001#
2{
3 'conditions' : [
4 [ 'skia_os == "ios"', {
5 'targets': [
6 {
7 'target_name': 'iOSShell',
8 'type': 'executable',
9 'mac_bundle' : 1,
10 'includes': [
caryclark17f0b6d2014-07-22 10:15:34 -070011 'bench.gypi',
12 'dm.gypi',
caryclark936b7342014-07-11 12:14:51 -070013 ],
14 'dependencies': [
15 'tools.gyp:crash_handler',
caryclark17f0b6d2014-07-22 10:15:34 -070016 'tools.gyp:timer',
caryclark936b7342014-07-11 12:14:51 -070017 'views.gyp:views',
18 'xml.gyp:xml',
19 ],
20 'sources': [
mtkleine30b52a2014-07-31 12:47:37 -070021 '../bench/GMBench.cpp',
mtkleinfd731ce2014-09-10 12:19:30 -070022 '../bench/RecordingBench.cpp',
mtklein92007582014-08-01 07:46:52 -070023 '../bench/SKPBench.cpp',
mtkleine30b52a2014-07-31 12:47:37 -070024 '../bench/nanobench.cpp',
caryclark936b7342014-07-11 12:14:51 -070025 '../tests/skia_test.cpp',
caryclark936b7342014-07-11 12:14:51 -070026 '../tools/iOSShell.cpp',
27 '../src/views/mac/SkEventNotifier.mm',
28 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
29 '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
30 '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
31 '../experimental/iOSShell/iOSShell-Info.plist',
32 '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
33 '../experimental/iOSSampleApp/Shared/SkUIView.mm',
34 '../experimental/iOSSampleApp/Shared/skia_ios.mm',
35
36 # iPad
37 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
38 '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
39 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
40
41 # iPhone
42 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
43 '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
44 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
45
46 '../src/views/ios/SkOSWindow_iOS.mm',
47 '../src/utils/ios/SkStream_NSData.mm',
48 '../src/utils/mac/SkCreateCGImageRef.cpp',
49 ],
50 'link_settings': {
51 'libraries': [
52 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
53 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
54 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
55 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
56 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
57 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
58 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
59 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
60 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
61 ],
62 },
63 'include_dirs' : [
64 '../experimental/iOSSampleApp',
65 '../experimental/iOSSampleApp/iPad',
66 '../experimental/iOSSampleApp/iPhone',
67 '../experimental/iOSSampleApp/Shared',
68 '../include/utils/ios',
69 '../src/views/mac',
caryclark936b7342014-07-11 12:14:51 -070070 ],
71 'xcode_settings' : {
72 'INFOPLIST_FILE' : '../experimental/iOSShell/iOSShell-Info.plist',
73 },
74 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
75 'mac_bundle_resources' : [
76 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
77 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
78 ],
79 'conditions' : [
80 [ 'skia_gpu == 1', {
81 'dependencies': [
82 'gputest.gyp:skgputest',
83 ],
84 }],
85 ],
86 },
87 ],
88 }],
89 ]
90}