| 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-ApiType: plugin', |
| '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'], |
| ) |
| |