blob: e7abc54aabc046fdebcc171d20c3be5122a7f34c [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.
tfarina@chromium.orge229e922012-09-27 13:44:57 +00005# Views is the Skia windowing toolkit.
6# It provides:
7# * A portable means of creating native windows.
8# * Events.
9# * Basic widgets and controls.
bungeman@google.com5e41b372012-03-23 14:11:43 +000010
epoger@google.comae85aea2011-05-31 13:50:51 +000011{
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'targets': [
13 {
14 'target_name': 'views',
borenet@google.comefb1d772012-10-10 19:45:51 +000015 'product_name': 'skia_views',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000017 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +000018 'dependencies': [
19 'skia_lib.gyp:skia_lib',
djsollen5ae77652014-11-14 05:52:50 -080020 'xml.gyp:xml',
bungeman@google.comb8f36552013-07-22 14:39:45 +000021 ],
bungeman@google.com2b0ab9e2013-07-19 22:31:23 +000022 'include_dirs': [
23 '../include/views',
24 '../include/views/unix',
bsalomon42380172015-02-23 08:57:23 -080025 '../src/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 ],
27 'sources': [
28 '../include/views/SkApplication.h',
29 '../include/views/SkBGViewArtist.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/views/SkEvent.h',
31 '../include/views/SkEventSink.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 '../include/views/SkKey.h',
33 '../include/views/SkOSMenu.h',
34 '../include/views/SkOSWindow_Mac.h',
35 '../include/views/SkOSWindow_SDL.h',
36 '../include/views/SkOSWindow_Unix.h',
37 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/views/SkStackViewLayout.h',
39 '../include/views/SkSystemEventTypes.h',
40 '../include/views/SkTouchGesture.h',
41 '../include/views/SkView.h',
42 '../include/views/SkViewInflate.h',
43 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../include/views/SkWindow.h',
45
46 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/views/SkEvent.cpp',
48 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/views/SkOSMenu.cpp',
50 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../src/views/SkTagList.cpp',
54 '../src/views/SkTagList.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../src/views/SkTouchGesture.cpp',
56 '../src/views/SkView.cpp',
57 '../src/views/SkViewInflate.cpp',
58 '../src/views/SkViewPriv.cpp',
59 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000060 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000062
tfarina@chromium.orge229e922012-09-27 13:44:57 +000063 # Mac
bsalomon241b56d2015-06-18 11:49:42 -070064 '../src/views/mac/SkEventNotifier.h',
65 '../src/views/mac/SkEventNotifier.mm',
66 '../src/views/mac/SkTextFieldCell.h',
67 '../src/views/mac/SkTextFieldCell.m',
68 '../src/views/mac/SkNSView.h',
69 '../src/views/mac/SkNSView.mm',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000070 '../src/views/mac/SkOSWindow_Mac.mm',
71 '../src/views/mac/skia_mac.mm',
72
tfarina@chromium.orge229e922012-09-27 13:44:57 +000073 # SDL
bungemanc0c4d752015-06-12 17:23:35 -040074 '../src/views/sdl/SkOSWindow_SDL.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000075
tfarina@chromium.orge229e922012-09-27 13:44:57 +000076 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000077 '../src/views/unix/SkOSWindow_Unix.cpp',
78 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000079 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000080
tfarina@chromium.orge229e922012-09-27 13:44:57 +000081 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000082 '../src/views/win/SkOSWindow_win.cpp',
83 '../src/views/win/skia_win.cpp',
84
epoger@google.comae85aea2011-05-31 13:50:51 +000085 ],
86 'sources!' : [
bungemanc0c4d752015-06-12 17:23:35 -040087 '../src/views/sdl/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 ],
89 'conditions': [
caryclarkc8fcafb2015-01-30 12:37:02 -080090 [ 'skia_gpu == 1', {
91 'include_dirs' : [
92 '../src/gpu',
93 ],
94 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000095 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000096 'link_settings': {
97 'libraries': [
bsalomon241b56d2015-06-18 11:49:42 -070098 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
99 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
yangsu@google.coma8540412011-08-30 14:40:49 +0000100 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
101 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 ],
103 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000104 },{
105 'sources!': [
bsalomon241b56d2015-06-18 11:49:42 -0700106 '../src/views/mac/SkEventNotifier.h',
107 '../src/views/mac/SkEventNotifier.mm',
108 '../src/views/mac/SkTextFieldCell.h',
109 '../src/views/mac/SkTextFieldCell.m',
110 '../src/views/mac/SkNSView.h',
111 '../src/views/mac/SkNSView.mm',
112 '../src/views/mac/SkOSWindow_Mac.mm',
113 '../src/views/mac/skia_mac.mm',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000114 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000115 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000116 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +0000117 'link_settings': {
118 'libraries': [
119 '-lGL',
120 '-lGLU',
121 '-lX11',
122 ],
123 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000124 },{
125 'sources!': [
126 '../src/views/unix/SkOSWindow_Unix.cpp',
127 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000128 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000129 ],
130 }],
131 [ 'skia_os == "win"', {
132 },{
133 'sources!': [
134 '../src/views/win/SkOSWindow_win.cpp',
135 '../src/views/win/skia_win.cpp',
136 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000137 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000138 [ 'skia_gpu == 1', {
139 'include_dirs': [
140 '../include/gpu',
141 ],
142 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 ],
144 'direct_dependent_settings': {
145 'include_dirs': [
146 '../include/views',
147 ],
148 },
djsollen5ae77652014-11-14 05:52:50 -0800149 'export_dependent_settings': [
150 'xml.gyp:xml',
151 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000152 },
153 ],
154}