mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
Build GLFW with premake instead of requiring the user to call out into a custom script thatbuses their cmake. feat(scripting): split code panels (#10655) 9d8b49152e * feature(scripting): command palette * feature: adding split pane saving * chore: update to latest luau * fix: pixel correct scrollbars * feature: reload scroll position of script pane * feature: module titles on panes * chore: merging command palettes * fix: cleanup * chore: refactor searchbar tests * fix: failing test * chore: cleanup * chore: cleanup * chore: cleanup unused commented code * feature: hover for command palette items * chore: cleanup mocks Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com> Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
59 lines
1.1 KiB
Lua
Executable File
59 lines
1.1 KiB
Lua
Executable File
local dependency = require('dependency')
|
|
local luau = dependency.github('luigi-rosso/luau', 'rive_0_17')
|
|
|
|
dofile('rive_build_config.lua')
|
|
|
|
includedirs({
|
|
'./',
|
|
})
|
|
forceincludes({ 'rive_luau.hpp' })
|
|
|
|
project('luau_vm')
|
|
do
|
|
kind('StaticLib')
|
|
|
|
includedirs({
|
|
luau .. '/VM/include',
|
|
luau .. '/Common/include',
|
|
})
|
|
|
|
files({
|
|
luau .. '/VM/src/**.cpp',
|
|
})
|
|
defines({ 'LUA_USE_LONGJMP', 'RIVE_LUAU' })
|
|
optimize('Size')
|
|
if TESTING == true then
|
|
filter({ 'system:windows' })
|
|
do
|
|
buildoptions({ '/fp:precise' })
|
|
end
|
|
end
|
|
|
|
filter({ 'options:with-asan' })
|
|
do
|
|
defines({ 'LUAU_ENABLE_ASAN' })
|
|
end
|
|
end
|
|
|
|
project('luau_compiler')
|
|
do
|
|
kind('StaticLib')
|
|
exceptionhandling('On')
|
|
|
|
includedirs({
|
|
luau .. '/Compiler/include',
|
|
luau .. '/Ast/include',
|
|
luau .. '/Common/include',
|
|
})
|
|
|
|
files({ luau .. '/Compiler/src/**.cpp', luau .. '/Ast/src/**.cpp' })
|
|
defines({ 'RIVE_LUAU' })
|
|
optimize('Size')
|
|
filter({ 'options:with-asan' })
|
|
do
|
|
defines({ 'LUAU_ENABLE_ASAN' })
|
|
end
|
|
end
|
|
|
|
return { luau = luau }
|