From 031e2f586b0e57a7138caa0bc21a71be94f83684 Mon Sep 17 00:00:00 2001 From: Tom Wojciechowski Date: Wed, 16 Oct 2024 16:26:27 +0100 Subject: [PATCH] small initial change to readme --- README.md | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 53c6052a..8e6cdb60 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,6 @@ plugins { jnigen { // Your shared library name sharedLibName = "example" - //temporaryDir = "target" - //libsDir = "libs" - //jniDir = "jni" // Shared configuration for all BuildTargets. Executed first // See all BuildTarget options here: https://github.com/libgdx/gdx-jnigen/blob/master/gdx-jnigen/src/main/java/com/badlogic/gdx/jnigen/BuildTarget.java @@ -69,30 +66,49 @@ jnigen { // All BuildTarget options can be further customized in an OS+Arch specific manner within a {} block // Add windows 32-bit BuildTarget and customize it - add(Windows, x32) { + addWindows(x32, x86) { //cFlags += " -fextraflag=fake " //compilerPrefix = "someprefix-"; //cIncludes += "windowsspecificdir/*.c" } - add(Windows, x64) - add(Linux, x32) - add(Linux, x64) - add(Linux, x32, ARM) - add(Linux, x64, ARM) - add(MacOsX, x64) - add(MacOsX, x64, ARM) - add(Android) { + + //Add windows 64 bit, x86, MSVC toolchain + addWindows(x64, x86, MSVC) { + msvcPreLinkerFlags += "/MD" + } + + addWindows(x64, x86) + addLinux(x32, x86) + addLinux(x64, x86) + addLinux(x32, ARM) + addLinux(x64, ARM) + addMac(x64, x86) + addMac(x64, ARM) + + //Auto add all possible ABIs + addAndroid() { // Add extra content to the generated Application.mk file - //androidApplicationMk += "APP_STL := c++_static" - // Specify which ABIs to build - //androidABIs = ["armeabi", "armeabi-v7a", "x86", "x86_64", "arm64-v8a"] + //androidApplicationMk += ["APP_STL := c++_static"] } - add(IOS) { + + //Add specific android ABI + addAndroid(AndroidABI.ABI_ARM64_V8A) + + //Auto add all possible iOS targets, including sim + addIOS() { // Define ios framework bundle identifier // xcframeworkBundleIdentifier = "com.badlogic.gdx.JniGen // Deinfe minimum supported iOS version // minIOSVersion = "11.0" } + + + //Add specific ios device target + addIOS(x64, ARM, DEVICE) + + //Add ios 64 bit x86 simulator target + addIOS(x64, x86, SIMULATOR) + // Customize each BuildTarget that matches the condition each({ it.os != Android && !it.isARM }) {