From 87c811161c608f8428ff8e399c60f9672c6cfc7e Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Fri, 19 May 2017 20:29:37 +0200 Subject: Swith to using a config file. This is hopefully a first step to supporting dub. See #12 --- windows.mak | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'windows.mak') diff --git a/windows.mak b/windows.mak index 7a587b9..4160adb 100644 --- a/windows.mak +++ b/windows.mak @@ -523,6 +523,13 @@ docs\c\xwindow.html: dmagick\c\xwindow.d ################### Library generation ######################### +dmagick\c\magickVersion.d: dmagick\c\magickVersion.d.in + @powershell -Command "get-content $** | \ + %{$$_ -replace '@MagickLibVersion@','700'} | \ + %{$$_ -replace '@MagickLibVersionText@','7.0.0'} | \ + %{$$_ -replace '@QuantumDepth@','16'} | \ + %{$$_ -replace '@HDRI@','false'} | Set-Content $@" + $(LIBNAME): $(SOURCE) $(DMD) -lib -of$(LIBNAME) $(DFLAGS) $(SOURCE) @@ -541,6 +548,7 @@ stubmain.d: echo void main(){} > $@ clean: + del dmagick\c\magickVersion.d del $(LIBNAME) del $(MAGICKCORELIBNAME) del $(DOCS) -- cgit v1.2.3