blob: d3613b3662e1a6ba539cb6e9b5fe51e70564080a [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.comccdbd2c2011-06-02 14:38:23 +00005# target_defaults used for executable targets that generate a console app
6{
7 'target_defaults': {
epoger@google.comccdbd2c2011-06-02 14:38:23 +00008 '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.comccdbd2c2011-06-02 14:38:23 +000016 },
17 },
borenet@google.comdd3d08e2012-06-27 19:04:39 +000018 'conditions': [
scroggo6cfce1b2014-12-10 10:23:04 -080019 [ '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.comdd3d08e2012-06-27 19:04:39 +000028 'dependencies': [
scroggo6cfce1b2014-12-10 10:23:04 -080029 'android_output.gyp:android_output',
borenet@google.comdd3d08e2012-06-27 19:04:39 +000030 ],
31 }],
caryclark@google.com5987f582012-10-02 18:33:14 +000032 ['skia_os == "ios"', {
33 'target_conditions': [
34 ['_type == "executable"', {
35 'mac_bundle' : 1,
halcanary0d154ee2014-08-11 11:33:51 -070036 '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',
halcanary0d154ee2014-08-11 11:33:51 -070048 '../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.com5987f582012-10-02 18:33:14 +000059 }],
60 ],
caryclark@google.com5987f582012-10-02 18:33:14 +000061 'dependencies': [
62 'views.gyp:views',
caryclark@google.com5987f582012-10-02 18:33:14 +000063 ],
64 'link_settings': {
65 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000066 '$(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.com5987f582012-10-02 18:33:14 +000072 ],
73 },
caryclark@google.com5987f582012-10-02 18:33:14 +000074 }],
borenet@google.comdd3d08e2012-06-27 19:04:39 +000075 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000076 },
77}