blob: 23db13f8096bf8a2ff76f43af1cd7b53327e170f [file] [log] [blame]
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -07001SRC = 'src/main/java/com/google/gwtexpui/'
2
3gwt_module(
4 name = 'Clippy',
5 srcs = glob([SRC + 'clippy/client/*.java']),
David Ostrovsky76e396b2014-05-17 08:24:12 +02006 gwt_xml = SRC + 'clippy/Clippy.gwt.xml',
Shawn Pearcea8eec022013-05-18 16:55:45 -07007 resources = [
8 SRC + 'clippy/client/clippy.css',
9 SRC + 'clippy/client/clippy.swf',
David Pursehousecd32a792016-01-09 00:11:19 +090010 SRC + 'clippy/client/page_white_copy.png',
Shawn Pearcec4266362015-07-20 16:23:02 -070011 SRC + 'clippy/client/CopyableLabelText.properties',
Shawn Pearcea8eec022013-05-18 16:55:45 -070012 ],
David Ostrovskydf65eca2014-10-21 20:59:41 +020013 provided_deps = ['//lib/gwt:user'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070014 deps = [
15 ':SafeHtml',
16 ':UserAgent',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070017 '//lib:LICENSE-clippy',
David Pursehousecd32a792016-01-09 00:11:19 +090018 '//lib:LICENSE-silk_icons',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070019 ],
20 visibility = ['PUBLIC'],
21)
22
Shawn Pearce05cb0532013-11-30 02:22:26 -080023java_library(
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070024 name = 'CSS',
25 srcs = glob([SRC + 'css/rebind/*.java']),
Shawn Pearce05cb0532013-11-30 02:22:26 -080026 resources = [SRC + 'css/CSS.gwt.xml'],
David Ostrovskydf65eca2014-10-21 20:59:41 +020027 provided_deps = ['//lib/gwt:dev'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070028 visibility = ['PUBLIC'],
29)
30
31gwt_module(
32 name = 'GlobalKey',
33 srcs = glob([SRC + 'globalkey/client/*.java']),
David Ostrovsky76e396b2014-05-17 08:24:12 +020034 gwt_xml = SRC + 'globalkey/GlobalKey.gwt.xml',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070035 resources = [
36 SRC + 'globalkey/client/KeyConstants.properties',
37 SRC + 'globalkey/client/key.css',
38 ],
David Ostrovskydf65eca2014-10-21 20:59:41 +020039 provided_deps = ['//lib/gwt:user'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070040 deps = [
41 ':SafeHtml',
42 ':UserAgent',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070043 ],
44 visibility = ['PUBLIC'],
45)
46
Shawn Pearce33499722014-05-02 13:22:49 -070047java_library(
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070048 name = 'linker_server',
49 srcs = glob([SRC + 'linker/server/*.java']),
Shawn Pearce33499722014-05-02 13:22:49 -070050 provided_deps = ['//lib:servlet-api-3_1'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070051 visibility = ['PUBLIC'],
52)
53
54gwt_module(
55 name = 'Progress',
56 srcs = glob([SRC + 'progress/client/*.java']),
David Ostrovsky76e396b2014-05-17 08:24:12 +020057 gwt_xml = SRC + 'progress/Progress.gwt.xml',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070058 resources = [SRC + 'progress/client/progress.css'],
David Ostrovskydf65eca2014-10-21 20:59:41 +020059 provided_deps = ['//lib/gwt:user'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070060 visibility = ['PUBLIC'],
61)
62
63gwt_module(
64 name = 'SafeHtml',
65 srcs = glob([SRC + 'safehtml/client/*.java']),
David Ostrovsky76e396b2014-05-17 08:24:12 +020066 gwt_xml = SRC + 'safehtml/SafeHtml.gwt.xml',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070067 resources = [SRC + 'safehtml/client/safehtml.css'],
David Ostrovskydf65eca2014-10-21 20:59:41 +020068 provided_deps = ['//lib/gwt:user'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070069 visibility = ['PUBLIC'],
70)
71
72java_test(
73 name = 'SafeHtml_tests',
74 srcs = glob([
75 'src/test/java/com/google/gwtexpui/safehtml/client/**/*.java',
76 ]),
77 deps = [
Shawn Pearce06e069c2014-05-13 15:57:36 -070078 ':SafeHtml',
David Pursehousecd4c01d2015-06-03 17:57:44 +090079 '//lib:truth',
Shawn Pearce63207f02013-05-17 10:44:43 -070080 '//lib/gwt:user',
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070081 '//lib/gwt:dev',
82 ],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070083)
84
85gwt_module(
86 name = 'UserAgent',
87 srcs = glob([SRC + 'user/client/*.java']),
David Ostrovsky76e396b2014-05-17 08:24:12 +020088 gwt_xml = SRC + 'user/User.gwt.xml',
Shawn Pearcec4266362015-07-20 16:23:02 -070089 resources = [SRC + 'user/client/tooltip.css'],
David Ostrovskydf65eca2014-10-21 20:59:41 +020090 provided_deps = ['//lib/gwt:user'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070091 visibility = ['PUBLIC'],
92)
93
Shawn Pearce33499722014-05-02 13:22:49 -070094java_library(
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070095 name = 'server',
96 srcs = glob([SRC + 'server/*.java']),
Shawn Pearce33499722014-05-02 13:22:49 -070097 provided_deps = ['//lib:servlet-api-3_1'],
Shawn Pearcefd6bb9f2013-05-08 14:14:24 -070098 visibility = ['PUBLIC'],
99)
David Ostrovskydf65eca2014-10-21 20:59:41 +0200100
101java_library(
102 name = 'client-src-lib',
103 srcs = [],
104 resources = glob(
105 [SRC + n for n in [
106 'clippy/**/*',
107 'globalkey/**/*',
108 'safehtml/**/*',
109 'user/**/*',
110 ]]
111 ),
112 visibility = ['PUBLIC'],
113)