mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
Native window decorations: do not try to build native library (on Windows) if no C++ compiler is available
This commit is contained in:
@@ -30,6 +30,8 @@ library {
|
|||||||
|
|
||||||
sharedLibrary {
|
sharedLibrary {
|
||||||
compileTasks.configureEach {
|
compileTasks.configureEach {
|
||||||
|
onlyIf { isBuildable }
|
||||||
|
|
||||||
doFirst {
|
doFirst {
|
||||||
println( "Used Tool Chain:" )
|
println( "Used Tool Chain:" )
|
||||||
println( " - ${toolChain.get()}" )
|
println( " - ${toolChain.get()}" )
|
||||||
@@ -62,6 +64,8 @@ library {
|
|||||||
}
|
}
|
||||||
|
|
||||||
linkTask.configure {
|
linkTask.configure {
|
||||||
|
onlyIf { isBuildable }
|
||||||
|
|
||||||
val nativesDir = project( ":flatlaf-core" ).projectDir.resolve( "src/main/resources/com/formdev/flatlaf/natives" )
|
val nativesDir = project( ":flatlaf-core" ).projectDir.resolve( "src/main/resources/com/formdev/flatlaf/natives" )
|
||||||
val libraryName = "flatlaf-windows-x86_64.dll"
|
val libraryName = "flatlaf-windows-x86_64.dll"
|
||||||
|
|
||||||
@@ -85,6 +89,10 @@ library {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.named( "jar" ) {
|
||||||
|
onlyIf { isBuildable }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user