blob: db748c7e4d719cac2f164112bcb7737519b2ac02 [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',
11 'type': 'static_library',
12 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000013 '../include/config',
14 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000015 '../include/views',
bungeman@google.com5a64e582012-03-29 14:51:56 +000016 '../include/xml',
17 '../include/utils',
18 '../include/images',
19 '../include/effects',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000020 '../include/views/unix',
robertphillips@google.com021bce92012-04-02 20:42:26 +000021 ],
22 'dependencies': [
23 'angle.gyp:*',
epoger@google.comae85aea2011-05-31 13:50:51 +000024 ],
25 'sources': [
26 '../include/views/SkApplication.h',
27 '../include/views/SkBGViewArtist.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000028 '../include/views/SkEvent.h',
29 '../include/views/SkEventSink.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/views/SkKey.h',
31 '../include/views/SkOSMenu.h',
32 '../include/views/SkOSWindow_Mac.h',
33 '../include/views/SkOSWindow_SDL.h',
34 '../include/views/SkOSWindow_Unix.h',
35 '../include/views/SkOSWindow_Win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../include/views/SkStackViewLayout.h',
37 '../include/views/SkSystemEventTypes.h',
bungeman@google.com802eee92012-03-28 20:01:06 +000038 '../include/views/SkTextBox.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/views/SkTouchGesture.h',
40 '../include/views/SkView.h',
41 '../include/views/SkViewInflate.h',
42 '../include/views/SkWidget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../include/views/SkWindow.h',
44
45 '../src/views/SkBGViewArtist.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../src/views/SkEvent.cpp',
47 '../src/views/SkEventSink.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/views/SkOSMenu.cpp',
49 '../src/views/SkParsePaint.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/views/SkProgressView.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/views/SkStackViewLayout.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/views/SkTagList.cpp',
53 '../src/views/SkTagList.h',
54 '../src/views/SkTextBox.cpp',
55 '../src/views/SkTouchGesture.cpp',
56 '../src/views/SkView.cpp',
57 '../src/views/SkViewInflate.cpp',
58 '../src/views/SkViewPriv.cpp',
59 '../src/views/SkViewPriv.h',
60 '../src/views/SkWidget.cpp',
61 '../src/views/SkWidgets.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../src/views/SkWindow.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000063
tfarina@chromium.orge229e922012-09-27 13:44:57 +000064 # Mac
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000065 '../src/views/mac/SkOSWindow_Mac.mm',
66 '../src/views/mac/skia_mac.mm',
67
tfarina@chromium.orge229e922012-09-27 13:44:57 +000068 # SDL
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000069 '../src/views/SDL/SkOSWindow_SDL.cpp',
70
tfarina@chromium.orge229e922012-09-27 13:44:57 +000071 # *nix
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000072 '../src/views/unix/SkOSWindow_Unix.cpp',
73 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +000074 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000075
tfarina@chromium.orge229e922012-09-27 13:44:57 +000076 # Windows
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000077 '../src/views/win/SkOSWindow_win.cpp',
78 '../src/views/win/skia_win.cpp',
79
epoger@google.comae85aea2011-05-31 13:50:51 +000080 ],
81 'sources!' : [
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000082 '../src/views/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 ],
84 'conditions': [
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 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000098 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.comcbd76ae2012-03-21 20:59:49 +000099 },{
100 'sources!': [
101 '../src/views/unix/SkOSWindow_Unix.cpp',
102 '../src/views/unix/keysym2ucs.c',
epoger@google.comc62923d2012-03-22 15:37:22 +0000103 '../src/views/unix/skia_unix.cpp',
bungeman@google.comcbd76ae2012-03-21 20:59:49 +0000104 ],
105 }],
106 [ 'skia_os == "win"', {
107 },{
108 'sources!': [
109 '../src/views/win/SkOSWindow_win.cpp',
110 '../src/views/win/skia_win.cpp',
111 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000112 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000113 [ 'skia_gpu == 1', {
114 'include_dirs': [
115 '../include/gpu',
116 ],
117 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000118 ],
119 'direct_dependent_settings': {
120 'include_dirs': [
121 '../include/views',
122 ],
123 },
124 },
125 ],
126}
127
128# Local Variables:
129# tab-width:2
130# indent-tabs-mode:nil
131# End:
132# vim: set expandtab tabstop=2 shiftwidth=2: