scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 5 | { |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'FileReaderApp', |
| 9 | 'type': 'executable', |
| 10 | 'mac_bundle' : 1, |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 11 | |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 12 | 'include_dirs' : [ |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 13 | '../experimental/FileReaderApp', |
| 14 | '../experimental/SimpleCocoaApp', |
| 15 | ], |
| 16 | 'sources': [ |
| 17 | '../experimental/FileReaderApp/ReaderView.cpp', |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 18 | ], |
| 19 | 'sources!': [ |
| 20 | '../src/utils/mac/SkOSWindow_Mac.cpp', |
| 21 | ], |
| 22 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 23 | 'skia_lib.gyp:skia_lib', |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 24 | 'views.gyp:views', |
| 25 | 'xml.gyp:xml', |
| 26 | ], |
| 27 | 'conditions' : [ |
| 28 | # Only supports Mac currently |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 29 | ['skia_os == "mac"', { |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 30 | 'sources': [ |
| 31 | '../experimental/SimpleCocoaApp/SkNSWindow.mm', |
| 32 | '../experimental/SimpleCocoaApp/SkNSView.mm', |
| 33 | '../experimental/FileReaderApp/FileReaderApp-Info.plist', |
| 34 | '../experimental/FileReaderApp/FileReaderAppDelegate.mm', |
| 35 | '../experimental/FileReaderApp/FileReaderApp_Prefix.pch', |
| 36 | '../experimental/FileReaderApp/FileReaderWindow.mm', |
| 37 | '../experimental/FileReaderApp/main.m', |
| 38 | '../include/utils/mac/SkCGUtils.h', |
| 39 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 40 | ], |
| 41 | 'link_settings': { |
| 42 | 'libraries': [ |
| 43 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 44 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 45 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 46 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 47 | ], |
| 48 | 'libraries!': [ |
| 49 | # Currently skia mac apps rely on Carbon and AGL for UI. Future |
| 50 | # apps should use Cocoa instead and dependencies on Carbon and AGL |
| 51 | # should eventually be removed |
| 52 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 53 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 54 | ], |
| 55 | }, |
| 56 | 'xcode_settings' : { |
| 57 | 'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist', |
| 58 | }, |
| 59 | 'mac_bundle_resources' : [ |
| 60 | '../experimental/FileReaderApp/English.lproj/InfoPlist.strings', |
| 61 | '../experimental/FileReaderApp/English.lproj/MainMenu.xib', |
| 62 | ], |
| 63 | }], |
| 64 | ], |
| 65 | }, |
| 66 | ], |
| 67 | } |