gerrit/gerrit-prettify/BUCK
Yuxuan 'fishy' Wang 5f6ecc4bbd Pack prettify.min.{js,css} into documentation.
Pack prettify.{js,css} files from gerrit-prettify into the documentation
package as prettify.min.{js,css}.

Bug: Issue 3440
Change-Id: I86585477fc43781768d4883c97c5c275b5bb8760
(cherry picked from commit 894dd9d103)
2015-06-26 03:04:09 +00:00

60 lines
1.3 KiB
Python

SRC = 'src/main/java/com/google/gerrit/prettify/'
gwt_module(
name = 'client',
srcs = glob([
SRC + 'client/**/*.java',
SRC + 'common/**/*.java',
]),
gwt_xml = SRC + 'PrettyFormatter.gwt.xml',
resources = glob([
'src/main/java/com/google/gerrit/prettify/client/*.properties',
]),
deps = [
':google-code-prettify',
'//gerrit-patch-jgit:client',
'//gerrit-reviewdb:client',
'//gerrit-gwtexpui:SafeHtml',
'//lib:guava',
'//lib:gwtjsonrpc',
'//lib/gwt:user',
'//lib/jgit:jgit',
],
visibility = ['PUBLIC'],
)
java_library(
name = 'google-code-prettify',
resources = glob([
'src/main/resources/com/google/gerrit/prettify/client/**/*',
]),
deps = [
'//lib:LICENSE-Apache2.0',
],
)
java_library(
name = 'server',
srcs = glob([SRC + 'common/**/*.java']),
deps = [
'//gerrit-patch-jgit:server',
'//gerrit-reviewdb:server',
'//lib:guava',
'//lib:gwtjsonrpc',
'//lib/jgit:jgit',
],
visibility = ['PUBLIC'],
)
export_file(
name = 'prettify.min.js',
src = 'src/main/resources/com/google/gerrit/prettify/client/prettify.js',
visibility = ['//Documentation:'],
)
export_file(
name = 'prettify.min.css',
src = 'src/main/resources/com/google/gerrit/prettify/client/prettify.css',
visibility = ['//Documentation:'],
)