mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 13:11:19 +01:00
chore: Enable with_rive_scripting flag for wasm (#11329) 8e395d6bb0
Co-authored-by: Philip Chung <philterdesign@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
8f9dae9f361595302907e90ef18335b66c83d988
|
||||
8e395d6bb04b096d0fcf308113c5458e7722e19c
|
||||
|
||||
@@ -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.',
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user