summaryrefslogtreecommitdiff
path: root/expat/win32
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2019-08-15 00:18:31 +0200
committerSebastian Pipping <sebastian@pipping.org>2019-08-29 02:30:07 +0200
commitee9a7a718eefa29768cbadfe6ef469b640e9a295 (patch)
treec1090c7a6b177898fc13517bd35eaaa8530378b7 /expat/win32
parent66b4a3f67318ad108118d1b2ec51d7cf57a25ff4 (diff)
downloadlibexpat-git-ee9a7a718eefa29768cbadfe6ef469b640e9a295.tar.gz
win32: Implement build_expat_iss.bat
Diffstat (limited to 'expat/win32')
-rw-r--r--expat/win32/build_expat_iss.bat84
1 files changed, 84 insertions, 0 deletions
diff --git a/expat/win32/build_expat_iss.bat b/expat/win32/build_expat_iss.bat
new file mode 100644
index 00000000..93f8fa45
--- /dev/null
+++ b/expat/win32/build_expat_iss.bat
@@ -0,0 +1,84 @@
+REM Batch script to build Inno Setup installer for libexpat for Windows
+REM Call from parent directory, e.g.: cmd /c win32\build_expat_iss.bat
+REM __ __ _
+REM ___\ \/ /_ __ __ _| |_
+REM / _ \\ /| '_ \ / _` | __|
+REM | __// \| |_) | (_| | |_
+REM \___/_/\_\ .__/ \__,_|\__|
+REM |_| XML parser
+REM
+REM Copyright (C) 2019 Expat development team
+REM Licensed under the MIT license:
+REM
+REM Permission is hereby granted, free of charge, to any person obtaining
+REM a copy of this software and associated documentation files (the
+REM "Software"), to deal in the Software without restriction, including
+REM without limitation the rights to use, copy, modify, merge, publish,
+REM distribute, sublicense, and/or sell copies of the Software, and to permit
+REM persons to whom the Software is furnished to do so, subject to the
+REM following conditions:
+REM
+REM The above copyright notice and this permission notice shall be included
+REM in all copies or substantial portions of the Software.
+REM
+REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+REM EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+REM MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+REM NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+REM DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+REM OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+REM USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+SET GENERATOR=Visual Studio 15 2017
+
+REM Read by msbuild!
+SET CONFIGURATION=RelWithDebInfo
+
+REM Where Inno Setup expects build results
+SET BINDIR=win32\bin\Release
+
+
+MD %BINDIR% || EXIT /b 1
+
+
+MD build_shared_char || EXIT /b 1
+CD build_shared_char || EXIT /b 1
+ cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMSVC_USE_STATIC_CRT=ON -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_tools=OFF .. || EXIT /b 1
+ msbuild /m expat.sln || EXIT /b 1
+ DIR %CONFIGURATION% || EXIT /b 1
+ CD .. || EXIT /b 1
+COPY build_shared_char\%CONFIGURATION%\expat.dll %BINDIR%\ || EXIT /b 1
+COPY build_shared_char\%CONFIGURATION%\expat.lib %BINDIR%\ || EXIT /b 1
+
+
+MD build_static_char || EXIT /b 1
+CD build_static_char || EXIT /b 1
+ cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMSVC_USE_STATIC_CRT=ON -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_shared=OFF .. || EXIT /b 1
+ msbuild /m expat.sln || EXIT /b 1
+ DIR %CONFIGURATION% || EXIT /b 1
+ CD .. || EXIT /b 1
+COPY build_static_char\%CONFIGURATION%\expat.lib %BINDIR%\expatMT.lib || EXIT /b 1
+COPY build_static_char\xmlwf\%CONFIGURATION%\xmlwf.exe %BINDIR%\ || EXIT /b 1
+
+
+MD build_shared_wchar_t || EXIT /b 1
+CD build_shared_wchar_t || EXIT /b 1
+ cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMSVC_USE_STATIC_CRT=ON -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_tools=OFF -DXML_UNICODE=ON -DXML_UNICODE_WCHAR_T=ON .. || EXIT /b 1
+ msbuild /m expat.sln || EXIT /b 1
+ DIR %CONFIGURATION% || EXIT /b 1
+ CD .. || EXIT /b 1
+COPY build_shared_wchar_t\%CONFIGURATION%\expatw.dll %BINDIR%\ || EXIT /b 1
+COPY build_shared_wchar_t\%CONFIGURATION%\expatw.lib %BINDIR%\ || EXIT /b 1
+
+
+MD build_static_wchar_t || EXIT /b 1
+CD build_static_wchar_t || EXIT /b 1
+ cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMSVC_USE_STATIC_CRT=ON -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_tools=OFF -DBUILD_shared=OFF -DXML_UNICODE=ON -DXML_UNICODE_WCHAR_T=ON .. || EXIT /b 1
+ msbuild /m expat.sln || EXIT /b 1
+ DIR %CONFIGURATION% || EXIT /b 1
+ CD .. || EXIT /b 1
+COPY build_static_wchar_t\%CONFIGURATION%\expatw.lib %BINDIR%\expatwMT.lib || EXIT /b 1
+
+
+DIR %BINDIR% || EXIT /b 1
+iscc win32\expat.iss || EXIT /b 1