Files
rive-cpp/tests/premake5.lua
rivessamr d674f970da Add android unit tests and remove running tests in platform testing
Diffs=
507af3256 Add android unit tests and remove running tests in platform testing (#8067)

Co-authored-by: rivessamr <suki@rive.app>
2024-09-06 21:12:06 +00:00

78 lines
1.7 KiB
Lua

dofile('rive_tools_project.lua')
project('imagediff')
do
kind('ConsoleApp')
cppdialect('C++17')
exceptionhandling('On')
defines({ 'RIVE_TOOLS_NO_GLFW', 'RIVE_TOOLS_NO_GL' })
includedirs({
'include',
'.',
RIVE_RUNTIME_DIR .. '/skia/dependencies/',
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME,
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME .. '/include/core',
libpng,
zlib,
})
files({
'imagediff/*.cpp',
'common/write_png_file.cpp',
})
libdirs({
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME .. '/out/' .. SKIA_OUT_NAME,
})
links({
'skia',
'libpng',
'zlib',
})
filter({ 'system:windows' })
do
links({ 'opengl32' })
end
filter('system:linux')
do
links({ 'GL' })
end
filter('system:android or ios')
do
kind('None') -- Don't build imagediff on mobile.
end
end
rive_tools_project('bench', _OPTIONS['os'] == 'ios' and 'StaticLib' or 'ConsoleApp')
do
files({ 'bench/*.cpp' })
end
rive_tools_project('gms', 'RiveTool')
do
externalincludedirs({
RIVE_RUNTIME_DIR .. '/skia/dependencies/',
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME,
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME .. '/include/core',
})
files({ 'gm/*.cpp' })
libdirs({
RIVE_RUNTIME_DIR .. '/skia/dependencies/' .. SKIA_DIR_NAME .. '/out/' .. SKIA_OUT_NAME,
})
links({ 'skia' })
end
rive_tools_project('goldens', 'RiveTool')
do
exceptionhandling('On')
files({ 'goldens/goldens.cpp' })
end
rive_tools_project('player', 'RiveTool')
do
files({ 'player/player.cpp' })
end