diff --git a/.gitignore b/.gitignore index 92dfe06..8084942 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # build directory build/ builddir/ +target/ # output.png output.png diff --git a/README.md b/README.md index 75b86a1..46ab50d 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,37 @@ Work-in-progress pure java JPEG XL decoder ## Compiling +### [Meson] + JXLatte is built with the [Meson build system](https://mesonbuild.com/). To build, create a build directory, for example, with `mkdir build && cd build`. Then run `meson setup ../` to set up the build directory, and `ninja` to compile JXLatte. +### [Maven] + +You can also build JXLatte using Maven. Just run `mvn clean install`. + +The artifact will be installed to the local repository, and then you can reference it in your project like this + +Maven +```xml + + com.traneptora + jxlatte + 0.1.0 + +``` +Gradle +```groovy +implementation 'com.traneptora:jxlatte:0.1.0' +``` +Gradle(Kotlin) +```kotlin +implementation("com.traneptora:jxlatte:0.1.0") +``` + ## Running JXLatte can be executed just like any normal jar file: diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..49450dd --- /dev/null +++ b/pom.xml @@ -0,0 +1,62 @@ + + + 4.0.0 + + com.traneptora + jxlatte + 0.1.0 + jar + + UTF-8 + + + + + java + + + false + java/resources + + bt2020-d65-pq.icc.zz + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + 11 + 11 + + -Xlint + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + true + + meson.build + + + + + attach-sources + verify + + jar-no-fork + + + + + + +