yangsu@google.com | 5f802c1 | 2011-06-17 15:00:44 +0000 | [diff] [blame^] | 1 | { |
| 2 | 'includes': [ |
| 3 | 'target_defaults.gypi', |
| 4 | ], |
| 5 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'SimpleCocoaApp', |
| 8 | 'type': 'executable', |
| 9 | 'mac_bundle' : 1, |
| 10 | 'include_dirs' : [ |
| 11 | '../experimental/SimpleCocoaApp/', |
| 12 | ], |
| 13 | 'sources': [ |
| 14 | '../experimental/SimpleCocoaApp/main.m', |
| 15 | '../experimental/SimpleCocoaApp/SampleWindow.mm', |
| 16 | '../experimental/SimpleCocoaApp/SimpleCocoaApp-Info.plist', |
| 17 | '../experimental/SimpleCocoaApp/SimpleCocoaApp_Prefix.pch', |
| 18 | '../experimental/SimpleCocoaApp/SimpleCocoaAppDelegate.mm', |
| 19 | '../experimental/SimpleCocoaApp/SkNSView.mm', |
| 20 | '../experimental/SimpleCocoaApp/SkNSWindow.mm', |
| 21 | ], |
| 22 | 'dependencies': [ |
| 23 | 'core.gyp:core', |
| 24 | 'opts.gyp:opts', |
| 25 | 'utils.gyp:utils', |
| 26 | 'views.gyp:views', |
| 27 | 'xml.gyp:xml', |
| 28 | ], |
| 29 | 'conditions' : [ |
| 30 | # Only supports Mac currently |
| 31 | [ 'OS == "mac"', { |
| 32 | 'sources': [ |
| 33 | '../include/utils/mac/SkCGUtils.h', |
| 34 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 35 | ], |
| 36 | 'link_settings': { |
| 37 | 'libraries': [ |
| 38 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 39 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 40 | ], |
| 41 | 'libraries!': [ |
| 42 | # Currently skia mac apps rely on Carbon and AGL for UI. Future |
| 43 | # apps should use Cocoa instead and dependencies on Carbon and AGL |
| 44 | # should eventually be removed |
| 45 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 46 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 47 | ], |
| 48 | }, |
| 49 | 'xcode_settings' : { |
| 50 | 'INFOPLIST_FILE' : '../experimental/SimpleCocoaApp/SimpleCocoaApp-Info.plist', |
| 51 | }, |
| 52 | 'mac_bundle_resources' : [ |
| 53 | '../experimental/SimpleCocoaApp/English.lproj/InfoPlist.strings', |
| 54 | '../experimental/SimpleCocoaApp/English.lproj/MainMenu.xib', |
| 55 | ], |
| 56 | }], |
| 57 | ], |
| 58 | }, |
| 59 | ], |
| 60 | } |
| 61 | |
| 62 | # Local Variables: |
| 63 | # tab-width:2 |
| 64 | # indent-tabs-mode:nil |
| 65 | # End: |
| 66 | # vim: set expandtab tabstop=2 shiftwidth=2: |