yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 1 | { |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 2 | 'targets': [ |
| 3 | { |
| 4 | 'target_name': 'FileReaderApp', |
| 5 | 'type': 'executable', |
| 6 | 'mac_bundle' : 1, |
| 7 | |
| 8 | 'include_dirs' : [ |
| 9 | '../include/pipe', |
| 10 | '../experimental/FileReaderApp', |
| 11 | '../experimental/SimpleCocoaApp', |
| 12 | ], |
| 13 | 'sources': [ |
| 14 | '../experimental/FileReaderApp/ReaderView.cpp', |
| 15 | '../src/pipe/SkGPipeRead.cpp', |
| 16 | ], |
| 17 | 'sources!': [ |
| 18 | '../src/utils/mac/SkOSWindow_Mac.cpp', |
| 19 | ], |
| 20 | 'dependencies': [ |
| 21 | 'core.gyp:core', |
| 22 | 'effects.gyp:effects', |
| 23 | 'opts.gyp:opts', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 24 | 'ports.gyp:ports', |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 25 | 'utils.gyp:utils', |
| 26 | 'views.gyp:views', |
| 27 | 'xml.gyp:xml', |
| 28 | ], |
| 29 | 'conditions' : [ |
| 30 | # Only supports Mac currently |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 31 | ['skia_os == "mac"', { |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 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 | |
| 71 | # Local Variables: |
| 72 | # tab-width:2 |
| 73 | # indent-tabs-mode:nil |
| 74 | # End: |
| 75 | # vim: set expandtab tabstop=2 shiftwidth=2: |