• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        '../experimental/SimpleCocoaApp/SimpleApp-Info.plist',
16        '../experimental/SimpleCocoaApp/SimpleApp.h',
17        '../experimental/SimpleCocoaApp/SimpleApp.mm',
18
19      ],
20      'dependencies': [
21        'skia_lib.gyp:skia_lib',
22        'views.gyp:views',
23        'xml.gyp:xml',
24      ],
25      'conditions' : [
26        # Only supports Mac currently
27        [ 'skia_os == "mac"', {
28          'sources': [
29            '../include/utils/mac/SkCGUtils.h',
30            '../src/utils/mac/SkCreateCGImageRef.cpp',
31          ],
32          'link_settings': {
33            'libraries': [
34              '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
35            ],
36          },
37          'xcode_settings' : {
38            'INFOPLIST_FILE' : '../experimental/SimpleCocoaApp/SimpleApp-Info.plist',
39          },
40          'mac_bundle_resources' : [
41            '../experimental/SimpleCocoaApp/SimpleApp.xib',
42          ],
43        }],
44      ],
45    },
46  ],
47}
48