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