blob: 18180b36806c9e72a7e7b0941b996ef32f78274a [file] [log] [blame]
David Ostrovskyfa189072016-11-30 08:52:06 +01001load("//tools/bzl:gwt.bzl", "gwt_module")
David Ostrovskyb81b4f72016-05-21 19:55:01 +02002
David Ostrovskyfa189072016-11-30 08:52:06 +01003SRC = "src/main/java/com/google/gerrit/prettify/"
David Ostrovskyb81b4f72016-05-21 19:55:01 +02004
5gwt_module(
David Ostrovskyfa189072016-11-30 08:52:06 +01006 name = "client",
7 srcs = glob([
8 SRC + "common/**/*.java",
9 ]),
10 exported_deps = [
11 "//gerrit-extension-api:client",
12 "//gerrit-gwtexpui:SafeHtml",
13 "//gerrit-patch-jgit:Edit",
14 "//gerrit-patch-jgit:client",
15 "//gerrit-reviewdb:client",
16 "//lib:gwtjsonrpc",
17 "//lib:gwtjsonrpc_src",
18 ],
19 gwt_xml = SRC + "PrettyFormatter.gwt.xml",
20 visibility = ["//visibility:public"],
21 deps = ["//lib/gwt:user-neverlink"],
David Ostrovskyb81b4f72016-05-21 19:55:01 +020022)
23
24java_library(
David Ostrovskyfa189072016-11-30 08:52:06 +010025 name = "server",
26 srcs = glob([SRC + "common/**/*.java"]),
27 visibility = ["//visibility:public"],
28 deps = [
29 "//gerrit-patch-jgit:server",
30 "//gerrit-reviewdb:server",
31 "//lib:guava",
32 "//lib:gwtjsonrpc",
33 "//lib/jgit/org.eclipse.jgit:jgit",
34 ],
David Ostrovskyb81b4f72016-05-21 19:55:01 +020035)
Yuxuan 'fishy' Wang14fdf932016-09-30 07:59:54 +080036
37exports_files([
David Ostrovskyfa189072016-11-30 08:52:06 +010038 "src/main/resources/com/google/gerrit/prettify/client/prettify.css",
39 "src/main/resources/com/google/gerrit/prettify/client/prettify.js",
Yuxuan 'fishy' Wang14fdf932016-09-30 07:59:54 +080040])