[code-reflection] Integrated: Bldr provides access to jextract
Gary Frost
gfrost at openjdk.org
Mon Oct 14 16:03:13 UTC 2024
On Mon, 14 Oct 2024 15:58:03 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Added ability to call jextract from Bldr in bld scripts
>
> ```java
> var appFrameworks = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/"
> + "Developer/SDKs/MacOSX.sdk/System/Library/Frameworks";
> var MAC_APP_FRAMEWORKS = Path.of(appFrameworks);
> var MAC_LIB_FRAMEWORKS = Path.of("/System/Library/Frameworks");
> jextract($ -> $
> .cwd(hattrickDir)
> .target_package("opencl")
> .output(path(hattrickDir, "src/main/extracted-java/"))
> .library(path(MAC_LIB_FRAMEWORKS, "OpenCL.framework/OpenCL"))
> .compile_flag("-F" + MAC_APP_FRAMEWORKS)
> .header(path(MAC_APP_FRAMEWORKS, "OpenCL.framework/Headers/opencl.h"))
> );
This pull request has now been integrated.
Changeset: 09bd0bbc
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/09bd0bbc38441646d5e74d97669a57e5b4349e3a
Stats: 364 lines in 5 files changed: 232 ins; 53 del; 79 mod
Bldr provides access to jextract
-------------
PR: https://git.openjdk.org/babylon/pull/253
More information about the babylon-dev
mailing list