blob: 0e2c48f8023d9f9a308803ac42322e3aff863dce [file] [log] [blame]
yangsu@google.com02642762011-06-17 18:31:01 +00001{
2 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00003 'common.gypi',
yangsu@google.com02642762011-06-17 18:31:01 +00004 ],
5 'targets': [
6 {
7 'target_name': 'FileReaderApp',
8 'type': 'executable',
9 'mac_bundle' : 1,
10
11 'include_dirs' : [
12 '../include/pipe',
13 '../experimental/FileReaderApp',
14 '../experimental/SimpleCocoaApp',
15 ],
16 'sources': [
17 '../experimental/FileReaderApp/ReaderView.cpp',
18 '../src/pipe/SkGPipeRead.cpp',
19 ],
20 'sources!': [
21 '../src/utils/mac/SkOSWindow_Mac.cpp',
22 ],
23 'dependencies': [
24 'core.gyp:core',
25 'effects.gyp:effects',
26 'opts.gyp:opts',
27 'utils.gyp:utils',
28 'views.gyp:views',
29 'xml.gyp:xml',
30 ],
31 'conditions' : [
32 # Only supports Mac currently
epoger@google.com8846cb22011-07-01 20:20:07 +000033 ['skia_os == "mac"', {
yangsu@google.com02642762011-06-17 18:31:01 +000034 'sources': [
35 '../experimental/SimpleCocoaApp/SkNSWindow.mm',
36 '../experimental/SimpleCocoaApp/SkNSView.mm',
37 '../experimental/FileReaderApp/FileReaderApp-Info.plist',
38 '../experimental/FileReaderApp/FileReaderAppDelegate.mm',
39 '../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
40 '../experimental/FileReaderApp/FileReaderWindow.mm',
41 '../experimental/FileReaderApp/main.m',
42 '../include/utils/mac/SkCGUtils.h',
43 '../src/utils/mac/SkCreateCGImageRef.cpp',
44 ],
45 'link_settings': {
46 'libraries': [
47 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
48 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
49 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
50 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
51 ],
52 'libraries!': [
53 # Currently skia mac apps rely on Carbon and AGL for UI. Future
54 # apps should use Cocoa instead and dependencies on Carbon and AGL
55 # should eventually be removed
56 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
57 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
58 ],
59 },
60 'xcode_settings' : {
61 'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
62 },
63 'mac_bundle_resources' : [
64 '../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
65 '../experimental/FileReaderApp/English.lproj/MainMenu.xib',
66 ],
67 }],
68 ],
69 },
70 ],
71}
72
73# Local Variables:
74# tab-width:2
75# indent-tabs-mode:nil
76# End:
77# vim: set expandtab tabstop=2 shiftwidth=2: