2011-06-17 22:31:01 +04:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'FileReaderApp',
|
|
|
|
'type': 'executable',
|
|
|
|
'mac_bundle' : 1,
|
2012-08-23 22:14:13 +04:00
|
|
|
|
2011-06-17 22:31:01 +04:00
|
|
|
'include_dirs' : [
|
|
|
|
'../include/pipe',
|
|
|
|
'../experimental/FileReaderApp',
|
|
|
|
'../experimental/SimpleCocoaApp',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../experimental/FileReaderApp/ReaderView.cpp',
|
|
|
|
'../src/pipe/SkGPipeRead.cpp',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../src/utils/mac/SkOSWindow_Mac.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 16:10:19 +04:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2011-06-17 22:31:01 +04:00
|
|
|
'views.gyp:views',
|
|
|
|
'xml.gyp:xml',
|
|
|
|
],
|
|
|
|
'conditions' : [
|
|
|
|
# Only supports Mac currently
|
2011-07-02 00:20:07 +04:00
|
|
|
['skia_os == "mac"', {
|
2011-06-17 22:31:01 +04:00
|
|
|
'sources': [
|
|
|
|
'../experimental/SimpleCocoaApp/SkNSWindow.mm',
|
|
|
|
'../experimental/SimpleCocoaApp/SkNSView.mm',
|
|
|
|
'../experimental/FileReaderApp/FileReaderApp-Info.plist',
|
|
|
|
'../experimental/FileReaderApp/FileReaderAppDelegate.mm',
|
|
|
|
'../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
|
|
|
|
'../experimental/FileReaderApp/FileReaderWindow.mm',
|
|
|
|
'../experimental/FileReaderApp/main.m',
|
|
|
|
'../include/utils/mac/SkCGUtils.h',
|
|
|
|
'../src/utils/mac/SkCreateCGImageRef.cpp',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
|
|
|
],
|
|
|
|
'libraries!': [
|
|
|
|
# Currently skia mac apps rely on Carbon and AGL for UI. Future
|
|
|
|
# apps should use Cocoa instead and dependencies on Carbon and AGL
|
|
|
|
# should eventually be removed
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AGL.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'xcode_settings' : {
|
|
|
|
'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
|
|
|
|
},
|
|
|
|
'mac_bundle_resources' : [
|
|
|
|
'../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
|
|
|
|
'../experimental/FileReaderApp/English.lproj/MainMenu.xib',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|