-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBuild.txt
More file actions
109 lines (75 loc) · 3.87 KB
/
Build.txt
File metadata and controls
109 lines (75 loc) · 3.87 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
CompFileDate Build Instructions
===============================
These instructions assume you are building the program using Delphi 13. Later
versions of Delphi may be suitable.
Step 1: Download the Source
----------------------------
The program's source code is maintained in the ddabapps/compfiledate repository
on GitHub. See https://github.com/ddabapps/compfiledate
Either clone or download the repo into a directory on your computer. The
following directory structure will be created within your nominated directory:
.
|
+-- Docs
|
+-- Src
|
+-- Assets
Step 2: Configure the Build Environment
---------------------------------------
The following tools must be installed to build CompFileDate:
+ Delphi 13 or later. The 32 bit IDE is used.
+ `VIEd.exe` (Version Information Editor by DelphiDabbler). See
https://delphidabbler.com/software/vied. Version 2.17.0 or later is
required.
The program will not compile without setting the VIEDROOT environment variable
to the path where the VIEd binary is installed. By default this is in
%ProgramFiles(x86)%\DelphiDabbler\VIEd on 64 bit Windows and
%ProgramFiles%\DelphiDabbler\VIEd on 32 bit Windows.
VIEDROOT can be set in two ways:
1. From within the Delphi IDE. To do this choose the Tools | Options menu
option to display the Options dialogue box. Then select the IDE |
Environment Variables page and create the environment variable in the
System Overides section of the page.
2. By setting the environment variable using Windows Settings. This must be
done before starting the Delphi IDE.
Step 3: Modify the Source
-------------------------
If you intend modifying and redistributing CompFileDate you must comply with
CompFileDate's open source licence. See
https://github.com/ddabapps/compfiledate/blob/master/LICENSE.md for details.
Step 4: Compile
---------------
From the IDE you have the choice of building Windows 32 bit, Windows 64 bit or
Linux 64 bit operating systems. Debug and Release build configurations are
supported for each target OS.
To build a required target OS and build configuration select them in the IDE's
Projects window before performing a full build.
Everything is compiled into a `_build` sub-directory of the directory where you
copied the source. This directory is hidden from Git. There is a sub-directory
of `_build` named for each target OS that has been built. Within the target OS's
directory there will be a further sub-directory for each build configuration
that has been built. These are `Debug` and `Release`. Within those directories
intermediate binaries are stored in a `bin` sub-directory while executable
programs can be found in an `exe` directory.
To assist in building for all target OSs you can use the `MakeAllTargets.bat`
script located in the `Tools` directory. This script runs a full Debug build for
each target OS. See the comments at the top of `MakeAllTargets.bat` for details
of how to use the script.
Step 5: Release (optional)
--------------------------
Releases are created by running `Deploy.bat` from the command line, NOT from
within the Delphi IDE. `Deploy.bat` has its own dependencies and requirements
which are explained in the comments at the top of the script file.
The script compiles release versions of the 32 and 64 bit Windows and 64 bit
Linux versions of the program. Each release version is bundled up in both zip
and tar/gzip archives.
Documentation is also included in the archives. Plain text files that are
included in the Linux 64 bit release have their line end characters converted
from Windows' CRLF format to Linux's LF format.
Step 6: Clean Up
----------------
If you cloned the CompFileDate repo using Git you can clean up easily by opening
a Git command line on directory where the clone was made. Then run:
git clean -fxd
Make sure you have committed any new files that you need first!