Files
rive-cpp/decoders/build/premake5.lua
csmartdalton 7f3d8d96bf build: Fix premake5 build on macOS Sequoia (#10263) b4298b861b
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>
2025-07-31 00:27:07 +00:00

40 lines
695 B
Lua

workspace('rive')
configurations({ 'debug', 'release' })
require('setup_compiler')
rive = path.getabsolute('../../')
dofile(rive .. '/dependencies/premake5_libpng.lua')
project('rive_decoders')
dependson('libpng')
kind('StaticLib')
language('C++')
cppdialect('C++17')
targetdir('%{cfg.buildcfg}')
objdir('obj/%{cfg.buildcfg}')
fatalwarnings { "All" }
includedirs({ '../include', '../../include', libpng })
files({ '../src/**.cpp' })
filter({ 'system:windows' })
do
architecture('x64')
end
filter('configurations:debug')
do
defines({ 'DEBUG' })
symbols('On')
end
filter('configurations:release')
do
defines({ 'RELEASE' })
defines({ 'NDEBUG' })
optimize('On')
end