blob: f0d0bbbe46e98fda627ae22ad37b5bd27812ba48 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.com02642762011-06-17 18:31:01 +00005{
yangsu@google.com02642762011-06-17 18:31:01 +00006 'targets': [
7 {
8 'target_name': 'FileReaderApp',
9 'type': 'executable',
10 'mac_bundle' : 1,
rmistry@google.comd6176b02012-08-23 18:14:13 +000011
yangsu@google.com02642762011-06-17 18:31:01 +000012 'include_dirs' : [
13 '../include/pipe',
14 '../experimental/FileReaderApp',
15 '../experimental/SimpleCocoaApp',
16 ],
17 'sources': [
18 '../experimental/FileReaderApp/ReaderView.cpp',
19 '../src/pipe/SkGPipeRead.cpp',
20 ],
21 'sources!': [
22 '../src/utils/mac/SkOSWindow_Mac.cpp',
23 ],
24 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000025 'skia_lib.gyp:skia_lib',
yangsu@google.com02642762011-06-17 18:31:01 +000026 'views.gyp:views',
27 'xml.gyp:xml',
28 ],
29 'conditions' : [
30 # Only supports Mac currently
epoger@google.com8846cb22011-07-01 20:20:07 +000031 ['skia_os == "mac"', {
yangsu@google.com02642762011-06-17 18:31:01 +000032 '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}