gerrit/gerrit-gwtexpui/BUCK
David Ostrovsky e01d9b7f20 Bump Jetty version to stable 9.1 and Servlet API to 3.1
Change-Id: Ic6a374afa978e66ec1a04a2b39801da158ba31d7
2014-01-04 22:28:10 +01:00

107 lines
2.4 KiB
Python

SRC = 'src/main/java/com/google/gwtexpui/'
gwt_module(
name = 'Clippy',
srcs = glob([SRC + 'clippy/client/*.java']),
gwtxml = SRC + 'clippy/Clippy.gwt.xml',
resources = [
SRC + 'clippy/client/clippy.css',
SRC + 'clippy/client/clippy.swf',
],
deps = [
':SafeHtml',
':UserAgent',
],
compile_deps = [
'//lib/gwt:user',
'//lib:LICENSE-clippy',
],
visibility = ['PUBLIC'],
)
java_library(
name = 'CSS',
srcs = glob([SRC + 'css/rebind/*.java']),
resources = [SRC + 'css/CSS.gwt.xml'],
deps = ['//lib/gwt:dev'],
visibility = ['PUBLIC'],
)
gwt_module(
name = 'GlobalKey',
srcs = glob([SRC + 'globalkey/client/*.java']),
gwtxml = SRC + 'globalkey/GlobalKey.gwt.xml',
resources = [
SRC + 'globalkey/client/KeyConstants.properties',
SRC + 'globalkey/client/key.css',
],
deps = [
':SafeHtml',
':UserAgent',
],
compile_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
java_library(
name = 'Linker',
srcs = glob([SRC + 'linker/rebind/*.java']),
resources = [SRC + 'linker/ServerPlannedIFrameLinker.gwt.xml'],
deps = ['//lib/gwt:dev'],
visibility = ['PUBLIC'],
)
java_library2(
name = 'linker_server',
srcs = glob([SRC + 'linker/server/*.java']),
compile_deps = ['//lib:servlet-api-3_1'],
visibility = ['PUBLIC'],
)
gwt_module(
name = 'Progress',
srcs = glob([SRC + 'progress/client/*.java']),
gwtxml = SRC + 'progress/Progress.gwt.xml',
resources = [SRC + 'progress/client/progress.css'],
compile_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
gwt_module(
name = 'SafeHtml',
srcs = glob([SRC + 'safehtml/client/*.java']),
gwtxml = SRC + 'safehtml/SafeHtml.gwt.xml',
resources = [SRC + 'safehtml/client/safehtml.css'],
compile_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
java_test(
name = 'SafeHtml_tests',
srcs = glob([
'src/test/java/com/google/gwtexpui/safehtml/client/**/*.java',
]),
deps = [
':SafeHtml_lib',
'//lib:junit',
'//lib/gwt:user',
'//lib/gwt:dev',
],
source_under_test = [':SafeHtml_lib'],
)
gwt_module(
name = 'UserAgent',
srcs = glob([SRC + 'user/client/*.java']),
gwtxml = SRC + 'user/User.gwt.xml',
compile_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
java_library2(
name = 'server',
srcs = glob([SRC + 'server/*.java']),
compile_deps = ['//lib:servlet-api-3_1'],
visibility = ['PUBLIC'],
)