[code-reflection] Integrated: Git use cmake jextract in maven
Gary Frost
gfrost at openjdk.org
Thu Apr 17 10:50:43 UTC 2025
On Thu, 17 Apr 2025 10:45:56 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Previously we added cmake artifacts (CMakeFiles.txt) to opencl, opengl and cuda subdirs in extractions.
>
> Here we added the resulting java source files to the maven pom hierarchy.
>
> Upshot of which, we (on Mac with OpenCL) use maven to build everything.. well nearly, we still need to manually run cmake
>
> So this should work
>
> bash maven-build.bash
> java @hat/run ffi-opencl nbody
>
> Note that the maven build bash script actually has a new step to run cmake on extractions dir
>
>
> echo We need to run cmake in extractions dir first
> pushd extractions
> rm -rf cmake-build-debug
> cmake -B cmake-build-debug
> cmake --build cmake-build-debug --target extract
> popd
> echo Now we can use maven
> mvn -e clean compile package install
> ```
>
> I will remove this and put it into the maven build, when I grok how to add a source generator to maven.
This pull request has now been integrated.
Changeset: 0f39dd1c
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/0f39dd1cd1bd4fedeabd4d919beffde6e36f7d00
Stats: 171 lines in 10 files changed: 150 ins; 2 del; 19 mod
Git use cmake jextract in maven
-------------
PR: https://git.openjdk.org/babylon/pull/400
More information about the babylon-dev
mailing list