2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2012-09-27 13:44:57 +00:00
|
|
|
# Views is the Skia windowing toolkit.
|
|
|
|
# It provides:
|
|
|
|
# * A portable means of creating native windows.
|
|
|
|
# * Events.
|
|
|
|
# * Basic widgets and controls.
|
2012-03-23 14:11:43 +00:00
|
|
|
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'views',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_views',
|
2011-05-31 13:50:51 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2013-07-22 14:39:45 +00:00
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
2014-11-14 13:52:50 +00:00
|
|
|
'xml.gyp:xml',
|
2013-07-22 14:39:45 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
2015-09-29 16:37:59 +00:00
|
|
|
'../include/private',
|
2013-02-22 21:38:35 +00:00
|
|
|
'../include/views',
|
2012-03-21 20:59:49 +00:00
|
|
|
'../include/views/unix',
|
2016-02-23 15:34:25 +00:00
|
|
|
'../src/core',
|
2015-02-23 16:57:23 +00:00
|
|
|
'../src/gpu',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../include/views/SkApplication.h',
|
|
|
|
'../include/views/SkEvent.h',
|
|
|
|
'../include/views/SkEventSink.h',
|
|
|
|
'../include/views/SkKey.h',
|
|
|
|
'../include/views/SkOSMenu.h',
|
|
|
|
'../include/views/SkOSWindow_Mac.h',
|
|
|
|
'../include/views/SkOSWindow_SDL.h',
|
|
|
|
'../include/views/SkOSWindow_Unix.h',
|
|
|
|
'../include/views/SkOSWindow_Win.h',
|
|
|
|
'../include/views/SkSystemEventTypes.h',
|
|
|
|
'../include/views/SkTouchGesture.h',
|
|
|
|
'../include/views/SkView.h',
|
|
|
|
'../include/views/SkWindow.h',
|
|
|
|
|
|
|
|
'../src/views/SkEvent.cpp',
|
|
|
|
'../src/views/SkEventSink.cpp',
|
|
|
|
'../src/views/SkOSMenu.cpp',
|
|
|
|
'../src/views/SkTagList.cpp',
|
|
|
|
'../src/views/SkTagList.h',
|
|
|
|
'../src/views/SkTouchGesture.cpp',
|
|
|
|
'../src/views/SkView.cpp',
|
|
|
|
'../src/views/SkViewPriv.cpp',
|
|
|
|
'../src/views/SkViewPriv.h',
|
|
|
|
'../src/views/SkWindow.cpp',
|
2015-11-04 21:41:02 +00:00
|
|
|
|
|
|
|
# Unix
|
|
|
|
'../src/views/unix/SkOSWindow_Unix.cpp',
|
|
|
|
'../src/views/unix/keysym2ucs.c',
|
|
|
|
'../src/views/unix/skia_unix.cpp',
|
2012-03-21 20:59:49 +00:00
|
|
|
|
2012-09-27 13:44:57 +00:00
|
|
|
# Mac
|
2015-06-18 18:49:42 +00:00
|
|
|
'../src/views/mac/SkEventNotifier.h',
|
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
|
|
|
'../src/views/mac/SkTextFieldCell.h',
|
|
|
|
'../src/views/mac/SkTextFieldCell.m',
|
|
|
|
'../src/views/mac/SkNSView.h',
|
|
|
|
'../src/views/mac/SkNSView.mm',
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/mac/SkOSWindow_Mac.mm',
|
|
|
|
'../src/views/mac/skia_mac.mm',
|
|
|
|
|
2012-09-27 13:44:57 +00:00
|
|
|
# Windows
|
2012-03-21 20:59:49 +00:00
|
|
|
'../src/views/win/SkOSWindow_win.cpp',
|
|
|
|
'../src/views/win/skia_win.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2015-01-30 20:37:02 +00:00
|
|
|
[ 'skia_gpu == 1', {
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
}],
|
2015-11-09 20:30:05 +00:00
|
|
|
[ 'skia_os == "mac" and skia_use_sdl == 0', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
2015-06-18 18:49:42 +00:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
2011-08-30 14:40:49 +00:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
2012-03-21 20:59:49 +00:00
|
|
|
},{
|
|
|
|
'sources!': [
|
2015-06-18 18:49:42 +00:00
|
|
|
'../src/views/mac/SkEventNotifier.h',
|
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
|
|
|
'../src/views/mac/SkTextFieldCell.h',
|
|
|
|
'../src/views/mac/SkTextFieldCell.m',
|
|
|
|
'../src/views/mac/SkNSView.h',
|
|
|
|
'../src/views/mac/SkNSView.mm',
|
|
|
|
'../src/views/mac/SkOSWindow_Mac.mm',
|
|
|
|
'../src/views/mac/skia_mac.mm',
|
2012-03-21 20:59:49 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
}],
|
2015-11-09 20:30:05 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"] and skia_use_sdl == 0', {
|
2012-11-01 18:01:08 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGL',
|
|
|
|
'-lGLU',
|
|
|
|
'-lX11',
|
|
|
|
],
|
|
|
|
},
|
2012-03-21 20:59:49 +00:00
|
|
|
},{
|
|
|
|
'sources!': [
|
|
|
|
'../src/views/unix/SkOSWindow_Unix.cpp',
|
|
|
|
'../src/views/unix/keysym2ucs.c',
|
2012-03-22 15:37:22 +00:00
|
|
|
'../src/views/unix/skia_unix.cpp',
|
2012-03-21 20:59:49 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
},{
|
|
|
|
'sources!': [
|
|
|
|
'../src/views/win/SkOSWindow_win.cpp',
|
|
|
|
'../src/views/win/skia_win.cpp',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
}],
|
2012-10-11 19:23:46 +00:00
|
|
|
[ 'skia_gpu == 1', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/gpu',
|
|
|
|
],
|
|
|
|
}],
|
2015-11-04 21:41:02 +00:00
|
|
|
[ 'skia_use_sdl == 1', {
|
|
|
|
'defines': [
|
|
|
|
'SK_USE_SDL',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'sdl.gyp:sdl',
|
|
|
|
],
|
|
|
|
'sources!': [
|
2015-11-09 20:30:05 +00:00
|
|
|
# linux sources
|
|
|
|
'../src/views/unix/SkOSWindow_Unix.cpp',
|
|
|
|
'../src/views/unix/keysym2ucs.c',
|
|
|
|
'../src/views/unix/skia_unix.cpp',
|
|
|
|
|
|
|
|
# mac sources
|
|
|
|
'../src/views/mac/SkEventNotifier.h',
|
|
|
|
'../src/views/mac/SkEventNotifier.mm',
|
|
|
|
'../src/views/mac/SkTextFieldCell.h',
|
|
|
|
'../src/views/mac/SkTextFieldCell.m',
|
|
|
|
'../src/views/mac/SkNSView.h',
|
|
|
|
'../src/views/mac/SkNSView.mm',
|
|
|
|
'../src/views/mac/SkOSWindow_Mac.mm',
|
|
|
|
'../src/views/mac/skia_mac.mm',
|
2015-11-11 21:17:06 +00:00
|
|
|
|
|
|
|
# win sources
|
|
|
|
'../src/views/win/SkOSWindow_win.cpp',
|
|
|
|
'../src/views/win/skia_win.cpp',
|
2015-11-04 21:41:02 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../src/views/sdl/SkOSWindow_SDL.cpp',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'sdl.gyp:sdl',
|
|
|
|
],
|
2015-11-09 20:30:05 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework/Headers',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
],
|
2015-11-04 21:41:02 +00:00
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/views',
|
|
|
|
],
|
|
|
|
},
|
2014-11-14 13:52:50 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'xml.gyp:xml',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|