blob: 3f3acdc103d34ba01e24dabd2bedf820979f15cd [file] [log] [blame]
stephanadeee2982015-05-05 07:55:06 -07001 # Copyright 2015 Google Inc.
scroggo3e562272015-03-25 10:22:41 -07002#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
caryclark936b7342014-07-11 12:14:51 -07005#
6{
7 'conditions' : [
8 [ 'skia_os == "ios"', {
9 'targets': [
10 {
11 'target_name': 'iOSShell',
12 'type': 'executable',
13 'mac_bundle' : 1,
14 'includes': [
caryclark17f0b6d2014-07-22 10:15:34 -070015 'bench.gypi',
16 'dm.gypi',
caryclark936b7342014-07-11 12:14:51 -070017 ],
18 'dependencies': [
19 'tools.gyp:crash_handler',
caryclark17f0b6d2014-07-22 10:15:34 -070020 'tools.gyp:timer',
caryclark936b7342014-07-11 12:14:51 -070021 'views.gyp:views',
22 'xml.gyp:xml',
23 ],
24 'sources': [
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',
caryclark936b7342014-07-11 12:14:51 -070047 '../src/utils/mac/SkCreateCGImageRef.cpp',
48 ],
49 'link_settings': {
50 'libraries': [
51 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
52 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
53 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
54 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
55 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
56 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
57 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
58 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
59 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
60 ],
61 },
62 'include_dirs' : [
63 '../experimental/iOSSampleApp',
64 '../experimental/iOSSampleApp/iPad',
65 '../experimental/iOSSampleApp/iPhone',
66 '../experimental/iOSSampleApp/Shared',
67 '../include/utils/ios',
68 '../src/views/mac',
caryclark936b7342014-07-11 12:14:51 -070069 ],
70 'xcode_settings' : {
caryclark936b7342014-07-11 12:14:51 -070071 'INFOPLIST_FILE' : '../experimental/iOSShell/iOSShell-Info.plist',
72 },
73 'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
74 'mac_bundle_resources' : [
75 '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
76 '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
77 ],
78 'conditions' : [
79 [ 'skia_gpu == 1', {
80 'dependencies': [
81 'gputest.gyp:skgputest',
82 ],
83 }],
84 ],
85 },
86 ],
87 }],
88 ]
89}