Awesome
Edigen Gradle Plugin
This is a Gradle plugin which automatically generates an instruction decoder and disassembler of an emuStudio CPU plugin from a specification using Edigen.
It is a reimplementation of edigen-maven-plugin to be used with Gradle.
For more information, see official documentation of emuStudio plugin development.
Usage
NOTE: The plugin is compiled against Java 11 (file version 55). Earlier Java versions are thus not supported.
plugins {
id 'net.emustudio.edigen-plugin' version 1.5.2
}
edigen {
decoderName = 'decoder.package.ClassName'
disassemblerName = 'disassembler.package.ClassName'
}
Reference
Ths plugin provides a single task edigen/generateSources
. It can be configured using edigen
extension block,
with the following parameters.
Required parameters
decoderName
- the generated instruction decoder package + class namedisassemblerName
- the generated disassembler package + class name
Optional parameters
specification
- the specification file location; default:src/main/edigen/cpu.eds
decoderTemplate
- the template to use for the decoder generationdecoderOutputDir
- the generated decoder output directory; default:target/generated-sources/edigen/
. This path will be appended with the decoder package namedisassemblerTemplate
- the template to use for the disassembler generationdisassemblerOutputDir
- the generated disassembler output directory; default:target/generated-sources/edigen/
. This path will be appended with the disassembler package namedebug
- setting to true enables Edigen's debug mode