diff options
author | 2011-06-17 15:00:44 +0000 | |
---|---|---|
committer | 2011-06-17 15:00:44 +0000 | |
commit | 5f802c18f21e0f374e68e09d80520bd6d81b40f1 (patch) | |
tree | b20a946de8b7adbbce5a641806fe998c4973237c /gyp | |
parent | 85669f9d77117329f4dbe9d219cc97f4f72b9137 (diff) |
Gyp files for Cocoa Debugger and Simple Cocoa App
http://codereview.appspot.com/4632045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1632 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/CocoaDebuggerApp.gyp | 79 | ||||
-rw-r--r-- | gyp/SimpleCocoaApp.gyp | 66 |
2 files changed, 145 insertions, 0 deletions
diff --git a/gyp/CocoaDebuggerApp.gyp b/gyp/CocoaDebuggerApp.gyp new file mode 100644 index 0000000000..904563c034 --- /dev/null +++ b/gyp/CocoaDebuggerApp.gyp @@ -0,0 +1,79 @@ +{ + 'includes': [ + 'target_defaults.gypi', + ], + 'targets': [ + { + 'target_name': 'CocoaDebuggerApp', + 'type': 'executable', + 'mac_bundle' : 1, + + 'include_dirs' : [ + '../include/pipe', + '../experimental/CocoaDebugger', + '../experimental/SimpleCocoaApp', + ], + 'sources': [ + '../experimental/CocoaDebugger/SkCommandListView.cpp', + '../experimental/CocoaDebugger/SkContentView.cpp', + '../experimental/CocoaDebugger/SkDebugDumper.cpp', + '../experimental/CocoaDebugger/SkDumpCanvasM.cpp', + '../experimental/CocoaDebugger/SkInfoPanelView.cpp', + '../src/pipe/SkGPipeRead.cpp', + ], + 'dependencies': [ + 'core.gyp:core', + 'effects.gyp:effects', + 'opts.gyp:opts', + 'utils.gyp:utils', + 'views.gyp:views', + 'xml.gyp:xml', + ], + 'conditions' : [ + # Only supports Mac currently + ['OS == "mac"', { + 'sources': [ + '../experimental/CocoaDebugger/CocoaDebugger-Info.plist', + '../experimental/CocoaDebugger/CocoaDebugger_Prefix.pch', + '../experimental/CocoaDebugger/CocoaDebuggerAppDelegate.mm', + '../experimental/CocoaDebugger/main.m', + '../experimental/CocoaDebugger/SkDebugger.mm', + '../experimental/CocoaDebugger/SkMenuController.mm', + '../experimental/SimpleCocoaApp/SkNSView.mm', + '../experimental/SimpleCocoaApp/SkNSWindow.mm', + '../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/CocoaDebugger/CocoaDebugger-Info.plist', + }, + 'mac_bundle_resources' : [ + '../experimental/CocoaDebugger/English.lproj/InfoPlist.strings', + '../experimental/CocoaDebugger/English.lproj/MainMenu.xib', + ], + }], + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: diff --git a/gyp/SimpleCocoaApp.gyp b/gyp/SimpleCocoaApp.gyp new file mode 100644 index 0000000000..68caa05f2e --- /dev/null +++ b/gyp/SimpleCocoaApp.gyp @@ -0,0 +1,66 @@ +{ + 'includes': [ + 'target_defaults.gypi', + ], + 'targets': [ + { + 'target_name': 'SimpleCocoaApp', + 'type': 'executable', + 'mac_bundle' : 1, + 'include_dirs' : [ + '../experimental/SimpleCocoaApp/', + ], + 'sources': [ + '../experimental/SimpleCocoaApp/main.m', + '../experimental/SimpleCocoaApp/SampleWindow.mm', + '../experimental/SimpleCocoaApp/SimpleCocoaApp-Info.plist', + '../experimental/SimpleCocoaApp/SimpleCocoaApp_Prefix.pch', + '../experimental/SimpleCocoaApp/SimpleCocoaAppDelegate.mm', + '../experimental/SimpleCocoaApp/SkNSView.mm', + '../experimental/SimpleCocoaApp/SkNSWindow.mm', + ], + 'dependencies': [ + 'core.gyp:core', + 'opts.gyp:opts', + 'utils.gyp:utils', + 'views.gyp:views', + 'xml.gyp:xml', + ], + 'conditions' : [ + # Only supports Mac currently + [ 'OS == "mac"', { + 'sources': [ + '../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', + ], + '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/SimpleCocoaApp/SimpleCocoaApp-Info.plist', + }, + 'mac_bundle_resources' : [ + '../experimental/SimpleCocoaApp/English.lproj/InfoPlist.strings', + '../experimental/SimpleCocoaApp/English.lproj/MainMenu.xib', + ], + }], + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |