mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 06:20:53 +03:00
gradle: build target flatlaf-natives-windows only on Windows
(to fix build error on macOS)
This commit is contained in:
@@ -45,7 +45,8 @@ tasks {
|
|||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
// build native libraries
|
// build native libraries
|
||||||
dependsOn( ":flatlaf-natives-windows:assemble" )
|
if( org.gradle.internal.os.OperatingSystem.current().isWindows )
|
||||||
|
dependsOn( ":flatlaf-natives-windows:assemble" )
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
@@ -25,9 +25,10 @@ include( "flatlaf-demo" )
|
|||||||
include( "flatlaf-testing" )
|
include( "flatlaf-testing" )
|
||||||
include( "flatlaf-theme-editor" )
|
include( "flatlaf-theme-editor" )
|
||||||
|
|
||||||
includeProject( "flatlaf-natives-windows", "flatlaf-natives/flatlaf-natives-windows" )
|
if( org.gradle.internal.os.OperatingSystem.current().isWindows )
|
||||||
includeProject( "flatlaf-natives-jna", "flatlaf-natives/flatlaf-natives-jna" )
|
includeProject( "flatlaf-natives-windows", "flatlaf-natives/flatlaf-natives-windows" )
|
||||||
includeProject( "flatlaf-testing-modular-app", "flatlaf-testing/flatlaf-testing-modular-app" )
|
includeProject( "flatlaf-natives-jna", "flatlaf-natives/flatlaf-natives-jna" )
|
||||||
|
includeProject( "flatlaf-testing-modular-app", "flatlaf-testing/flatlaf-testing-modular-app" )
|
||||||
|
|
||||||
fun includeProject( projectPath: String, projectDir: String ) {
|
fun includeProject( projectPath: String, projectDir: String ) {
|
||||||
include( projectPath )
|
include( projectPath )
|
||||||
|
|||||||
Reference in New Issue
Block a user