Skip to content

Commit

Permalink
Add natives detection; bump blaze this repo uses to v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed Oct 30, 2023
1 parent bbb26ec commit b9f46de
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 69 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target
blaze-lite/dependency-reduced-pom.xml
ssh/src/test/java/ssh.*
*.iml
examples/pom.xml
Binary file modified blaze.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions examples/natives.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blaze.dependencies = [
"com.fizzed:jne:RELEASE"
]
19 changes: 19 additions & 0 deletions examples/natives.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import com.fizzed.blaze.Contexts;
import com.fizzed.jne.NativeTarget;
import org.slf4j.Logger;

public class natives {
static final private Logger log = Contexts.logger();

public void main() throws Exception {
final NativeTarget nativeTarget = NativeTarget.detect();

log.info("Detected native target:");
log.info(" os: {}", nativeTarget.getOperatingSystem());
log.info(" arch: {}", nativeTarget.getHardwareArchitecture());
log.info(" abi: {}", nativeTarget.getAbi());
log.info(" jneTarget: {}", nativeTarget.toJneTarget());
log.info(" rustTarget: {}", nativeTarget.toRustTarget());
}

}
69 changes: 0 additions & 69 deletions examples/pom.xml

This file was deleted.

0 comments on commit b9f46de

Please sign in to comment.