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, |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 7 | |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 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': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 21 | 'skia_lib.gyp:skia_lib', |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 22 | 'views.gyp:views', |
| 23 | 'xml.gyp:xml', |
| 24 | ], |
| 25 | 'conditions' : [ |
| 26 | # Only supports Mac currently |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 27 | ['skia_os == "mac"', { |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 28 | 'sources': [ |
| 29 | '../experimental/SimpleCocoaApp/SkNSWindow.mm', |
| 30 | '../experimental/SimpleCocoaApp/SkNSView.mm', |
| 31 | '../experimental/FileReaderApp/FileReaderApp-Info.plist', |
| 32 | '../experimental/FileReaderApp/FileReaderAppDelegate.mm', |
| 33 | '../experimental/FileReaderApp/FileReaderApp_Prefix.pch', |
| 34 | '../experimental/FileReaderApp/FileReaderWindow.mm', |
| 35 | '../experimental/FileReaderApp/main.m', |
| 36 | '../include/utils/mac/SkCGUtils.h', |
| 37 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 38 | ], |
| 39 | 'link_settings': { |
| 40 | 'libraries': [ |
| 41 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 42 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 43 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 44 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 45 | ], |
| 46 | 'libraries!': [ |
| 47 | # Currently skia mac apps rely on Carbon and AGL for UI. Future |
| 48 | # apps should use Cocoa instead and dependencies on Carbon and AGL |
| 49 | # should eventually be removed |
| 50 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 51 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 52 | ], |
| 53 | }, |
| 54 | 'xcode_settings' : { |
| 55 | 'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist', |
| 56 | }, |
| 57 | 'mac_bundle_resources' : [ |
| 58 | '../experimental/FileReaderApp/English.lproj/InfoPlist.strings', |
| 59 | '../experimental/FileReaderApp/English.lproj/MainMenu.xib', |
| 60 | ], |
| 61 | }], |
| 62 | ], |
| 63 | }, |
| 64 | ], |
| 65 | } |