Files
rive-cpp/tests/premake5.lua
csmartdalton 6efab9c56f feat: Update goldens and player to deploy in the browser (#10453) 827077b899
Set up http and websocket servers in deploy_tests.py that allow us to
communicate with the remote wasm app similarly to how we communicate
with android & ios devices. Add a "-w" target to check_golds.sh that
kicks tests off in the default browser.

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
2025-08-27 02:58:49 +00:00

52 lines
1.0 KiB
Lua

dofile('rive_tools_project.lua')
if not _OPTIONS['for_unreal'] then
rive_tools_project('bench', _OPTIONS['os'] == 'ios' and 'StaticLib' or 'ConsoleApp')
do
files({ 'bench/*.cpp' })
end
end
rive_tools_project('gms', 'RiveTool')
do
files({ 'gm/*.cpp' })
filter({ 'options:for_unreal' })
do
defines({ 'RIVE_UNREAL' })
end
filter('system:emscripten')
do
files({ 'gm/gms.html' })
end
end
rive_tools_project('goldens', 'RiveTool')
do
exceptionhandling('On')
files({ 'goldens/goldens.cpp' })
filter({ 'options:for_unreal' })
do
defines({ 'RIVE_UNREAL' })
end
filter('system:emscripten')
do
files({ 'goldens/goldens.html' })
end
end
rive_tools_project('player', 'RiveTool')
do
files({ 'player/player.cpp' })
filter('system:emscripten')
do
files({ 'player/player.html' })
end
end
rive_tools_project('command_buffer_example', 'RiveTool')
do
files({
'command_buffer_example/command_buffer_example.cpp',
})
end