1# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5{
6  'targets': [
7    {
8      'target_name': 'SimpleCocoaApp',
9      'type': 'executable',
10      'mac_bundle' : 1,
11      'include_dirs' : [
12        '../experimental/SimpleCocoaApp/',
13      ],
14      'sources': [
15        '../src/views/mac/SkEventNotifier.h',
16        '../src/views/mac/SkEventNotifier.mm',
17        '../src/views/mac/skia_mac.mm',
18        '../src/views/mac/SkNSView.h',
19        '../src/views/mac/SkNSView.mm',
20        '../src/views/mac/SkOptionsTableView.h',
21        '../src/views/mac/SkOptionsTableView.mm',
22        '../src/views/mac/SkOSWindow_Mac.mm',
23        '../src/views/mac/SkTextFieldCell.h',
24        '../src/views/mac/SkTextFieldCell.m',
25
26        '../experimental/SimpleCocoaApp/SimpleApp-Info.plist',
27        '../experimental/SimpleCocoaApp/SimpleApp.h',
28        '../experimental/SimpleCocoaApp/SimpleApp.mm',
29
30      ],
31      'dependencies': [
32        'skia_lib.gyp:skia_lib',
33        'views.gyp:views',
34        'xml.gyp:xml',
35      ],
36      'conditions' : [
37        # Only supports Mac currently
38        [ 'skia_os == "mac"', {
39          'sources': [
40            '../include/utils/mac/SkCGUtils.h',
41            '../src/utils/mac/SkCreateCGImageRef.cpp',
42          ],
43          'link_settings': {
44            'libraries': [
45              '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
46            ],
47          },
48          'xcode_settings' : {
49            'INFOPLIST_FILE' : '../experimental/SimpleCocoaApp/SimpleApp-Info.plist',
50          },
51          'mac_bundle_resources' : [
52            '../experimental/SimpleCocoaApp/SimpleApp.xib',
53          ],
54        }],
55      ],
56    },
57  ],
58}
59