mirror of
https://github.com/processing/processing4.git
synced 2026-05-06 19:06:19 +02:00
36 lines
902 B
Groovy
36 lines
902 B
Groovy
import org.gradle.internal.jvm.Jvm
|
|
|
|
|
|
plugins {
|
|
id("objective-c")
|
|
}
|
|
|
|
version = '1'
|
|
|
|
model{
|
|
components {
|
|
Different(NativeLibrarySpec) {
|
|
sources {
|
|
objc{
|
|
source {
|
|
srcDir "./"
|
|
include "*.m"
|
|
}
|
|
}
|
|
}
|
|
binaries.all {
|
|
def jvmHome = Jvm.current().javaHome
|
|
|
|
if (targetPlatform.operatingSystem.macOsX) {
|
|
objcCompiler.args '-I', "${jvmHome}/include"
|
|
objcCompiler.args '-I', "${jvmHome}/include/darwin"
|
|
objcCompiler.args '-mmacosx-version-min=10.9'
|
|
linker.args '-mmacosx-version-min=10.9'
|
|
linker.args '-framework', 'AppKit'
|
|
linker.args '-lobjc'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|