7c554222dd
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1568883003 Review URL: https://codereview.chromium.org/1568883003
68 lines
2.4 KiB
Python
68 lines
2.4 KiB
Python
# 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' : [
|
|
'../experimental/FileReaderApp',
|
|
'../experimental/SimpleCocoaApp',
|
|
],
|
|
'sources': [
|
|
'../experimental/FileReaderApp/ReaderView.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',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
}
|