forked from JAM-Software/Virtual-TreeView
-
Notifications
You must be signed in to change notification settings - Fork 1
/
MAKEFILE
62 lines (51 loc) · 3.39 KB
/
MAKEFILE
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
51
52
53
54
55
56
57
58
59
60
61
62
PROJECT = VirtualTrees
EMBARCADERO = $(PROGRAMFILES)\Embarcadero\RAD Studio
STUDIO = $(PROGRAMFILES)\Embarcadero\Studio
BDSCOMMONDIRMAIN = %PUBLIC%\Documents\Embarcadero\Studio
BUILDEXE = "$(PROGRAMFILES)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe"
BUILD = $(BUILDEXE) /t:Rebuild
clean:
ECHO Project: $(PROJECT) $(EMBARCADERO)
DEL /S /Q .\*.HPP
DEL /S /Q .\*.DCU
#TODO: Add demos and package folders
_XE8: Lib\*.pas "Package\RAD Studio XE8\$(PROJECT)R.dpk" "Package\RAD Studio XE8\$(PROJECT)R.dproj" "Package\RAD Studio XE8\$(PROJECT)D.dpk" "Package\RAD Studio XE8\$(PROJECT)D.dproj"
SET BDS=$(STUDIO)\16.0
$(BUILD) "Package\RAD Studio XE8\$(PROJECT)R.dproj"
$(BUILD) "Package\RAD Studio XE8\$(PROJECT)D.dproj"
$(BUILD) /property:Platform=Win64 "Package\RAD Studio XE8\$(PROJECT)R.dproj"
$(MAKE) _samples
# build all packahes for Delphi 10.2
10_2: Source\*.pas "Packages\RAD Studio 10.2\$(PROJECT)R.dpk" "Packages\RAD Studio 10.2\$(PROJECT)R.dproj" "Packages\RAD Studio 10.2\$(PROJECT)D.dpk" "Packages\RAD Studio 10.2\$(PROJECT)D.dproj"
SET BDS=$(STUDIO)\19.0
$(BUILD) "Packages\RAD Studio 10.2\$(PROJECT)R.dproj"
$(BUILD) "Packages\RAD Studio 10.2\$(PROJECT)D.dproj"
$(BUILD) /property:Platform=Win64 "Packages\RAD Studio 10.2\$(PROJECT)R.dproj"
$(MAKE) _samples
# build all packahes for Delphi 10.3
10_3: Source\*.pas "Packages\RAD Studio 10.3\$(PROJECT)R.dpk" "Packages\RAD Studio 10.3\$(PROJECT)R.dproj" "Packages\RAD Studio 10.3\$(PROJECT)D.dpk" "Packages\RAD Studio 10.3\$(PROJECT)D.dproj"
SET BDS=$(STUDIO)\20.0
$(BUILD) "Packages\RAD Studio 10.3\$(PROJECT)R.dproj"
$(BUILD) "Packages\RAD Studio 10.3\$(PROJECT)D.dproj"
$(BUILD) /property:Platform=Win64 "Packages\RAD Studio 10.3\$(PROJECT)R.dproj"
$(MAKE) _samples
"Demos\Advanced\Advanced.exe": "Demos\Advanced\*.dproj" "Demos\Advanced\*.dpr" "Demos\Advanced\*.pas"
$(BUILD) "Demos\Advanced\Advanced.dproj"
"Demos\Minimal\Minimal.exe": "Demos\Minimal\*.dproj" "Demos\Minimal\*.dpr" "Demos\Minimal\*.pas"
$(BUILD) "Demos\Minimal\Minimal.dproj"
"Demos\Objects\Objects.exe": "Demos\Objects\*.dproj" "Demos\Objects\*.dpr" "Demos\Objects\*.pas"
$(BUILD) "Demos\Objects\MVCDemo.dproj"
"Demos\OLE\OLE.exe": "Demos\OLE\*.dproj" "Demos\OLE\*.dpr" "Demos\OLE\*.pas"
$(BUILD) "Demos\OLE\OLE.dproj"
_samples: "Demos\Advanced\Advanced.exe" "Demos\Minimal\Minimal.exe" "Demos\Objects\Objects.exe" "Demos\OLE\OLE.exe"
_continuousbuilds: clean 10_3
_release:
#This small batch file is intended to create a source code release file of the VirtualTreeView as ZIP archive
#It expects the ZIP.EXE from the InfoZip project V3.0 or higher to be in the system's search path
#Download e.g. from: ftp://ftp.info-zip.org/pub/infozip/win32/
ZIP -9 -r .\VirtualTreeView.zip INSTALL.txt Changes.txt Source Design Packages Demos Contributions Help\VirtualTreeview.chm -i *.pas -i *.dpk -i *.groupproj -i *.dproj -i *.cbproj -i *.hlp -i *.rc -i *.res -i *.cfg -i *.dpr -i *.dof -i *.bpr -i *.dfm -i *.cpp -i *.inc -i *.dcr -i *.chm -i *.png -i *.js -i *.txt -i *.bmp -i *.uni
ECHO Source code zip archive "VirtualTreeView.zip" created.
ECHO !!! Please ensure that the const TVTVersion is correct or remove const!!!
ECHO !!! Please add version number to ZIP file name!!!
ECHO !!! Please create release at: https://github.com/Virtual-TreeView/Virtual-TreeView/releases
ECHO !!! Let JAM web-team upload the file to our server at https://www.jam-software.com/virtual-treeview