-
Notifications
You must be signed in to change notification settings - Fork 3
/
MakeFileWin
50 lines (40 loc) · 1.7 KB
/
MakeFileWin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PROJECTNAME=Zfm
WIN32DIR=bin\Win32
WIN32DLL=$(WIN32DIR)\Release\$(PROJECTNAME).dll
WIN64DIR=bin\Win64
WIN64DLL=$(WIN64DIR)\Release\$(PROJECTNAME).dll
BDSDIR=C:\Program Files (x86)\Embarcadero\Studio\16.0
MSBUILD=C:\Windows\Microsoft.NET\Framework\v3.5\MSBUILD.exe
ZIP="C:\Program Files (x86)\GnuWin32\bin\zip.exe"
SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe"
SIGN=$(SIGNTOOL) sign /v /n "PM Code Works" /tr http://timestamp.globalsign.com/scripts/timstamp.dll /td SHA256 /fd SHA256
build: win32 win64
release: build sign binary source
source:
hg archive -t zip $(PROJECTNAME)-src.zip
win32: lib\$(PROJECTNAME).dproj
COPY lib\$(PROJECTNAME).lpr lib\$(PROJECTNAME).dpr
SET BDS=$(BDSDIR)
$(MSBUILD) /p:Config=Release /property:Platform=Win32 lib\$(PROJECTNAME).dproj
win64: lib\$(PROJECTNAME).dproj
COPY lib\$(PROJECTNAME).lpr lib\$(PROJECTNAME).dpr
SET BDS=$(BDSDIR)
$(MSBUILD) /p:Config=Release /property:Platform=Win64 lib\$(PROJECTNAME).dproj
sign: $(WIN32DLL) $(WIN64DLL)
$(SIGN) $(WIN32DLL) $(WIN64DLL)
binary:
$(ZIP) -9 $(PROJECTNAME).zip $(WIN32DLL) $(WIN64DLL) Include\$(PROJECTNAME).cs Include\$(PROJECTNAME).h Include\$(PROJECTNAME).pas COPYING.txt LICENCE.txt
clean:
SET BDS=$(BDSDIR)
$(MSBUILD) /t:clean /p:Config=Release /p:Platform=Win32 "src\$(PROJECTNAME).dproj"
$(MSBUILD) /t:clean /p:Config=Release /p:Platform=Win64 "src\$(PROJECTNAME).dproj"
opm: packages\zfmsdk.lpk
MKDIR zfmsdk\src
COPY src zfmsdk\src
MKDIR zfmsdk\examples\gui
COPY examples\gui zfmsdk\examples\gui
MKDIR zfmsdk\packages
COPY packages\zfmsdk.lpk zfmsdk\packages
COPY packages\zfmsdk.pas zfmsdk\packages
COPY README.md zfmsdk
COPY COPYING.txt zfmsdk