Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2022 Lua5.4.4 windows build script bat #137

Open
laiqun opened this issue Sep 17, 2022 · 0 comments
Open

VS2022 Lua5.4.4 windows build script bat #137

laiqun opened this issue Sep 17, 2022 · 0 comments

Comments

@laiqun
Copy link

laiqun commented Sep 17, 2022

call "d:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
mkdir dll_output
mkdir bin
mkdir static_lib_output
cd src
::Compile all C -> obj
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
:: Rename obj
ren lua.obj lua.o
ren luac.obj luac.o
::Generate lib and DLL
link /DLL /IMPLIB:lua5.4.4.lib /OUT:lua5.4.4.dll *.obj
::Generate Executer
link /OUT:lua.exe lua.o lua5.4.4.lib
::Generate static library
lib /OUT:lua5.4.4-static.lib *.obj
::Generate Lua compiler
link /OUT:luac.exe luac.o lua5.4.4-static.libxcopy lua5.4.4.dll ..\dll_output
xcopy lua5.4.4.lib ..\dll_output
xcopy lua5.4.4-static.lib ..\static_lib_output
xcopy lua.exe ..\bin
xcopy luac.exe ..\bin
xcopy lua5.4.4.lib ..\bin
xcopy lua5.4.4.dll ..\bin
xcopy lua5.4.4-static.lib ..\bin

::Clean tmp files
del *.obj
del *.exe
del *.exp
del *.lib
del *.o
del *.dll
cd ..

@laiqun laiqun changed the title 5.4.4 windows build script VS2022 VS2022 Lua5.4.4 windows build script bat Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant