aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/FileReaderApp.gyp
blob: f0d0bbbe46e98fda627ae22ad37b5bd27812ba48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'targets': [
    {
      'target_name': 'FileReaderApp',
      'type': 'executable',
      'mac_bundle' : 1,

      'include_dirs' : [
        '../include/pipe',
        '../experimental/FileReaderApp',
        '../experimental/SimpleCocoaApp',
      ],
      'sources': [
        '../experimental/FileReaderApp/ReaderView.cpp',
        '../src/pipe/SkGPipeRead.cpp',
      ],
      'sources!': [
        '../src/utils/mac/SkOSWindow_Mac.cpp',
      ],
      'dependencies': [
        'skia_lib.gyp:skia_lib',
        'views.gyp:views',
        'xml.gyp:xml',
      ],
      'conditions' : [
        # Only supports Mac currently
        ['skia_os == "mac"', {
          'sources': [
            '../experimental/SimpleCocoaApp/SkNSWindow.mm',
            '../experimental/SimpleCocoaApp/SkNSView.mm',
            '../experimental/FileReaderApp/FileReaderApp-Info.plist',
            '../experimental/FileReaderApp/FileReaderAppDelegate.mm',
            '../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
            '../experimental/FileReaderApp/FileReaderWindow.mm',
            '../experimental/FileReaderApp/main.m',
            '../include/utils/mac/SkCGUtils.h',
            '../src/utils/mac/SkCreateCGImageRef.cpp',
          ],
          'link_settings': {
            'libraries': [
            '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
            '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
            '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
            '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
            ],
            'libraries!': [
            # Currently skia mac apps rely on Carbon and AGL for UI. Future
            # apps should use Cocoa instead and dependencies on Carbon and AGL
            # should eventually be removed
            '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
            '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
            ],
          },
          'xcode_settings' : {
            'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
          },
          'mac_bundle_resources' : [
            '../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
            '../experimental/FileReaderApp/English.lproj/MainMenu.xib',
          ],
        }],
      ],
    },
  ],
}