Skip to content

Commit

Permalink
Added support for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saby1101 committed Jan 28, 2019
1 parent 8e0eb01 commit dc32231
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'lemonjava'
version '1.0-SNAPSHOT'
version '2.0-SNAPSHOT'

sourceCompatibility = 1.8

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/lemonjava/Library.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class Library {
suffix = "-linux-amd64.so";
} else if (arch64 && osx) {
suffix = "-osx-amd64.dylib";
} else if (windows) {
throw new IllegalArgumentException("Windows not supported!");
} else if (arch64 && windows) {
suffix = "-win-amd64.dll";
} else {
throw new IllegalStateException("Couldn't find lib for lemonc");
}
Expand Down
Binary file added src/main/resources/libs/liblemonc-win-amd64.dll
Binary file not shown.

0 comments on commit dc32231

Please sign in to comment.