Last active
July 8, 2024 01:09
-
-
Save greatwolf/8d8e8c57549166a779d0d918d9199932 to your computer and use it in GitHub Desktop.
Building and Packaging steps for Lua using MSYS/MinGW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Start MSYS/MinGW32 shell | |
msys64/msys2_shell.cmd -mingw32 | |
-- Go into base directory of lua source files | |
cd /<driveletter>/lua-5.<version> | |
-- Compile Lua src with mingw | |
make mingw | |
-- Put final build output into proper structure using lua make's install target | |
make install INSTALL_TOP=../lua-$\(R\) INSTALL_BIN=$\(INSTALL_TOP\) TO_BIN="lua luac lua5*.dll" | |
-- Use 'echo' target to check make variables are correct eg. | |
make echo INSTALL_TOP=../lua-$\(R\) INSTALL_BIN=$\(INSTALL_TOP\) TO_BIN="lua luac lua5*.dll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment