blob: b0697a03d186c9155f3bc4791d36ab9d7c50d288 [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',
epoger@google.comae85aea2011-05-31 13:50:51 +000017 '../include/views',
bungeman@google.com5a64e582012-03-29 14:51:56 +000018 '../include/xml',
19 '../include/utils',
20 '../include/images',
21 '../include/effects',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000022 '../include/views/unix',
robertphillips@google.com021bce92012-04-02 20:42:26 +000023 ],
24 'dependencies': [
25 'angle.gyp:*',
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',
borenet@google.com7158e6a2012-11-01 17:43:44 +000035 '../include/views/SkOSWindow_NaCl.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../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',
bungeman@google.com802eee92012-03-28 20:01:06 +000041 '../include/views/SkTextBox.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/views/SkTouchGesture.h',
43 '../include/views/SkView.h',
44 '../include/views/SkViewInflate.h',
45 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../include/views/SkWindow.h',
47
48 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/views/SkEvent.cpp',
50 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/views/SkOSMenu.cpp',
52 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../src/views/SkTagList.cpp',
56 '../src/views/SkTagList.h',
57 '../src/views/SkTextBox.cpp',
58 '../src/views/SkTouchGesture.cpp',
59 '../src/views/SkView.cpp',
60 '../src/views/SkViewInflate.cpp',
61 '../src/views/SkViewPriv.cpp',
62 '../src/views/SkViewPriv.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000063 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000065
tfarina@chromium.orge229e922012-09-27 13:44:57 +000066 # Mac
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000067 '../src/views/mac/SkOSWindow_Mac.mm',
68 '../src/views/mac/skia_mac.mm',
69
tfarina@chromium.orge229e922012-09-27 13:44:57 +000070 # SDL
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000071 '../src/views/SDL/SkOSWindow_SDL.cpp',
72
tfarina@chromium.orge229e922012-09-27 13:44:57 +000073 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000074 '../src/views/unix/SkOSWindow_Unix.cpp',
75 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000076 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000077
tfarina@chromium.orge229e922012-09-27 13:44:57 +000078 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000079 '../src/views/win/SkOSWindow_win.cpp',
80 '../src/views/win/skia_win.cpp',
81
epoger@google.comae85aea2011-05-31 13:50:51 +000082 ],
83 'sources!' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000084 '../src/views/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 ],
86 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000087 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000088 'link_settings': {
89 'libraries': [
yangsu@google.coma8540412011-08-30 14:40:49 +000090 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
91 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
epoger@google.comae85aea2011-05-31 13:50:51 +000092 ],
93 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000094 },{
95 'sources!': [
96 '../src/views/mac/SkOSWindow_Mac.mm',
97 '../src/views/mac/skia_mac.mm',
98 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000099 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000100 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
borenet@google.comdb2e25a2012-11-01 18:01:08 +0000101 'link_settings': {
102 'libraries': [
103 '-lGL',
104 '-lGLU',
105 '-lX11',
106 ],
107 },
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000108 },{
109 'sources!': [
110 '../src/views/unix/SkOSWindow_Unix.cpp',
111 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000112 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000113 ],
114 }],
115 [ 'skia_os == "win"', {
116 },{
117 'sources!': [
118 '../src/views/win/SkOSWindow_win.cpp',
119 '../src/views/win/skia_win.cpp',
120 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000121 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000122 [ 'skia_os == "nacl"', {
123 'sources!': [
124 '../src/views/unix/SkOSWindow_Unix.cpp',
125 '../src/views/unix/keysym2ucs.c',
126 '../src/views/unix/skia_unix.cpp',
127 ],
128 }, {
129 'sources!': [
130 '../src/views/nacl/SkOSWindow_NaCl.cpp',
131 ],
132 }],
borenet@google.comb364eb62012-10-11 19:23:46 +0000133 [ 'skia_gpu == 1', {
134 'include_dirs': [
135 '../include/gpu',
136 ],
137 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000138 ],
139 'direct_dependent_settings': {
140 'include_dirs': [
141 '../include/views',
142 ],
143 },
144 },
145 ],
146}
147
148# Local Variables:
149# tab-width:2
150# indent-tabs-mode:nil
151# End:
152# vim: set expandtab tabstop=2 shiftwidth=2: