diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-11-02 12:09:59 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-11-02 12:09:59 +0100 |
commit | fe0e63449bced71eb829653f3c10ba01d15bfa22 (patch) | |
tree | 411dbcc6deea8bd460f4f569f4948f4ec9a11b9a | |
parent | 080158ee13f1f526f6d9c7181be0286200d6ce91 (diff) |
Added missing files
-rw-r--r-- | PostBuild.bat | 34 | ||||
-rw-r--r-- | make-msvc.bat | 12 | ||||
-rw-r--r-- | src/DllMain.rc | 114 |
3 files changed, 154 insertions, 6 deletions
diff --git a/PostBuild.bat b/PostBuild.bat new file mode 100644 index 0000000..c2d2534 --- /dev/null +++ b/PostBuild.bat @@ -0,0 +1,34 @@ +@echo off +rem Post-build batch for StormLib project +rem Called as PostBuild.bat $(ProjectName) $(PlatformName) $(ConfigurationName) [vs2008] +rem Example: PostBuild.bat StormLib_dll x64 Debug vs2008 + +rem Select build type +if "%1" == "StormLib_dll" goto PostBuild_DLL +if "%1" == "StormLib" goto PostBuild_LIB +goto:eof + +:PostBuild_DLL + +rem Build steps for the DLL. On 32-bit Release version, increment the build number +if not "x%2" == "xWin32" goto:eof +if not "x%3" == "xRelease" goto:eof +PostBuild.exe .\src\DllMain.rc +goto:eof + +:PostBuild_LIB + +rem Set target folders +if "x%2" == "xWin32" set TARGET_DIR_LEVEL2=lib32 +if "x%2" == "xx64" set TARGET_DIR_LEVEL2=lib64 +if "x%4" == "xvs2008" set TARGET_DIR_LEVEL3=vs2008 + +rem Check & create target folder structure +if not exist ..\aaa goto:eof +if not exist ..\aaa\%TARGET_DIR_LEVEL2% md ..\aaa\%TARGET_DIR_LEVEL2% +if not exist ..\aaa\%TARGET_DIR_LEVEL2%\%TARGET_DIR_LEVEL3% md ..\aaa\%TARGET_DIR_LEVEL2%\%TARGET_DIR_LEVEL3% + +rem Copy include and LIB files to the target folder +copy /Y .\src\StormLib.h ..\aaa\inc >nul +copy /Y .\src\StormPort.h ..\aaa\inc >nul +copy /Y .\bin\%1\%2\%3\StormLib???.lib ..\aaa\%TARGET_DIR_LEVEL2%\%TARGET_DIR_LEVEL3% >nul diff --git a/make-msvc.bat b/make-msvc.bat index 3dc3ba4..1f97655 100644 --- a/make-msvc.bat +++ b/make-msvc.bat @@ -19,10 +19,10 @@ if exist "%PROGRAM_FILES_DIR%\Microsoft Visual Studio\2019\Professional\VC\Auxil if exist "%PROGRAM_FILES_DIR%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" set VCVARS_2019=%PROGRAM_FILES_DIR%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat ::Build all libraries using Visual Studio 2008 and 2017 -call :BuildStormLib "%VCVARS_2008%" x86 StormLib_vs08.sln -call :BuildStormLib "%VCVARS_2008%" x64 StormLib_vs08.sln -call :BuildStormLib "%VCVARS_2019%" x86 StormLib_vs19.sln -call :BuildStormLib "%VCVARS_2019%" x64 StormLib_vs19.sln +call :BuildLibs "%VCVARS_2008%" x86 %LIB_NAME%_vs08.sln +call :BuildLibs "%VCVARS_2008%" x64 %LIB_NAME%_vs08.sln +call :BuildLibs "%VCVARS_2019%" x86 %LIB_NAME%_vs19.sln +call :BuildLibs "%VCVARS_2019%" x64 %LIB_NAME%_vs19.sln goto:eof ::----------------------------------------------------------------------------- @@ -32,10 +32,10 @@ goto:eof :: :: %1 Full path to the VCVARS.BAT file :: %2 Target build platform (x86 or x64) -:: %3 Plain name of the solution file (for example "StormLib_vs19.sln") +:: %3 Plain name of the /sln solution file :: -:BuildStormLib +:BuildLibs ::set VSCMD_DEBUG=1 call %1 %2 if "%2" == "x86" set SLN_TRG=Win32 diff --git a/src/DllMain.rc b/src/DllMain.rc new file mode 100644 index 0000000..ddfe3c3 --- /dev/null +++ b/src/DllMain.rc @@ -0,0 +1,114 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Neutral resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU) +#ifdef _WIN32 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#pragma code_page(1250) +#endif //_WIN32 + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 9,22,0,3 + PRODUCTVERSION 9,22,0,3 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040504b0" + BEGIN + VALUE "Comments", "http://www.zezula.net/mpq.html" + VALUE "FileDescription", "StormLib library for reading Blizzard MPQ archives" + VALUE "FileVersion", "9, 22, 0, 3\0" + VALUE "InternalName", "StormLib" + VALUE "LegalCopyright", "Copyright (c) 2014 - 2020 Ladislav Zezula" + VALUE "OriginalFilename", "StormLib.dll" + VALUE "ProductName", "StormLib" + VALUE "ProductVersion", "9, 22, 0, 3\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x405, 1200 + END +END + +#endif // Neutral resources +///////////////////////////////////////////////////////////////////////////// + + +///////////////////////////////////////////////////////////////////////////// +// Czech resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CSY) +#ifdef _WIN32 +LANGUAGE LANG_CZECH, SUBLANG_DEFAULT +#pragma code_page(1250) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +#endif // APSTUDIO_INVOKED + +#endif // Czech resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + |