1 { 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', 14 '../src/views/mac', 15 ], 16 'sources': [ 17 '../src/views/ios/SkOSWindow_iOS.mm', 18 '../src/views/mac/SkEventNotifier.mm', 19 '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', 20 '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', 21 '../experimental/iOSSampleApp/Shared/SkUIView.mm', 22 '../experimental/iOSSampleApp/Shared/skia_ios.mm', 23 '../experimental/SimpleiOSApp/SimpleApp.mm', 24 '../experimental/SimpleiOSApp/SimpleiOSApp-Info.plist', 25 ], 26 'dependencies': [ 27 'skia_lib.gyp:skia_lib', 28 'views.gyp:views', 29 'xml.gyp:xml', 30 ], 31 'link_settings': { 32 'libraries': [ 33 '$(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', 39 ], 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 } 60