blob: 545eff2b282de0a92d54faf6d94954cbcd8df958 [file] [log] [blame]
yangsu@google.com02642762011-06-17 18:31:01 +00001{
yangsu@google.com02642762011-06-17 18:31:01 +00002 'targets': [
3 {
4 'target_name': 'FileReaderApp',
5 'type': 'executable',
6 'mac_bundle' : 1,
7
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': [
21 'core.gyp:core',
22 'effects.gyp:effects',
23 'opts.gyp:opts',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000024 'ports.gyp:ports',
yangsu@google.com02642762011-06-17 18:31:01 +000025 'utils.gyp:utils',
26 '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}
70
71# Local Variables:
72# tab-width:2
73# indent-tabs-mode:nil
74# End:
75# vim: set expandtab tabstop=2 shiftwidth=2: