blob: af0b9010c2d02867e69e1ad8123b7fb3f8fef4c8 [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': [
herbb906daf2015-09-29 09:37:59 -070023 '../include/private',
bungeman@google.com2b0ab9e2013-07-19 22:31:23 +000024 '../include/views',
25 '../include/views/unix',
bsalomon42380172015-02-23 08:57:23 -080026 '../src/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 ],
28 'sources': [
29 '../include/views/SkApplication.h',
30 '../include/views/SkBGViewArtist.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 '../include/views/SkEvent.h',
32 '../include/views/SkEventSink.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000033 '../include/views/SkKey.h',
34 '../include/views/SkOSMenu.h',
35 '../include/views/SkOSWindow_Mac.h',
36 '../include/views/SkOSWindow_SDL.h',
37 '../include/views/SkOSWindow_Unix.h',
38 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/views/SkStackViewLayout.h',
40 '../include/views/SkSystemEventTypes.h',
41 '../include/views/SkTouchGesture.h',
42 '../include/views/SkView.h',
43 '../include/views/SkViewInflate.h',
44 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../include/views/SkWindow.h',
46
47 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/views/SkEvent.cpp',
49 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/views/SkOSMenu.cpp',
51 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/views/SkTagList.cpp',
55 '../src/views/SkTagList.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../src/views/SkTouchGesture.cpp',
57 '../src/views/SkView.cpp',
58 '../src/views/SkViewInflate.cpp',
59 '../src/views/SkViewPriv.cpp',
60 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../src/views/SkWindow.cpp',
joshualitt65d6fbb2015-11-04 13:41:02 -080063
64 # Unix
65 '../src/views/unix/SkOSWindow_Unix.cpp',
66 '../src/views/unix/keysym2ucs.c',
67 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000068
tfarina@chromium.orge229e922012-09-27 13:44:57 +000069 # Mac
bsalomon241b56d2015-06-18 11:49:42 -070070 '../src/views/mac/SkEventNotifier.h',
71 '../src/views/mac/SkEventNotifier.mm',
72 '../src/views/mac/SkTextFieldCell.h',
73 '../src/views/mac/SkTextFieldCell.m',
74 '../src/views/mac/SkNSView.h',
75 '../src/views/mac/SkNSView.mm',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000076 '../src/views/mac/SkOSWindow_Mac.mm',
77 '../src/views/mac/skia_mac.mm',
78
tfarina@chromium.orge229e922012-09-27 13:44:57 +000079 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000080 '../src/views/win/SkOSWindow_win.cpp',
81 '../src/views/win/skia_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 ],
83 'conditions': [
caryclarkc8fcafb2015-01-30 12:37:02 -080084 [ 'skia_gpu == 1', {
85 'include_dirs' : [
86 '../src/gpu',
87 ],
88 }],
joshualitt47fdae92015-11-09 12:30:05 -080089 [ 'skia_os == "mac" and skia_use_sdl == 0', {
epoger@google.comae85aea2011-05-31 13:50:51 +000090 'link_settings': {
91 'libraries': [
bsalomon241b56d2015-06-18 11:49:42 -070092 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
93 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
yangsu@google.coma8540412011-08-30 14:40:49 +000094 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
95 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +000096 ],
97 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000098 },{
99 'sources!': [
bsalomon241b56d2015-06-18 11:49:42 -0700100 '../src/views/mac/SkEventNotifier.h',
101 '../src/views/mac/SkEventNotifier.mm',
102 '../src/views/mac/SkTextFieldCell.h',
103 '../src/views/mac/SkTextFieldCell.m',
104 '../src/views/mac/SkNSView.h',
105 '../src/views/mac/SkNSView.mm',
106 '../src/views/mac/SkOSWindow_Mac.mm',
107 '../src/views/mac/skia_mac.mm',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000108 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000109 }],
joshualitt47fdae92015-11-09 12:30:05 -0800110 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"] and skia_use_sdl == 0', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +0000111 'link_settings': {
112 'libraries': [
113 '-lGL',
114 '-lGLU',
115 '-lX11',
116 ],
117 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000118 },{
119 'sources!': [
120 '../src/views/unix/SkOSWindow_Unix.cpp',
121 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000122 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000123 ],
124 }],
125 [ 'skia_os == "win"', {
126 },{
127 'sources!': [
128 '../src/views/win/SkOSWindow_win.cpp',
129 '../src/views/win/skia_win.cpp',
130 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000131 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000132 [ 'skia_gpu == 1', {
133 'include_dirs': [
134 '../include/gpu',
135 ],
136 }],
joshualitt65d6fbb2015-11-04 13:41:02 -0800137 [ 'skia_use_sdl == 1', {
138 'defines': [
139 'SK_USE_SDL',
140 ],
141 'dependencies': [
142 'sdl.gyp:sdl',
143 ],
144 'sources!': [
joshualitt47fdae92015-11-09 12:30:05 -0800145 # linux sources
146 '../src/views/unix/SkOSWindow_Unix.cpp',
147 '../src/views/unix/keysym2ucs.c',
148 '../src/views/unix/skia_unix.cpp',
149
150 # mac sources
151 '../src/views/mac/SkEventNotifier.h',
152 '../src/views/mac/SkEventNotifier.mm',
153 '../src/views/mac/SkTextFieldCell.h',
154 '../src/views/mac/SkTextFieldCell.m',
155 '../src/views/mac/SkNSView.h',
156 '../src/views/mac/SkNSView.mm',
157 '../src/views/mac/SkOSWindow_Mac.mm',
158 '../src/views/mac/skia_mac.mm',
joshualittdad57c82015-11-11 13:17:06 -0800159
160 # win sources
161 '../src/views/win/SkOSWindow_win.cpp',
162 '../src/views/win/skia_win.cpp',
joshualitt65d6fbb2015-11-04 13:41:02 -0800163 ],
164 'sources': [
165 '../src/views/sdl/SkOSWindow_SDL.cpp',
166 ],
167 'export_dependent_settings': [
168 'sdl.gyp:sdl',
169 ],
joshualitt47fdae92015-11-09 12:30:05 -0800170 'conditions': [
171 [ 'skia_os == "mac"', {
172 'include_dirs': [
173 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework/Headers',
174 ],
175 'link_settings': {
176 'libraries': [
177 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
178 ],
179 }
180 }],
181 ],
joshualitt65d6fbb2015-11-04 13:41:02 -0800182 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000183 ],
184 'direct_dependent_settings': {
185 'include_dirs': [
186 '../include/views',
187 ],
188 },
djsollen5ae77652014-11-14 05:52:50 -0800189 'export_dependent_settings': [
190 'xml.gyp:xml',
191 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000192 },
193 ],
194}