blob: 381e125393a6b4297aaddec28ff35dd501ccb9e2 [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',
djsollen5ae77652014-11-14 05:52:50 -080016 'xml.gyp:xml',
bungeman@google.comb8f36552013-07-22 14:39:45 +000017 ],
bungeman@google.com2b0ab9e2013-07-19 22:31:23 +000018 'include_dirs': [
19 '../include/views',
20 '../include/views/unix',
epoger@google.comae85aea2011-05-31 13:50:51 +000021 ],
22 'sources': [
23 '../include/views/SkApplication.h',
24 '../include/views/SkBGViewArtist.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000025 '../include/views/SkEvent.h',
26 '../include/views/SkEventSink.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../include/views/SkKey.h',
28 '../include/views/SkOSMenu.h',
29 '../include/views/SkOSWindow_Mac.h',
borenet@google.com7158e6a2012-11-01 17:43:44 +000030 '../include/views/SkOSWindow_NaCl.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 '../include/views/SkOSWindow_SDL.h',
32 '../include/views/SkOSWindow_Unix.h',
33 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/views/SkStackViewLayout.h',
35 '../include/views/SkSystemEventTypes.h',
36 '../include/views/SkTouchGesture.h',
37 '../include/views/SkView.h',
38 '../include/views/SkViewInflate.h',
39 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../include/views/SkWindow.h',
41
42 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../src/views/SkEvent.cpp',
44 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../src/views/SkOSMenu.cpp',
46 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/views/SkTagList.cpp',
50 '../src/views/SkTagList.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/views/SkTouchGesture.cpp',
52 '../src/views/SkView.cpp',
53 '../src/views/SkViewInflate.cpp',
54 '../src/views/SkViewPriv.cpp',
55 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000057 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000058
tfarina@chromium.orge229e922012-09-27 13:44:57 +000059 # Mac
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000060 '../src/views/mac/SkOSWindow_Mac.mm',
61 '../src/views/mac/skia_mac.mm',
62
tfarina@chromium.orge229e922012-09-27 13:44:57 +000063 # SDL
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000064 '../src/views/SDL/SkOSWindow_SDL.cpp',
65
tfarina@chromium.orge229e922012-09-27 13:44:57 +000066 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000067 '../src/views/unix/SkOSWindow_Unix.cpp',
68 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000069 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000070
tfarina@chromium.orge229e922012-09-27 13:44:57 +000071 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000072 '../src/views/win/SkOSWindow_win.cpp',
73 '../src/views/win/skia_win.cpp',
74
epoger@google.comae85aea2011-05-31 13:50:51 +000075 ],
76 'sources!' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000077 '../src/views/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000078 ],
79 'conditions': [
caryclarkc8fcafb2015-01-30 12:37:02 -080080 [ 'skia_gpu == 1', {
81 'include_dirs' : [
82 '../src/gpu',
83 ],
84 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000085 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000086 'link_settings': {
87 'libraries': [
yangsu@google.coma8540412011-08-30 14:40:49 +000088 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
89 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 ],
91 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000092 },{
93 'sources!': [
94 '../src/views/mac/SkOSWindow_Mac.mm',
95 '../src/views/mac/skia_mac.mm',
96 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000097 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000098 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +000099 'link_settings': {
100 'libraries': [
101 '-lGL',
102 '-lGLU',
103 '-lX11',
104 ],
105 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000106 },{
107 'sources!': [
108 '../src/views/unix/SkOSWindow_Unix.cpp',
109 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000110 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000111 ],
112 }],
113 [ 'skia_os == "win"', {
114 },{
115 'sources!': [
116 '../src/views/win/SkOSWindow_win.cpp',
117 '../src/views/win/skia_win.cpp',
118 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000120 [ 'skia_os == "nacl"', {
121 'sources!': [
122 '../src/views/unix/SkOSWindow_Unix.cpp',
123 '../src/views/unix/keysym2ucs.c',
124 '../src/views/unix/skia_unix.cpp',
125 ],
126 }, {
127 'sources!': [
128 '../src/views/nacl/SkOSWindow_NaCl.cpp',
129 ],
130 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000131 [ 'skia_gpu == 1', {
132 'include_dirs': [
133 '../include/gpu',
134 ],
135 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000136 ],
137 'direct_dependent_settings': {
138 'include_dirs': [
139 '../include/views',
140 ],
141 },
djsollen5ae77652014-11-14 05:52:50 -0800142 'export_dependent_settings': [
143 'xml.gyp:xml',
144 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000145 },
146 ],
147}