blob: 51ce0f0c4537645c5c69f51324984a5893feb796 [file] [log] [blame]
tfarina@chromium.orge229e922012-09-27 13:44:57 +00001# Views is the Skia windowing toolkit.
2# It provides:
3# * A portable means of creating native windows.
4# * Events.
5# * Basic widgets and controls.
bungeman@google.com5e41b372012-03-23 14:11:43 +00006
epoger@google.comae85aea2011-05-31 13:50:51 +00007{
epoger@google.comae85aea2011-05-31 13:50:51 +00008 'targets': [
9 {
10 'target_name': 'views',
borenet@google.comefb1d772012-10-10 19:45:51 +000011 'product_name': 'skia_views',
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000013 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +000014 'dependencies': [
15 'skia_lib.gyp:skia_lib',
16 'angle.gyp:*',
17 'xml.gyp:*',
18 ],
bungeman@google.com2b0ab9e2013-07-19 22:31:23 +000019 'include_dirs': [
20 '../include/views',
21 '../include/views/unix',
epoger@google.comae85aea2011-05-31 13:50:51 +000022 ],
23 'sources': [
24 '../include/views/SkApplication.h',
25 '../include/views/SkBGViewArtist.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/views/SkEvent.h',
27 '../include/views/SkEventSink.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000028 '../include/views/SkKey.h',
29 '../include/views/SkOSMenu.h',
30 '../include/views/SkOSWindow_Mac.h',
borenet@google.com7158e6a2012-11-01 17:43:44 +000031 '../include/views/SkOSWindow_NaCl.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 '../include/views/SkOSWindow_SDL.h',
33 '../include/views/SkOSWindow_Unix.h',
34 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../include/views/SkStackViewLayout.h',
36 '../include/views/SkSystemEventTypes.h',
bungeman@google.com802eee92012-03-28 20:01:06 +000037 '../include/views/SkTextBox.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/views/SkTouchGesture.h',
39 '../include/views/SkView.h',
40 '../include/views/SkViewInflate.h',
41 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/views/SkWindow.h',
43
44 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../src/views/SkEvent.cpp',
46 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/views/SkOSMenu.cpp',
48 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/views/SkTagList.cpp',
52 '../src/views/SkTagList.h',
53 '../src/views/SkTextBox.cpp',
54 '../src/views/SkTouchGesture.cpp',
55 '../src/views/SkView.cpp',
56 '../src/views/SkViewInflate.cpp',
57 '../src/views/SkViewPriv.cpp',
58 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000059 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000060 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000061
tfarina@chromium.orge229e922012-09-27 13:44:57 +000062 # Mac
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000063 '../src/views/mac/SkOSWindow_Mac.mm',
64 '../src/views/mac/skia_mac.mm',
65
tfarina@chromium.orge229e922012-09-27 13:44:57 +000066 # SDL
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000067 '../src/views/SDL/SkOSWindow_SDL.cpp',
68
tfarina@chromium.orge229e922012-09-27 13:44:57 +000069 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000070 '../src/views/unix/SkOSWindow_Unix.cpp',
71 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000072 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000073
tfarina@chromium.orge229e922012-09-27 13:44:57 +000074 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000075 '../src/views/win/SkOSWindow_win.cpp',
76 '../src/views/win/skia_win.cpp',
77
epoger@google.comae85aea2011-05-31 13:50:51 +000078 ],
79 'sources!' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000080 '../src/views/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000081 ],
82 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000083 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000084 'link_settings': {
85 'libraries': [
yangsu@google.coma8540412011-08-30 14:40:49 +000086 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
87 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 ],
89 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000090 },{
91 'sources!': [
92 '../src/views/mac/SkOSWindow_Mac.mm',
93 '../src/views/mac/skia_mac.mm',
94 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000095 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000096 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +000097 'link_settings': {
98 'libraries': [
99 '-lGL',
100 '-lGLU',
101 '-lX11',
102 ],
103 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000104 },{
105 'sources!': [
106 '../src/views/unix/SkOSWindow_Unix.cpp',
107 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000108 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000109 ],
110 }],
111 [ 'skia_os == "win"', {
112 },{
113 'sources!': [
114 '../src/views/win/SkOSWindow_win.cpp',
115 '../src/views/win/skia_win.cpp',
116 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000117 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000118 [ 'skia_os == "nacl"', {
119 'sources!': [
120 '../src/views/unix/SkOSWindow_Unix.cpp',
121 '../src/views/unix/keysym2ucs.c',
122 '../src/views/unix/skia_unix.cpp',
123 ],
124 }, {
125 'sources!': [
126 '../src/views/nacl/SkOSWindow_NaCl.cpp',
127 ],
128 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000129 [ 'skia_gpu == 1', {
130 'include_dirs': [
131 '../include/gpu',
132 ],
133 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000134 ],
135 'direct_dependent_settings': {
136 'include_dirs': [
137 '../include/views',
138 ],
139 },
140 },
141 ],
142}
143
144# Local Variables:
145# tab-width:2
146# indent-tabs-mode:nil
147# End:
148# vim: set expandtab tabstop=2 shiftwidth=2: