diff --git a/.rive_head b/.rive_head index 584a686f..6d142eb1 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -8f9dae9f361595302907e90ef18335b66c83d988 +8e395d6bb04b096d0fcf308113c5458e7722e19c diff --git a/premake5_v2.lua b/premake5_v2.lua index a37f3b49..e182b38b 100644 --- a/premake5_v2.lua +++ b/premake5_v2.lua @@ -174,3 +174,8 @@ newoption({ trigger = 'with_rive_layout', description = 'Compiles in layout features.', }) + +newoption({ + trigger = 'with_rive_docs', + description = 'Indicates building for use with the docs generator.', +}) diff --git a/scripting/premake5.lua b/scripting/premake5.lua index d48d094d..164cb57a 100755 --- a/scripting/premake5.lua +++ b/scripting/premake5.lua @@ -38,25 +38,33 @@ end project('luau_compiler') do - kind('StaticLib') - exceptionhandling('On') - - includedirs({ - luau .. '/Compiler/include', - luau .. '/Ast/include', - luau .. '/Common/include', + kind('None') + + filter({ + 'options:with_rive_tools or options:with_rive_docs', + 'options:not flutter_runtime or options:with_rive_docs' }) - - files({ - luau .. '/Compiler/src/**.cpp', - luau .. '/Ast/src/**.cpp', - luau .. '/Common/src/**.cpp', - }) - defines({ 'RIVE_LUAU' }) - optimize('Size') - filter({ 'options:with-asan' }) do - defines({ 'LUAU_ENABLE_ASAN' }) + kind('StaticLib') + exceptionhandling('On') + + includedirs({ + luau .. '/Compiler/include', + luau .. '/Ast/include', + luau .. '/Common/include', + }) + + files({ + luau .. '/Compiler/src/**.cpp', + luau .. '/Ast/src/**.cpp', + luau .. '/Common/src/**.cpp', + }) + defines({ 'RIVE_LUAU' }) + optimize('Size') + filter({ 'options:with-asan' }) + do + defines({ 'LUAU_ENABLE_ASAN' }) + end end end