mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
Lua formatter
Format all our lua scripts with Stylua https://www.notion.so/rive-app/Formatters-be8845abbca34e39b5d4c212b2437b3f?pvs=4 Diffs= 858215cc4 Lua formatter (#6525) Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
This commit is contained in:
@@ -1,73 +1,65 @@
|
||||
workspace "rive"
|
||||
configurations {"debug", "release"}
|
||||
workspace('rive')
|
||||
configurations({ 'debug', 'release' })
|
||||
|
||||
project "rivinfo"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
targetdir "%{cfg.system}/bin/%{cfg.buildcfg}"
|
||||
objdir "%{cfg.system}/obj/%{cfg.buildcfg}"
|
||||
includedirs {
|
||||
"../../include",
|
||||
"../../test",
|
||||
"/usr/local/include",
|
||||
"/usr/include",
|
||||
}
|
||||
project('rivinfo')
|
||||
kind('ConsoleApp')
|
||||
language('C++')
|
||||
cppdialect('C++17')
|
||||
targetdir('%{cfg.system}/bin/%{cfg.buildcfg}')
|
||||
objdir('%{cfg.system}/obj/%{cfg.buildcfg}')
|
||||
includedirs({
|
||||
'../../include',
|
||||
'../../test',
|
||||
'/usr/local/include',
|
||||
'/usr/include',
|
||||
})
|
||||
|
||||
if os.host() == 'macosx' then
|
||||
links {
|
||||
"Cocoa.framework",
|
||||
"CoreFoundation.framework",
|
||||
"IOKit.framework",
|
||||
"Security.framework",
|
||||
"bz2",
|
||||
"iconv",
|
||||
"lzma",
|
||||
"rive",
|
||||
"z", -- lib av format
|
||||
}
|
||||
else
|
||||
links {
|
||||
"m",
|
||||
"rive",
|
||||
"z",
|
||||
"dl",
|
||||
}
|
||||
end
|
||||
if os.host() == 'macosx' then
|
||||
links({
|
||||
'Cocoa.framework',
|
||||
'CoreFoundation.framework',
|
||||
'IOKit.framework',
|
||||
'Security.framework',
|
||||
'bz2',
|
||||
'iconv',
|
||||
'lzma',
|
||||
'rive',
|
||||
'z', -- lib av format
|
||||
})
|
||||
else
|
||||
links({ 'm', 'rive', 'z', 'dl' })
|
||||
end
|
||||
|
||||
libdirs {
|
||||
"../../build/%{cfg.system}/bin/%{cfg.buildcfg}",
|
||||
"/usr/local/lib",
|
||||
"/usr/lib",
|
||||
}
|
||||
libdirs({
|
||||
'../../build/%{cfg.system}/bin/%{cfg.buildcfg}',
|
||||
'/usr/local/lib',
|
||||
'/usr/lib',
|
||||
})
|
||||
|
||||
files {
|
||||
"../**.cpp",
|
||||
"../../utils/no_op_factory.cpp",
|
||||
}
|
||||
files({ '../**.cpp', '../../utils/no_op_factory.cpp' })
|
||||
|
||||
buildoptions {"-Wall", "-fno-rtti", "-g"}
|
||||
buildoptions({ '-Wall', '-fno-rtti', '-g' })
|
||||
|
||||
filter "configurations:debug"
|
||||
defines {"DEBUG"}
|
||||
symbols "On"
|
||||
filter('configurations:debug')
|
||||
defines({ 'DEBUG' })
|
||||
symbols('On')
|
||||
|
||||
filter "configurations:release"
|
||||
defines {"RELEASE"}
|
||||
defines {"NDEBUG"}
|
||||
optimize "On"
|
||||
filter('configurations:release')
|
||||
defines({ 'RELEASE' })
|
||||
defines({ 'NDEBUG' })
|
||||
optimize('On')
|
||||
|
||||
-- Clean Function --
|
||||
newaction {
|
||||
trigger = "clean",
|
||||
description = "clean the build",
|
||||
newaction({
|
||||
trigger = 'clean',
|
||||
description = 'clean the build',
|
||||
execute = function()
|
||||
print("clean the build...")
|
||||
os.rmdir("./bin")
|
||||
os.rmdir("./obj")
|
||||
os.remove("Makefile")
|
||||
print('clean the build...')
|
||||
os.rmdir('./bin')
|
||||
os.rmdir('./obj')
|
||||
os.remove('Makefile')
|
||||
-- no wildcards in os.remove, so use shell
|
||||
os.execute("rm *.make")
|
||||
print("build cleaned")
|
||||
end
|
||||
}
|
||||
os.execute('rm *.make')
|
||||
print('build cleaned')
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user