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 {
      6   'targets': [
      7     {
      8       'target_name': 'FileReaderApp',
      9       'type': 'executable',
     10       'mac_bundle' : 1,
     11 
     12       'include_dirs' : [
     13         '../experimental/FileReaderApp',
     14         '../experimental/SimpleCocoaApp',
     15       ],
     16       'sources': [
     17         '../experimental/FileReaderApp/ReaderView.cpp',
     18       ],
     19       'sources!': [
     20         '../src/utils/mac/SkOSWindow_Mac.cpp',
     21       ],
     22       'dependencies': [
     23         'skia_lib.gyp:skia_lib',
     24         'views.gyp:views',
     25         'xml.gyp:xml',
     26       ],
     27       'conditions' : [
     28         # Only supports Mac currently
     29         ['skia_os == "mac"', {
     30           'sources': [
     31             '../experimental/SimpleCocoaApp/SkNSWindow.mm',
     32             '../experimental/SimpleCocoaApp/SkNSView.mm',
     33             '../experimental/FileReaderApp/FileReaderApp-Info.plist',
     34             '../experimental/FileReaderApp/FileReaderAppDelegate.mm',
     35             '../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
     36             '../experimental/FileReaderApp/FileReaderWindow.mm',
     37             '../experimental/FileReaderApp/main.m',
     38             '../include/utils/mac/SkCGUtils.h',
     39             '../src/utils/mac/SkCreateCGImageRef.cpp',
     40           ],
     41           'link_settings': {
     42             'libraries': [
     43             '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
     44             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
     45             '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     46             '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
     47             ],
     48             'libraries!': [
     49             # Currently skia mac apps rely on Carbon and AGL for UI. Future
     50             # apps should use Cocoa instead and dependencies on Carbon and AGL
     51             # should eventually be removed
     52             '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
     53             '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
     54             ],
     55           },
     56           'xcode_settings' : {
     57             'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
     58           },
     59           'mac_bundle_resources' : [
     60             '../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
     61             '../experimental/FileReaderApp/English.lproj/MainMenu.xib',
     62           ],
     63         }],
     64       ],
     65     },
     66   ],
     67 }
     68