Skip to content

Commit

Permalink
Fixed build script for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tod-Rive committed Jan 28, 2025
1 parent ff495d2 commit 495e041
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build/rive_build_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 495e041

Please sign in to comment.