blob: aca3bb337afc82bec086649e77c41a7d9d67c19e [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,
epoger@google.comae85aea2011-05-31 13:50:51 +000014 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000015 '../include/config',
16 '../include/core',
bungeman@google.com5a64e582012-03-29 14:51:56 +000017 '../include/effects',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000018 '../include/images',
19 '../include/lazy',
20 '../include/utils',
21 '../include/views',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000022 '../include/views/unix',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000023 '../include/xml',
robertphillips@google.com021bce92012-04-02 20:42:26 +000024 ],
25 'dependencies': [
26 'angle.gyp:*',
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',
borenet@google.com7158e6a2012-11-01 17:43:44 +000036 '../include/views/SkOSWindow_NaCl.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000037 '../include/views/SkOSWindow_SDL.h',
38 '../include/views/SkOSWindow_Unix.h',
39 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../include/views/SkStackViewLayout.h',
41 '../include/views/SkSystemEventTypes.h',
bungeman@google.com802eee92012-03-28 20:01:06 +000042 '../include/views/SkTextBox.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../include/views/SkTouchGesture.h',
44 '../include/views/SkView.h',
45 '../include/views/SkViewInflate.h',
46 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../include/views/SkWindow.h',
48
49 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/views/SkEvent.cpp',
51 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/views/SkOSMenu.cpp',
53 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../src/views/SkTagList.cpp',
57 '../src/views/SkTagList.h',
58 '../src/views/SkTextBox.cpp',
59 '../src/views/SkTouchGesture.cpp',
60 '../src/views/SkView.cpp',
61 '../src/views/SkViewInflate.cpp',
62 '../src/views/SkViewPriv.cpp',
63 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000065 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000066
tfarina@chromium.orge229e922012-09-27 13:44:57 +000067 # Mac
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000068 '../src/views/mac/SkOSWindow_Mac.mm',
69 '../src/views/mac/skia_mac.mm',
70
tfarina@chromium.orge229e922012-09-27 13:44:57 +000071 # SDL
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000072 '../src/views/SDL/SkOSWindow_SDL.cpp',
73
tfarina@chromium.orge229e922012-09-27 13:44:57 +000074 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000075 '../src/views/unix/SkOSWindow_Unix.cpp',
76 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000077 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000078
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',
82
epoger@google.comae85aea2011-05-31 13:50:51 +000083 ],
84 'sources!' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000085 '../src/views/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 ],
87 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000088 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000089 'link_settings': {
90 'libraries': [
yangsu@google.coma8540412011-08-30 14:40:49 +000091 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
92 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +000093 ],
94 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000095 },{
96 'sources!': [
97 '../src/views/mac/SkOSWindow_Mac.mm',
98 '../src/views/mac/skia_mac.mm',
99 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000101 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +0000102 'link_settings': {
103 'libraries': [
104 '-lGL',
105 '-lGLU',
106 '-lX11',
107 ],
108 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000109 },{
110 'sources!': [
111 '../src/views/unix/SkOSWindow_Unix.cpp',
112 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000113 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000114 ],
115 }],
116 [ 'skia_os == "win"', {
117 },{
118 'sources!': [
119 '../src/views/win/SkOSWindow_win.cpp',
120 '../src/views/win/skia_win.cpp',
121 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000122 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000123 [ 'skia_os == "nacl"', {
124 'sources!': [
125 '../src/views/unix/SkOSWindow_Unix.cpp',
126 '../src/views/unix/keysym2ucs.c',
127 '../src/views/unix/skia_unix.cpp',
128 ],
129 }, {
130 'sources!': [
131 '../src/views/nacl/SkOSWindow_NaCl.cpp',
132 ],
133 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000134 [ 'skia_gpu == 1', {
135 'include_dirs': [
136 '../include/gpu',
137 ],
138 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 ],
140 'direct_dependent_settings': {
141 'include_dirs': [
142 '../include/views',
143 ],
144 },
145 },
146 ],
147}
148
149# Local Variables:
150# tab-width:2
151# indent-tabs-mode:nil
152# End:
153# vim: set expandtab tabstop=2 shiftwidth=2: