1{
2  'includes': [
3    'common.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        'ports.gyp:ports',
28        'utils.gyp:utils',
29        'views.gyp:views',
30        'xml.gyp:xml',
31      ],
32      'conditions' : [
33        # Only supports Mac currently
34        ['skia_os == "mac"', {
35          'sources': [
36            '../experimental/SimpleCocoaApp/SkNSWindow.mm',
37            '../experimental/SimpleCocoaApp/SkNSView.mm',
38            '../experimental/FileReaderApp/FileReaderApp-Info.plist',
39            '../experimental/FileReaderApp/FileReaderAppDelegate.mm',
40            '../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
41            '../experimental/FileReaderApp/FileReaderWindow.mm',
42            '../experimental/FileReaderApp/main.m',
43            '../include/utils/mac/SkCGUtils.h',
44            '../src/utils/mac/SkCreateCGImageRef.cpp',
45          ],
46          'link_settings': {
47            'libraries': [
48            '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
49            '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
50            '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
51            '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
52            ],
53            'libraries!': [
54            # Currently skia mac apps rely on Carbon and AGL for UI. Future
55            # apps should use Cocoa instead and dependencies on Carbon and AGL
56            # should eventually be removed
57            '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
58            '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
59            ],
60          },
61          'xcode_settings' : {
62            'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
63          },
64          'mac_bundle_resources' : [
65            '../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
66            '../experimental/FileReaderApp/English.lproj/MainMenu.xib',
67          ],
68        }],
69      ],
70    },
71  ],
72}
73
74# Local Variables:
75# tab-width:2
76# indent-tabs-mode:nil
77# End:
78# vim: set expandtab tabstop=2 shiftwidth=2:
79