blob: 36c9eae4622081e52e14d1af460dce43be7e0700 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.
yangsu@google.com02642762011-06-17 18:31:01 +00005{
yangsu@google.com02642762011-06-17 18:31:01 +00006 'targets': [
7 {
8 'target_name': 'FileReaderApp',
9 'type': 'executable',
10 'mac_bundle' : 1,
rmistry@google.comd6176b02012-08-23 18:14:13 +000011
yangsu@google.com02642762011-06-17 18:31:01 +000012 'include_dirs' : [
yangsu@google.com02642762011-06-17 18:31:01 +000013 '../experimental/FileReaderApp',
14 '../experimental/SimpleCocoaApp',
15 ],
16 'sources': [
17 '../experimental/FileReaderApp/ReaderView.cpp',
yangsu@google.com02642762011-06-17 18:31:01 +000018 ],
19 'sources!': [
20 '../src/utils/mac/SkOSWindow_Mac.cpp',
21 ],
22 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000023 'skia_lib.gyp:skia_lib',
yangsu@google.com02642762011-06-17 18:31:01 +000024 'views.gyp:views',
25 'xml.gyp:xml',
26 ],
27 'conditions' : [
28 # Only supports Mac currently
epoger@google.com8846cb22011-07-01 20:20:07 +000029 ['skia_os == "mac"', {
yangsu@google.com02642762011-06-17 18:31:01 +000030 'sources': [
31 '../experimental/SimpleCocoaApp/SkNSWindow.mm',
32 '../experimental/SimpleCocoaApp/SkNSView.mm',
33 '../experimental/FileReaderApp/FileReaderApp-Info.plist',
34 '../experimental/FileReaderApp/FileReaderAppDelegate.mm',
35 '../experimental/FileReaderApp/FileReaderApp_Prefix.pch',
36 '../experimental/FileReaderApp/FileReaderWindow.mm',
37 '../experimental/FileReaderApp/main.m',
38 '../include/utils/mac/SkCGUtils.h',
39 '../src/utils/mac/SkCreateCGImageRef.cpp',
40 ],
41 'link_settings': {
42 'libraries': [
43 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
44 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
45 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
46 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
47 ],
48 'libraries!': [
49 # Currently skia mac apps rely on Carbon and AGL for UI. Future
50 # apps should use Cocoa instead and dependencies on Carbon and AGL
51 # should eventually be removed
52 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
53 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
54 ],
55 },
56 'xcode_settings' : {
57 'INFOPLIST_FILE' : '../experimental/FileReaderApp/FileReaderApp-Info.plist',
58 },
59 'mac_bundle_resources' : [
60 '../experimental/FileReaderApp/English.lproj/InfoPlist.strings',
61 '../experimental/FileReaderApp/English.lproj/MainMenu.xib',
62 ],
63 }],
64 ],
65 },
66 ],
67}