From 495e0418047e5859c13a0ad6e84400749f311fc6 Mon Sep 17 00:00:00 2001 From: Tod-Rive Date: Tue, 28 Jan 2025 13:22:30 -0500 Subject: [PATCH] Fixed build script for Windows. --- build/rive_build_config.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build/rive_build_config.lua b/build/rive_build_config.lua index 3f237ccf..d1846d21 100644 --- a/build/rive_build_config.lua +++ b/build/rive_build_config.lua @@ -414,11 +414,17 @@ if _OPTIONS['os'] == 'android' then premake.tools.android_ndk[k] = v end + -- Windows requires extentions for .cmd files. + local ndk_ext = ''; + if os.host() == 'windows' then + ndk_ext = '.cmd'; + end + -- update the android_ndk toolset to use the appropriate binaries. local android_ndk_tools = { - cc = ndk_toolchain .. '/bin/' .. android_target .. '-clang', - cxx = ndk_toolchain .. '/bin/' .. android_target .. '-clang++', - ar = ndk_toolchain .. '/bin/llvm-ar', + cc = ndk_toolchain .. '/bin/' .. android_target .. '-clang' .. ndk_ext, + cxx = ndk_toolchain .. '/bin/' .. android_target .. '-clang++' .. ndk_ext, + ar = ndk_toolchain .. '/bin/llvm-ar' } function premake.tools.android_ndk.gettoolname(cfg, tool) return android_ndk_tools[tool]