blob: 2ada993e445dc3ae1bab7dbc6799dad9fae25f7a [file] [log] [blame]
yangsu@google.com02642762011-06-17 18:31:01 +00001{
2 'includes': [
3 'target_defaults.gypi',
4 ],
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
33 ['OS == "mac"', {
34 '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: