Skip to content

Commit

Permalink
att
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusmoutinho committed Dec 20, 2024
1 parent f833fea commit eecbc96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions darwinconf.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@


function is_arg_present(arg_name)
for i=1, #arg do
for i = 1, #arg do
if arg[i] == arg_name then
return true
end
end
return false
end

darwin.add_c_file("dependencies/CTextEngine.h")
darwin.add_c_file("dependencies/LuaCEmbed.h")
darwin.add_c_file("dependencies/doTheWorld.h")
Expand Down Expand Up @@ -81,13 +80,12 @@ for i = 1, #src_files do
end
darwin.add_lua_code("private_oui_packer.main()")
darwin.generate_lua_output({ output_name = "debug.lua" })
darwin.generate_c_executable_output({ output_name = "release/OuiPacker.c", include_lua_cembed=false})
darwin.generate_c_executable_output({ output_name = "release/OuiPacker.c", include_lua_cembed = false })

if is_arg_present("build_windows") then
os.execute("i686-w64-mingw32-gcc release/OuiPacker.c --static -o release/OuiPacker.exe")
end

if is_arg_present("build_linux") then
os.execute("gcc release/OuiPacker.c --static -o release/OuiPacker.out")

end
2 changes: 1 addition & 1 deletion install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git clone -b v0.72 https://github.com/OUIsolutions/LuaDoTheWorld.git
git clone -b V0.003 https://github.com/SamuelHenriqueDeMoraisVitrio/candangoEngine.git

curl -L https://github.com/OUIsolutions/CTextEngine/releases/download/v2.002/CTextEngine.h -o CTextEngine.h
curl -L https://github.com/OUIsolutions/LuaCEmbed/releases/download/v0.779/LuaCEmbed.h -o LuaCEmbed.h
curl -L https://github.com/OUIsolutions/LuaCEmbed/releases/download/v0.780/LuaCEmbed.h -o LuaCEmbed.h
curl -L https://github.com/OUIsolutions/DoTheWorld/releases/download/v7.006/doTheWorld.h -o doTheWorld.h
curl -L https://github.com/OUIsolutions/LuaArgv/releases/download/0.02/luargv.lua -o luargv.lua
curl -L https://github.com/OUIsolutions/LuaSilverChain/releases/download/0.002/silverchain_no_dependecie_included.c -o silverchain_no_dependecie_included.c
Expand Down

0 comments on commit eecbc96

Please sign in to comment.