Added osx support

This commit is contained in:
Andrea Cavalli 2020-08-23 19:48:42 +02:00
parent 076236f7e2
commit ca519eefca
2 changed files with 12 additions and 2 deletions

View File

@ -52,12 +52,17 @@
<groupId>it.tdlight</groupId>
<artifactId>tdlight-natives-linux-aarch64</artifactId>
<version>1.1.7</version>
</dependency>
</dependency>
<dependency>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-natives-windows-amd64</artifactId>
<version>1.1.10</version>
</dependency>
</dependency>
<dependency>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-natives-osx-amd64</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>

View File

@ -111,6 +111,11 @@ public class LoadLibrary {
break;
}
break;
case osx:
if (arch == Arch.amd64) {
classForResource = it.tdlight.tdlight.osx.amd64.LoadLibrary.class;
}
break;
case win:
if (arch == Arch.amd64) {
classForResource = it.tdlight.tdlight.win.amd64.LoadLibrary.class;