mirror of
				https://github.com/JakeWharton/mosaic.git
				synced 2025-10-31 18:58:37 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			759 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			759 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
 | |
| import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
 | |
| 
 | |
| apply plugin: 'org.jetbrains.kotlin.multiplatform'
 | |
| apply plugin: 'org.jetbrains.kotlin.plugin.compose'
 | |
| apply from: "$rootDir/addAllTargets.gradle"
 | |
| 
 | |
| kotlin {
 | |
| 	sourceSets {
 | |
| 		commonMain {
 | |
| 			dependencies {
 | |
| 				implementation projects.mosaicRuntime
 | |
| 				implementation libs.androidx.collection
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	jvm {
 | |
| 		binaries {
 | |
| 			executable {
 | |
| 				mainClass = 'example.SnakeKt'
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	targets.withType(KotlinNativeTarget).configureEach { target ->
 | |
| 		target.binaries.executable {
 | |
| 			entryPoint = 'example.main'
 | |
| 			if (buildType == NativeBuildType.DEBUG) {
 | |
| 				linkTaskProvider.configure {
 | |
| 					enabled = false
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 | 
