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