mirror of
https://github.com/processing/processing4.git
synced 2026-05-01 08:25:52 +02:00
maven core
This commit is contained in:
35
core/different/build.gradle
Normal file
35
core/different/build.gradle
Normal file
@@ -0,0 +1,35 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <JavaNativeFoundation/JavaNativeFoundation.h>
|
||||
|
||||
// #include <jni.h>
|
||||
|
||||
JNIEXPORT void JNICALL Java_processing_core_ThinkDifferent_hideMenuBar
|
||||
(JNIEnv *env, jclass clazz, jboolean visible, jboolean kioskMode)
|
||||
|
||||
Reference in New Issue
Block a user