blob: df1e8a6cad82d524e75e3600c1821e13e5783305 [file] [log] [blame]
include_defs('//bucklets/gerrit_plugin.bucklet')
MODULE = 'com.googlesource.gerrit.plugins.xdocs.XDocs'
if STANDALONE_MODE:
ASCIIDOCTOR = '//lib/asciidoctor:asciidoc_lib'
DAISYDIFF = '//lib/daisydiff:daisydiff_lib'
DOCX4J = '//lib/docx4j:docx4j_lib'
else:
ASCIIDOCTOR = '//plugins/x-docs/lib/asciidoctor:asciidoc_lib'
DAISYDIFF = '//plugins/x-docs/lib/daisydiff:daisydiff_lib'
DOCX4J = '//plugins/x-docs/lib/docx4j:docx4j_lib'
gerrit_plugin(
name = 'x-docs',
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/**/*']),
gwt_module = MODULE,
manifest_entries = [
'Gerrit-PluginName: xdocs',
'Gerrit-ApiType: plugin',
'Gerrit-ApiVersion: 2.11-SNAPSHOT',
'Gerrit-HttpModule: com.googlesource.gerrit.plugins.xdocs.HttpModule',
'Gerrit-Module: com.googlesource.gerrit.plugins.xdocs.Module',
'Gerrit-InitStep: com.googlesource.gerrit.plugins.xdocs.XDocInit',
],
deps = [
ASCIIDOCTOR,
DAISYDIFF,
DOCX4J,
],
)
# this is required for bucklets/tools/eclipse/project.py to work
java_library(
name = 'classpath',
deps = [':x-docs__plugin'],
)