skia2/gyp/FileReaderApp.gyp
epoger@google.com aa3b6a965e Make all gyp targets automatically include common.gypi
Do this, rather than including common.gypi explicitly in all our gyp files, so that gyp files we use but do not maintain (e.g., third_party/externals/libjpeg/libjpeg.gyp) will include common.gypi too.
Review URL: https://codereview.appspot.com/5820068

git-svn-id: http://skia.googlecode.com/svn/trunk@3411 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-16 13:52:49 +00:00

76 lines
2.5 KiB
Python

{
'targets': [
{
'target_name': 'FileReaderApp',
'type': 'executable',
'mac_bundle' : 1,
'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': [
'core.gyp:core',
'effects.gyp:effects',
'opts.gyp:opts',
'ports.gyp:ports',
'utils.gyp:utils',
'views.gyp:views',
'xml.gyp:xml',
],
'conditions' : [
# Only supports Mac currently
['skia_os == "mac"', {
'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',
],
}],
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: