build(binding): add universal macOS ARM64 dylib and static FreeType compilation
- Static FreeType linking flow for all OS - Flow to build universal binaries for macOS (x86_64, aarch64) - Simplified CI workflow by removing FreeType branches from the build matrix Added 2 new scripts: 1. `buildSrc/scripts/vendor_freetype.sh` 2. `buildSrc/scripts/build.sh` The first script prepares FreeType for usage in the build process. The result of this script is used in the `GenerateLibs` task. Other ways of building with FreeType are removed. If it's impossible to build with FreeType, it is recommended to set `freetype=false`. The second script aggregates commands to build native binaries. It includes specific steps, such as creating a universal library for macOS and copying the result to the specific folder `/tmp/imgui/dst`. Script 1 can be used for local builds. Script 2 is primarily intended for use in CI.
This commit is contained in:
16 files changed
+423
-220
No files matched your search
@@ -31,22 +31,10 @@ switch (findProperty('deployType')) {
|
||||
break
|
||||
case 'macos':
|
||||
packageName = 'imgui-java-natives-macos'
|
||||
packageDesc = 'Native binaries for imgui-java binding for MacOS'
|
||||
packageDesc = 'Native binaries for imgui-java binding for macOS'
|
||||
moduleName = 'imgui.natives.macos'
|
||||
libName = 'libimgui-java64.dylib'
|
||||
break
|
||||
case 'macosarm64':
|
||||
packageName = 'imgui-java-natives-macos-arm64'
|
||||
packageDesc = 'Native binaries for imgui-java binding for MacOS arm64'
|
||||
moduleName = 'imgui.natives.macos-arm64'
|
||||
libName = 'libimgui-javaarm64.dylib'
|
||||
break
|
||||
}
|
||||
|
||||
if (findProperty('freetype') == 'true') {
|
||||
packageName += '-ft'
|
||||
packageDesc += ' with Freetype support'
|
||||
fromDir += '/freetype'
|
||||
}
|
||||
|
||||
jar {
|
||||
|
||||
Reference in new issue
Block a user