Home | History | Annotate | Download | only in gyp
      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.
      5 # target_defaults used for executable targets that generate a console app
      6 {
      7   'target_defaults': {
      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',
     16       },
     17     },
     18     'conditions': [
     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         ],
     28         'dependencies': [
     29           'android_output.gyp:android_output',
     30         ],
     31       }],
     32       ['skia_os == "ios"', {
     33         'target_conditions': [
     34           ['_type == "executable"', {
     35             'mac_bundle' : 1,
     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',
     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             },
     59           }],
     60         ],
     61         'dependencies': [
     62           'views.gyp:views',
     63         ],
     64         'link_settings': {
     65           'libraries': [
     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',
     72           ],
     73         },
     74       }],
     75     ],
     76   },
     77 }
     78