mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
Add classpath for native pscrypto libraries
This commit is contained in:
parent
aeaaba50f5
commit
35a592476f
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -17,3 +17,5 @@ out/
|
|||
*.so
|
||||
*.dll
|
||||
*.exe
|
||||
*.zip
|
||||
pscrypto-lib/
|
||||
|
|
|
|||
13
build.sbt
13
build.sbt
|
|
@ -18,6 +18,12 @@ lazy val commonSettings = Seq(
|
|||
)
|
||||
)
|
||||
|
||||
lazy val pscryptoSettings = Seq(
|
||||
unmanagedClasspath in Test += (baseDirectory in ThisBuild).value / "pscrypto-lib",
|
||||
unmanagedClasspath in Runtime += (baseDirectory in ThisBuild).value / "pscrypto-lib",
|
||||
unmanagedResources in Runtime += (baseDirectory in ThisBuild).value / "pscrypto-lib"
|
||||
)
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
settings(commonSettings: _*).
|
||||
aggregate(pslogin, common)
|
||||
|
|
@ -26,10 +32,13 @@ lazy val pslogin = (project in file("pslogin")).
|
|||
settings(commonSettings: _*).
|
||||
settings(
|
||||
name := "pslogin"
|
||||
).settings(packAutoSettings: _*).dependsOn(common)
|
||||
).
|
||||
settings(pscryptoSettings: _*).
|
||||
settings(packAutoSettings: _*).dependsOn(common)
|
||||
|
||||
lazy val common = (project in file("common")).
|
||||
settings(commonSettings: _*).
|
||||
settings(
|
||||
name := "common"
|
||||
)
|
||||
).
|
||||
settings(pscryptoSettings: _*)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,12 @@ object CryptoInterface {
|
|||
val classpathEntries = classpath.split(File.pathSeparator)
|
||||
|
||||
val myLibraryPath = System.getProperty("user.dir")
|
||||
val jnaLibrary = System.getProperty("jna.library.path")
|
||||
val javaLibrary = System.getProperty("java.library.path")
|
||||
println("User dir: " + myLibraryPath)
|
||||
println("JNA Lib: " + jnaLibrary)
|
||||
println("Java Lib: " + javaLibrary)
|
||||
print("Classpath: ")
|
||||
classpathEntries.foreach(println)
|
||||
|
||||
println("Required data model: " + System.getProperty("sun.arch.data.model"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue