76e396b49b
gwt_xml is more pythonic naming convention. Beside that recent Buck version introduced new gwt_jar parameter in prebuilt_jar() rule and future Buck versions may introduce gwt_xml parameter to java_library() rule. Change-Id: Ia6447e62945ce3eb5ff951421ebf2f0fdf622b3d
97 lines
2.1 KiB
Python
97 lines
2.1 KiB
Python
SRC = 'src/main/java/com/google/gwtexpui/'
|
|
|
|
gwt_module(
|
|
name = 'Clippy',
|
|
srcs = glob([SRC + 'clippy/client/*.java']),
|
|
gwt_xml = SRC + 'clippy/Clippy.gwt.xml',
|
|
resources = [
|
|
SRC + 'clippy/client/clippy.css',
|
|
SRC + 'clippy/client/clippy.swf',
|
|
],
|
|
deps = [
|
|
':SafeHtml',
|
|
':UserAgent',
|
|
'//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']),
|
|
gwt_xml = SRC + 'globalkey/GlobalKey.gwt.xml',
|
|
resources = [
|
|
SRC + 'globalkey/client/KeyConstants.properties',
|
|
SRC + 'globalkey/client/key.css',
|
|
],
|
|
deps = [
|
|
':SafeHtml',
|
|
':UserAgent',
|
|
'//lib/gwt:user',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'linker_server',
|
|
srcs = glob([SRC + 'linker/server/*.java']),
|
|
provided_deps = ['//lib:servlet-api-3_1'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'Progress',
|
|
srcs = glob([SRC + 'progress/client/*.java']),
|
|
gwt_xml = SRC + 'progress/Progress.gwt.xml',
|
|
resources = [SRC + 'progress/client/progress.css'],
|
|
deps = ['//lib/gwt:user'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'SafeHtml',
|
|
srcs = glob([SRC + 'safehtml/client/*.java']),
|
|
gwt_xml = SRC + 'safehtml/SafeHtml.gwt.xml',
|
|
resources = [SRC + 'safehtml/client/safehtml.css'],
|
|
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:junit',
|
|
'//lib/gwt:user',
|
|
'//lib/gwt:dev',
|
|
],
|
|
source_under_test = [':SafeHtml'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'UserAgent',
|
|
srcs = glob([SRC + 'user/client/*.java']),
|
|
gwt_xml = SRC + 'user/User.gwt.xml',
|
|
deps = ['//lib/gwt:user'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'server',
|
|
srcs = glob([SRC + 'server/*.java']),
|
|
provided_deps = ['//lib:servlet-api-3_1'],
|
|
visibility = ['PUBLIC'],
|
|
)
|