mirror of https://github.com/weisJ/darklaf.git
darculadarcula-themefeelguihacktoberfestintellijintellij-themelaflooklookandfeelnativesolarizedsolarized-dark-themesolarized-light-themesvgswingthemethemes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
808 B
34 lines
808 B
5 years ago
|
plugins {
|
||
|
`jni-library`
|
||
|
}
|
||
|
|
||
|
fun DependencyHandlerScope.javaImplementation(dep: Any) {
|
||
|
compileOnly(dep)
|
||
|
runtimeOnly(dep)
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
javaImplementation(project(":darklaf-native-utils"))
|
||
|
javaImplementation("net.java.dev.jna:jna")
|
||
|
}
|
||
|
|
||
|
library {
|
||
|
targetMachines.addAll(machines.windows.x86, machines.windows.x86_64)
|
||
|
binaries.configureEach {
|
||
|
compileTask.get().compilerArgs.addAll(toolChain.let {
|
||
|
if (it is Gcc || it is Clang) listOf("--std=c++11")
|
||
|
else emptyList()
|
||
|
})
|
||
|
}
|
||
|
binaries.whenElementFinalized(CppSharedLibrary::class) {
|
||
|
linkTask.get().linkerArgs.addAll(
|
||
|
"dwmapi.lib",
|
||
|
"user32.lib",
|
||
|
"Gdi32.lib",
|
||
|
"-ldwmapi",
|
||
|
"-lGdi32",
|
||
|
"-luser32"
|
||
|
)
|
||
|
}
|
||
|
}
|