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.
5#
6{
7  'conditions' : [
8    [ 'skia_os == "ios"', {
9      'targets': [
10        {
11          'target_name': 'iOSShell',
12          'type': 'executable',
13          'mac_bundle' : 1,
14          'includes': [
15            'bench.gypi',
16            'dm.gypi',
17          ],
18          'dependencies': [
19            'tools.gyp:crash_handler',
20            'tools.gyp:timer',
21            'views.gyp:views',
22            'xml.gyp:xml',
23          ],
24          'sources': [
25            '../bench/CodecBench.cpp',
26            '../bench/DecodingBench.cpp',
27            '../bench/DecodingSubsetBench.cpp',
28            '../bench/GMBench.cpp',
29            '../bench/RecordingBench.cpp',
30            '../bench/SKPBench.cpp',
31            '../bench/SKPAnimationBench.cpp',
32            '../bench/nanobench.cpp',
33            '../tests/skia_test.cpp',
34            '../tools/iOSShell.cpp',
35            '../src/views/mac/SkEventNotifier.mm',
36            '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
37            '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
38            '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
39            '../experimental/iOSShell/iOSShell-Info.plist',
40            '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm',
41            '../experimental/iOSSampleApp/Shared/SkUIView.mm',
42            '../experimental/iOSSampleApp/Shared/skia_ios.mm',
43
44            # iPad
45            '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
46            '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
47            '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
48
49            # iPhone
50            '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
51            '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
52            '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
53
54            '../src/views/ios/SkOSWindow_iOS.mm',
55            '../src/utils/ios/SkStream_NSData.mm',
56            '../src/utils/mac/SkCreateCGImageRef.cpp',
57          ],
58          'link_settings': {
59            'libraries': [
60              '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
61              '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
62              '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
63              '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
64              '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
65              '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
66              '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
67              '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
68              '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
69            ],
70          },
71          'include_dirs' : [
72            '../experimental/iOSSampleApp',
73            '../experimental/iOSSampleApp/iPad',
74            '../experimental/iOSSampleApp/iPhone',
75            '../experimental/iOSSampleApp/Shared',
76            '../include/utils/ios',
77            '../src/views/mac',
78          ],
79          'xcode_settings' : {
80            'INFOPLIST_FILE' : '../experimental/iOSShell/iOSShell-Info.plist',
81          },
82          'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
83          'mac_bundle_resources' : [
84            '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
85            '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
86          ],
87          'conditions' : [
88            [ 'skia_gpu == 1', {
89              'dependencies': [
90                'gputest.gyp:skgputest',
91              ],
92            }],
93          ],
94        },
95      ],
96    }],
97  ]
98}
99