David Ostrovsky | fa18907 | 2016-11-30 08:52:06 +0100 | [diff] [blame] | 1 | load("//tools/bzl:gwt.bzl", "gwt_module") |
David Ostrovsky | b81b4f7 | 2016-05-21 19:55:01 +0200 | [diff] [blame] | 2 | |
David Ostrovsky | fa18907 | 2016-11-30 08:52:06 +0100 | [diff] [blame] | 3 | SRC = "src/main/java/com/google/gerrit/prettify/" |
David Ostrovsky | b81b4f7 | 2016-05-21 19:55:01 +0200 | [diff] [blame] | 4 | |
| 5 | gwt_module( |
David Ostrovsky | fa18907 | 2016-11-30 08:52:06 +0100 | [diff] [blame] | 6 | 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 Ostrovsky | b81b4f7 | 2016-05-21 19:55:01 +0200 | [diff] [blame] | 22 | ) |
| 23 | |
| 24 | java_library( |
David Ostrovsky | fa18907 | 2016-11-30 08:52:06 +0100 | [diff] [blame] | 25 | 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 Ostrovsky | b81b4f7 | 2016-05-21 19:55:01 +0200 | [diff] [blame] | 35 | ) |
Yuxuan 'fishy' Wang | 14fdf93 | 2016-09-30 07:59:54 +0800 | [diff] [blame] | 36 | |
| 37 | exports_files([ |
David Ostrovsky | fa18907 | 2016-11-30 08:52:06 +0100 | [diff] [blame] | 38 | "src/main/resources/com/google/gerrit/prettify/client/prettify.css", |
| 39 | "src/main/resources/com/google/gerrit/prettify/client/prettify.js", |
Yuxuan 'fishy' Wang | 14fdf93 | 2016-09-30 07:59:54 +0800 | [diff] [blame] | 40 | ]) |