blob: ead9fe4f98fd22f0e01f6bb9b46a1867bf9770a2 [file] [log] [blame]
yangsu@google.com5f802c12011-06-17 15:00:44 +00001{
2 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00003 'common.gypi',
yangsu@google.com5f802c12011-06-17 15:00:44 +00004 ],
5 'targets': [
6 {
7 'target_name': 'SimpleCocoaApp',
8 'type': 'executable',
9 'mac_bundle' : 1,
10 'include_dirs' : [
11 '../experimental/SimpleCocoaApp/',
12 ],
13 'sources': [
14 '../experimental/SimpleCocoaApp/main.m',
15 '../experimental/SimpleCocoaApp/SampleWindow.mm',
16 '../experimental/SimpleCocoaApp/SimpleCocoaApp-Info.plist',
17 '../experimental/SimpleCocoaApp/SimpleCocoaApp_Prefix.pch',
18 '../experimental/SimpleCocoaApp/SimpleCocoaAppDelegate.mm',
19 '../experimental/SimpleCocoaApp/SkNSView.mm',
20 '../experimental/SimpleCocoaApp/SkNSWindow.mm',
21 ],
22 'dependencies': [
23 'core.gyp:core',
24 'opts.gyp:opts',
25 '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.com5f802c12011-06-17 15:00:44 +000032 'sources': [
33 '../include/utils/mac/SkCGUtils.h',
34 '../src/utils/mac/SkCreateCGImageRef.cpp',
35 ],
36 'link_settings': {
37 'libraries': [
38 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
39 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
40 ],
41 'libraries!': [
42 # Currently skia mac apps rely on Carbon and AGL for UI. Future
43 # apps should use Cocoa instead and dependencies on Carbon and AGL
44 # should eventually be removed
45 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
46 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
47 ],
48 },
49 'xcode_settings' : {
50 'INFOPLIST_FILE' : '../experimental/SimpleCocoaApp/SimpleCocoaApp-Info.plist',
51 },
52 'mac_bundle_resources' : [
53 '../experimental/SimpleCocoaApp/English.lproj/InfoPlist.strings',
54 '../experimental/SimpleCocoaApp/English.lproj/MainMenu.xib',
55 ],
56 }],
57 ],
58 },
59 ],
60}
61
62# Local Variables:
63# tab-width:2
64# indent-tabs-mode:nil
65# End:
66# vim: set expandtab tabstop=2 shiftwidth=2: