[cpp-msbuild] 03/04: SSPCPP-765 build log4shib from the makefile
Rod Widdowson
rdw at steadingsoftware.com
Fri Nov 24 11:31:32 EST 2017
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository cpp-msbuild.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-msbuild.git;a=commit;h=ddd3269e6202a741eaff13d57d0515478126dd15
commit ddd3269e6202a741eaff13d57d0515478126dd15
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Nov 24 15:05:50 2017 +0000
SSPCPP-765 build log4shib from the makefile
https://issues.shibboleth.net/jira/browse/SSPCPP-765
---
dependencies/dependency.make | 36 ++++++++++++++++++++++++++++++++----
1 file changed, 32 insertions(+), 4 deletions(-)
diff --git a/dependencies/dependency.make b/dependencies/dependency.make
index 5447ebd..2ae781e 100644
--- a/dependencies/dependency.make
+++ b/dependencies/dependency.make
@@ -9,10 +9,12 @@
!message Building x86
OpenSSLName=WIN32
ZlibTargetDir=.
+MsBuildArch=Win32
!elseif "$(VSCMD_ARG_TGT_ARCH)" == "x64"
!message Building x64
OpenSSLName=WIN64A
ZlibTargetDir=x64
+MsBuildArch=x64
!else
!error "Target architecture must be x86 or x64"
!endif
@@ -25,6 +27,10 @@ ZlibTargetDir=x64
!error this code only known to work with VC15
!endif
+!if "$(ZLIB_DIR)" == ""
+!error ZLIB_DIR not defined
+!endif
+
!if "$(ZLIB_SHAREDLIB)" == ""
!error ZLIB_SHAREDLIB not defined
!endif
@@ -33,6 +39,11 @@ ZlibTargetDir=x64
!error ZLIB_IMPLIB not defined
!endif
+!if "$(LOGSHIB_DIR)" == ""
+!error LOGSHIB_DIR not defined
+!endif
+
+
##
## TARGETS
@@ -41,14 +52,18 @@ help:
@cls
@echo "TARGETS: clean all
@echo " openssl targets: openssl, openssl-(clean|debug|release)[-configure]
+ @echo " zlib targets: zlib zlib-(clean|debug|release)
+ @echo " log4shib targets: log4shib log4shib-(clean|debug|release)
@echo "
@echo "REQUIRED VARIABLES
@echo " ROOT_DIR
@echo " OPENSSL_DIR
+ @echo "
+ @echo " See also https://wiki.shibboleth.net/confluence/display/SP3/WindowsBuild
-clean: openssl-clean zlib-clean
+clean: openssl-clean zlib-clean log4shib-clean
-all: openssl zlib
+all: openssl zlib log4shib
test-env:
@@ -107,8 +122,6 @@ $(ROOT_DIR)\$(ZLIB_DIR)\zlib2.sed:
$(ROOT_DIR)\$(ZLIB_DIR)\zlib3.sed $(ROOT_DIR)\$(ZLIB_DIR)\zlib4.sed: $$(@F)
copy $(@F) $(ROOT_DIR)\$(ZLIB_DIR)
-test: $(ROOT_DIR)\$(ZLIB_DIR)\zlib3.sed
-
$(ROOT_DIR)\$(ZLIB_DIR)\zlib1d.sed:
echo s/SHAREDLIB =.*$$/SHAREDLIB=$(ZLIB_SHAREDLIB)D.dll/ > $@
@@ -181,6 +194,21 @@ openssl-build: $(ROOT_DIR)\$(OPENSSL_DIR)\makefile
cd $(ROOT_DIR)\$(OPENSSL_DIR)
nmake install_sw
+#
+# log4shib
+#
+log4shib: log4shib-debug log4shib-release
+
+log4shib-clean: log4shib-test
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Debug /t:clean /p:Platform=Win32
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Debug /t:clean /p:Platform=x64
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Release /t:clean /p:Platform=Win32
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Release /t:clean /p:Platform=x64
+log4shib-test: test-env $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln
+log4shib-debug: log4shib-test
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Debug /t:build /p:Platform=$(MsBuildArch)
+log4shib-release: log4shib-test
+ msbuild /m $(ROOT_DIR)\$(LOGSHIB_DIR)\msvc15\msvc15.sln /p:Configuration=Release /t:build /p:Platform=$(MsBuildArch)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list