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>
40 lines
695 B
Lua
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
|