aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/apptype_console.gypi
blob: d3613b3662e1a6ba539cb6e9b5fe51e70564080a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# target_defaults used for executable targets that generate a console app
{
  'target_defaults': {
    'msvs_settings': {
      'VCLinkerTool': {
        #Allows for creation / output to console.
        #Console (/SUBSYSTEM:CONSOLE)
        'SubSystem': '1',

        #Console app, use main/wmain
        'EntryPointSymbol': 'mainCRTStartup',
      },
    },
    'conditions': [
      [ 'skia_os == "android"', {
        'conditions': [
          ['skia_android_framework == 0', {
            'dependencies': [
              'android_deps.gyp:Android_EntryPoint',
              'skia_launcher.gyp:skia_launcher',
            ],
          }],
        ],
        'dependencies': [
          'android_output.gyp:android_output',
        ],
      }],
      ['skia_os == "ios"', {
        'target_conditions': [
          ['_type == "executable"', {
            'mac_bundle' : 1,
            'sources': [
              '../src/views/ios/SkOSWindow_iOS.mm',
              '../src/views/mac/SkEventNotifier.mm',
              '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
              '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
              '../experimental/iOSSampleApp/Shared/SkUIView.mm',
              '../experimental/iOSSampleApp/Shared/skia_ios.mm',
              '../experimental/SimpleiOSApp/SimpleApp.mm',
            ],
            'include_dirs' : [
              '../experimental/iOSSampleApp/Shared',
              '../include/views',
              '../include/utils/mac',
              '../src/views/mac',
            ],
            'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
            'mac_bundle_resources' : [
              '../experimental/SimpleiOSApp/iPad/MainWindow_iPad.xib',
              '../experimental/SimpleiOSApp/iPhone/MainWindow_iPhone.xib',
            ],
            'xcode_settings' : {
              'INFOPLIST_FILE' : '../experimental/SimpleiOSApp/tool-Info.plist',
            },
          }],
        ],
        'dependencies': [
          'views.gyp:views',
        ],
        'link_settings': {
          'libraries': [
            '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
            '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
            '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
            '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
            '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
            '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
          ],
        },
      }],
    ],
  },
}