|
|
## Build Dependencies
|
|
|
|
|
|
Wraith Master requires the following packages to build:
|
|
|
|
|
|
| Distribution | JDK | Both Frontends | GTK Only |
|
|
|
|--------------------|-------------------------------|---------------------------------------------------|------------------|
|
|
|
| Debian/Derivatives | `openjdk-8-jdk` or newer | `libusb-1.0-0-dev`, `gcc-multilib`, `libncurses5` | `libgtk-3-dev` |
|
|
|
| Arch/Derivatives | `jdk8-openjdk` or newer | `ncurses5-compat-libs` (AUR) | `gtk3` |
|
|
|
| Fedora | `java-1.8.0-openjdk` or newer | `libusbx-devel`, `ncurses-compat-libs` | `gtk3-devel` |
|
|
|
| OpenSUSE | `java-1_8_0-openjdk` or newer | `libusb-1_0-devel`, `libncurses5` | `gtk3-devel` |
|
|
|
| Solus | `openjdk-8` or newer | `libusb-devel` | `libgtk-3-devel` |
|
|
|
| Gentoo | `dev-java/openjdk` | `dev-libs/libusb`, `ncurses-compat` | `gtk+` |
|
|
|
|
|
|
## Instructions
|
|
|
|
|
|
Each Gradle command that follows can be run with the subproject name as a prefix in order to only build and install specific artifacts. For instance, `:cli:package` would build the command line artifact, and `:gtk:package` would build the GTK artifact.
|
|
|
|
|
|
#### Building
|
|
|
|
|
|
To build all artifacts and place them in the `build/package` directory, run the following:
|
|
|
|
|
|
```bash
|
|
|
./gradlew package
|
|
|
```
|
|
|
|
|
|
#### Installation
|
|
|
|
|
|
To install the built artifacts and their associated resources, run the following:
|
|
|
|
|
|
```bash
|
|
|
./gradlew install
|
|
|
```
|
|
|
|
|
|
#### Options
|
|
|
|
|
|
| Option | Task | Description |
|
|
|
|----------------|-----------|----------------------------------------------------------------------------------------------------------------|
|
|
|
| `-Pstrip` | `package` | Strips the binaries. This makes them smaller, but makes errors significantly harder to trace. Not recommended. |
|
|
|
| `-Pinstalldir` | `install` | Changes where all files except the udev rules will be placed on install. Defaults to `/usr/local/`. |
|
|
|
| `-Pudevdir` | `install` | Changes where the udev rules will be placed on install. Defaults to `/etc/udev/`. |
|
|
|
| `-Pnoudev` | `install` | Disables the installation of udev rules, which are automatically installed on systems that support udev. | |