caryclark | 936b734 | 2014-07-11 12:14:51 -0700 | [diff] [blame] | 1 | # |
| 2 | { |
| 3 | 'conditions' : [ |
| 4 | [ 'skia_os == "ios"', { |
| 5 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'iOSShell', |
| 8 | 'type': 'executable', |
| 9 | 'mac_bundle' : 1, |
| 10 | 'includes': [ |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 11 | 'bench.gypi', |
| 12 | 'dm.gypi', |
caryclark | 936b734 | 2014-07-11 12:14:51 -0700 | [diff] [blame] | 13 | ], |
| 14 | 'dependencies': [ |
| 15 | 'tools.gyp:crash_handler', |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 16 | 'tools.gyp:timer', |
caryclark | 936b734 | 2014-07-11 12:14:51 -0700 | [diff] [blame] | 17 | 'views.gyp:views', |
| 18 | 'xml.gyp:xml', |
| 19 | ], |
| 20 | 'sources': [ |
mtklein | e30b52a | 2014-07-31 12:47:37 -0700 | [diff] [blame] | 21 | '../bench/GMBench.cpp', |
mtklein | 9200758 | 2014-08-01 07:46:52 -0700 | [diff] [blame] | 22 | '../bench/SKPBench.cpp', |
mtklein | e30b52a | 2014-07-31 12:47:37 -0700 | [diff] [blame] | 23 | '../bench/nanobench.cpp', |
caryclark | 936b734 | 2014-07-11 12:14:51 -0700 | [diff] [blame] | 24 | '../tests/skia_test.cpp', |
| 25 | '../tools/iOSShell.cpp', |
| 26 | '../src/views/mac/SkEventNotifier.mm', |
| 27 | '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', |
| 28 | '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig', |
| 29 | '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig', |
| 30 | '../experimental/iOSShell/iOSShell-Info.plist', |
| 31 | '../experimental/iOSSampleApp/Shared/SkUIRootViewController.mm', |
| 32 | '../experimental/iOSSampleApp/Shared/SkUIView.mm', |
| 33 | '../experimental/iOSSampleApp/Shared/skia_ios.mm', |
| 34 | |
| 35 | # iPad |
| 36 | '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', |
| 37 | '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm', |
| 38 | '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib', |
| 39 | |
| 40 | # iPhone |
| 41 | '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', |
| 42 | '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm', |
| 43 | '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib', |
| 44 | |
| 45 | '../src/views/ios/SkOSWindow_iOS.mm', |
| 46 | '../src/utils/ios/SkStream_NSData.mm', |
| 47 | '../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', |
| 69 | ], |
| 70 | 'xcode_settings' : { |
| 71 | '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 | } |