mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 13:11:19 +01:00
It looks like the premake5 "v5.0.0-beta3" tag isn't compatible with Sequoia 15.4.1. Bump our tag to v5.0.0-beta7 and update the deprecated features we had been using. Also fix the script to rebuild if the premake5 binary doesn't exist. Before it only checked if the parent "premake-core" directory existed, so if a build had failed previously, build_rive.sh would fail forever without ever attempting to build premake5 again. Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com> Co-authored-by: Jonathon Copeland <jcopela4@gmail.com>
47 lines
1.3 KiB
Lua
47 lines
1.3 KiB
Lua
dofile('rive_build_config.lua')
|
|
|
|
dependencies = os.getenv('DEPENDENCIES')
|
|
|
|
project('rive_cg_renderer')
|
|
do
|
|
kind('StaticLib')
|
|
includedirs({ 'include', '../include' })
|
|
|
|
libdirs({ '../../build/%{cfg.system}/bin/' .. RIVE_BUILD_CONFIG })
|
|
|
|
files({ 'src/**.cpp' })
|
|
|
|
fatalwarnings { "All" }
|
|
|
|
filter('system:windows')
|
|
do
|
|
architecture('x64')
|
|
defines({ '_USE_MATH_DEFINES' })
|
|
end
|
|
|
|
filter({ 'system:macosx', 'options:variant=runtime' })
|
|
do
|
|
buildoptions({ '-fembed-bitcode -arch arm64 -arch x86_64' })
|
|
end
|
|
|
|
if os.host() == 'macosx' then
|
|
iphoneos_sysroot = os.outputof('xcrun --sdk iphoneos --show-sdk-path')
|
|
iphonesimulator_sysroot = os.outputof('xcrun --sdk iphonesimulator --show-sdk-path')
|
|
|
|
filter({ 'system:ios', 'options:variant=system' })
|
|
do
|
|
buildoptions({
|
|
'-mios-version-min=13.0 -fembed-bitcode -arch arm64 -isysroot ' .. iphoneos_sysroot,
|
|
})
|
|
end
|
|
|
|
filter({ 'system:ios', 'options:variant=emulator' })
|
|
do
|
|
buildoptions({
|
|
'--target=arm64-apple-ios13.0.0-simulator -mios-version-min=13.0 -arch x86_64 -arch arm64 -isysroot '
|
|
.. iphonesimulator_sysroot,
|
|
})
|
|
end
|
|
end
|
|
end
|