~soapdog/lua

21ebbb3f44000883ae5cd080824d0ed48cf10fba — Andre Alves Garzia 1 year, 4 months ago ee10477
better build script.

The previous build script used full version numbers in the librarie filenames which are thus not recognized by luarocks. This changes to major.minor instead of major.minor.fix.
1 files changed, 6 insertions(+), 5 deletions(-)

M build-version.bat
M build-version.bat => build-version.bat +6 -5
@@ 8,7 8,8 @@ REM Info on the location of the batch files used to set vars for VS:
REM https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019#developer_command_file_locations

set VS_BATCH_FOLDER="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"
set LUA_VERSION=%1
set LUA_FULL_VERSION=%1
set LUA_VERSION=%LUA_FULL_VERSION:~0,3%

echo Looking for Visual Studio 2019
if not exist %VS_BATCH_FOLDER% goto :vs_not_found


@@ 19,7 20,7 @@ if not exist %VS_BATCH_FOLDER%\vcvarsx86_arm64.bat goto :build_x86

echo building for arm64...

set BUILD_FOLDER=dist\%LUA_VERSION%\arm64
set BUILD_FOLDER=dist\%LUA_FULL_VERSION%\arm64
set NEXT_STEP=:build_x86

setlocal


@@ 33,7 34,7 @@ if not exist %VS_BATCH_FOLDER%\vcvars32.bat goto :build_x64

echo building for x86...

set BUILD_FOLDER=dist\%LUA_VERSION%\x86
set BUILD_FOLDER=dist\%LUA_FULL_VERSION%\x86
set NEXT_STEP=:build_x64

setlocal


@@ 47,7 48,7 @@ if not exist %VS_BATCH_FOLDER%\vcvarsx86_amd64.bat goto :exit

echo building for x64...

set BUILD_FOLDER=dist\%LUA_VERSION%\x64
set BUILD_FOLDER=dist\%LUA_FULL_VERSION%\x64
set NEXT_STEP=:exit

setlocal


@@ 60,7 61,7 @@ goto :build
if exist %BUILD_FOLDER% rd /s /q %BUILD_FOLDER%
mkdir %BUILD_FOLDER%

cd src\%LUA_VERSION%
cd src\%LUA_FULL_VERSION%

del *.obj
del *.o