epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 1 | # target_defaults used for executable targets that generate a console app |
| 2 | { |
| 3 | 'target_defaults': { |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 4 | 'msvs_settings': { |
| 5 | 'VCLinkerTool': { |
| 6 | #Allows for creation / output to console. |
| 7 | #Console (/SUBSYSTEM:CONSOLE) |
| 8 | 'SubSystem': '1', |
| 9 | |
| 10 | #Console app, use main/wmain |
| 11 | 'EntryPointSymbol': 'mainCRTStartup', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 12 | }, |
| 13 | }, |
borenet@google.com | dd3d08e | 2012-06-27 19:04:39 +0000 | [diff] [blame] | 14 | 'conditions': [ |
scroggo | 6cfce1b | 2014-12-10 10:23:04 -0800 | [diff] [blame] | 15 | [ 'skia_os == "android"', { |
| 16 | 'conditions': [ |
| 17 | ['skia_android_framework == 0', { |
| 18 | 'dependencies': [ |
| 19 | 'android_deps.gyp:Android_EntryPoint', |
| 20 | 'skia_launcher.gyp:skia_launcher', |
| 21 | ], |
| 22 | }], |
| 23 | ], |
borenet@google.com | dd3d08e | 2012-06-27 19:04:39 +0000 | [diff] [blame] | 24 | 'dependencies': [ |
scroggo | 6cfce1b | 2014-12-10 10:23:04 -0800 | [diff] [blame] | 25 | 'android_output.gyp:android_output', |
borenet@google.com | dd3d08e | 2012-06-27 19:04:39 +0000 | [diff] [blame] | 26 | ], |
| 27 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 28 | [ 'skia_os == "nacl"', { |
| 29 | 'dependencies': [ |
| 30 | 'nacl.gyp:nacl_interface', |
| 31 | ], |
| 32 | }], |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 33 | ['skia_os == "ios"', { |
| 34 | 'target_conditions': [ |
| 35 | ['_type == "executable"', { |
| 36 | 'mac_bundle' : 1, |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 37 | 'sources': [ |
| 38 | '../src/views/ios/SkOSWindow_iOS.mm', |
| 39 | '../src/views/mac/SkEventNotifier.mm', |
| 40 | '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm', |
| 41 | '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm', |
| 42 | '../experimental/iOSSampleApp/Shared/SkUIView.mm', |
| 43 | '../experimental/iOSSampleApp/Shared/skia_ios.mm', |
| 44 | '../experimental/SimpleiOSApp/SimpleApp.mm', |
| 45 | ], |
| 46 | 'include_dirs' : [ |
| 47 | '../experimental/iOSSampleApp/Shared', |
| 48 | '../include/views', |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 49 | '../include/utils/mac', |
| 50 | '../src/views/mac', |
| 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 | 'xcode_settings' : { |
| 58 | 'INFOPLIST_FILE' : '../experimental/SimpleiOSApp/tool-Info.plist', |
| 59 | }, |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 60 | }], |
| 61 | ], |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 62 | 'dependencies': [ |
| 63 | 'views.gyp:views', |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 64 | ], |
| 65 | 'link_settings': { |
| 66 | 'libraries': [ |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 67 | '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
| 68 | '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
| 69 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 70 | '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
| 71 | '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', |
| 72 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 73 | ], |
| 74 | }, |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 75 | }], |
borenet@google.com | dd3d08e | 2012-06-27 19:04:39 +0000 | [diff] [blame] | 76 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 77 | }, |
| 78 | } |