You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<em>CodeSnip</em> is written in Object Pascal and is targeted at Delphi
73
-
XE. Compilation with earlier compilers is not guaranteed. The code will
74
-
require some changes to compile on Delphi XE2 or later.
80
+
XE. Compilation with other compilers is not guaranteed.
75
81
</p>
76
82
77
83
<p>
78
84
The are currently two editions of <em>CodeSnip</em>: the standard edition and
79
-
the portable edition. They both share the same code base and the different
85
+
the portable edition. They both share the same code base: the different
80
86
editions are created using conditional compilation. These instructions show
81
87
how to build either edition.
82
88
</p>
83
89
84
-
<p>
85
-
The Delphi XE IDE can be used to modify the source and to perform test builds.
86
-
Final builds should be created using the provided makefile.
87
-
</p>
88
-
89
90
<h2>
90
91
Dependencies
91
92
</h2>
92
93
93
94
<p>
94
95
Several DelphiDabbler and other 3rd party libraries and components are
95
-
required to compile <em>CodeSnip</em>. They are included in the code
96
+
required to compile <em>CodeSnip</em>. They are all included in the code
96
97
repository in the <code>Src/3rdParty</code> directory.
97
98
</p>
98
99
99
100
<p>
100
-
Goes without saying really, but you will also need the RTL and VCL that ships with
101
+
It goes without saying that you will also need the RTL and VCL that ships with
101
102
Delphi.
102
103
</p>
103
104
@@ -114,17 +115,16 @@ <h3>
114
115
</h3>
115
116
116
117
<p>
117
-
A copy of the Delphi XE command line compiler is required to build the
118
-
object Pascal code from the provided makefile.
119
-
</p>
120
-
121
-
<p>
122
-
You can use the Delphi IDE to edit the code and test compile it, but final
123
-
builds should be created using the makefile, which requires the following
124
-
tools that are supplied with Delphi:
118
+
All the following tools that ship with Delphi XE are required:
125
119
</p>
126
120
127
-
<dl>
121
+
<dlclass="indent">
122
+
<dtclass="spaced">
123
+
<code>MAKE</code>
124
+
</dt>
125
+
<dd>
126
+
The make tool – do not use the Microsoft make tool.
127
+
</dd>
128
128
<dtclass="spaced">
129
129
<code>DCC32</code>
130
130
</dt>
@@ -158,7 +158,7 @@ <h3>
158
158
The following environment variables are associated with these tools:
159
159
</p>
160
160
161
-
<dl>
161
+
<dlclass="indent">
162
162
<dtclass="spaced">
163
163
<code>DELPHIROOT</code> - required unless <code>DELPHIXE</code> is set.
164
164
</dt>
@@ -179,15 +179,6 @@ <h3>
179
179
</dd>
180
180
</dl>
181
181
182
-
<h3>
183
-
MAKE
184
-
</h3>
185
-
186
-
<p>
187
-
This is the make tool that ships with Delphi. You can use any version that
188
-
works.
189
-
</p>
190
-
191
182
<h3>
192
183
DelphiDabbler Version Information Editor (VIEd)
193
184
</h3>
@@ -212,8 +203,8 @@ <h3>
212
203
</h3>
213
204
214
205
<p>
215
-
HTMLRes is used to compile <code>HTML.hrc</code> which stores various
216
-
HTML, JavaScript, CSS and images into HTML resources. Version 1.1 or later
206
+
HTMLRes is used to compile <code>HTML.hrc</code> which adds various
207
+
HTML, JavaScript, CSS and images to HTML resources. Version 1.1 or later
217
208
is required.
218
209
The HTML Resource Compiler can be obtained from
219
210
<a
@@ -231,9 +222,8 @@ <h3>
231
222
</h3>
232
223
233
224
<p>
234
-
The Unicode version on the Inno setup command line compiler is needed to
235
-
create <em>CodeSnip</em>'s install program. v5.5.2 (u) or later is required.
236
-
Earlier (Unicode) versions may work, but this is not guaranteed.
225
+
The Unicode version of the Inno setup command line compiler is needed to
226
+
create <em>CodeSnip</em>'s install program. v5.5.2(u) or later is required.
237
227
</p>
238
228
239
229
<p>
@@ -290,10 +280,14 @@ <h3>
290
280
</p>
291
281
292
282
<p>
293
-
<strong>Note:</strong> You do not need Zip if you do not intend to create
294
-
release files.
283
+
You do not need Zip if you do not intend to create release files.
284
+
</p>
285
+
286
+
<pclass="note">
287
+
<strong>Note:</strong> You can use the Delphi IDE to edit the code and test compile it. However you will need to build the code from the makefile first to ensure all the required resource files and auto-generated files are present. If you change any resource files or type libraries you also need to re-run the makefile. Final builds should always be created using the makefile.
295
288
</p>
296
289
290
+
297
291
<h2>
298
292
Preparation
299
293
</h2>
@@ -335,7 +329,7 @@ <h4>
335
329
<preclass="cmd"><spanclass="prompt">></span> set PATH=%DELPHIROOT%\Bin;%PATH%</pre>
336
330
337
331
<p>
338
-
You do not have to do this but it means you can run the preferred version of
332
+
You do not have to do this but it means you can run
339
333
<code>Make</code> from the command line without having to specify its path
340
334
every time.
341
335
</p>
@@ -372,71 +366,38 @@ <h3>
372
366
</h3>
373
367
374
368
<p>
375
-
If you don't already have it, download or checkout the <em>CodeSnip</em>
376
-
source code. There are several options:
369
+
The source code is maintained in the <code><ahref="https://github.com/delphidabbler/codesnip">delphidabbler/codesnip</a></code> Git respository on GitHub.
370
+
</p>
371
+
372
+
<p>
373
+
If you are intending to contribute code to the project you need to:
Once finished raise a pull request for your code on the <code>delphidabbler/codesnip</code> repo.
430
388
</li>
431
389
</ol>
432
390
391
+
<p>
392
+
If you only intend to use the code for your own purposes you can still fork the repository as above. Alternatively you can download the source code from the project's <ahref="https://github.com/delphidabbler/codesnip/releases">Releases</a> section on GitHub – just choose the version you want.
393
+
</p>
394
+
433
395
<h3>
434
396
Configure the Source Tree
435
397
</h3>
436
398
437
399
<p>
438
-
After checking out or downloading and extracting the source code you should
439
-
have the following directory structure:
400
+
After forking the repository or downloading and extracting the source code you should have the following directory structure:
440
401
</p>
441
402
442
403
<pre>./
@@ -493,23 +454,21 @@ <h3>
493
454
<p>
494
455
If, by chance you also have <code>Bin</code>, <code>Exe</code> and / or
495
456
<code>Release</code> directories don't worry - all will become clear.
496
-
Subversion users may also see the usual <code>.svn</code> hidden
497
-
directories. If you have done some editing in the Delphi IDE you may also see
457
+
Git users may also see the usual <code>.git</code> hidden
458
+
directory. If you have done some editing in the Delphi IDE you may also see
498
459
occasional hidden <code>__history</code> folders.
499
460
</p>
500
461
501
462
<p>
502
463
Before you can get hacking, you need to prepare the code tree. Open a command
503
-
console and navigate into the <code>Src</code> sub-folder. Run any script you
504
-
have created to set environment variables then do:
464
+
console then run any script you may have created to set the required environment variables. Now navigate into the <code>Src</code> sub-folder and do:
505
465
</p>
506
466
507
467
<preclass="cmd"><spanclass="prompt">></span> Make config</pre>
508
468
509
469
<p>
510
470
You may need to replace <code>Make</code> with the full path to
511
-
<code>Make</code> if it isn't on the path, or if the <code>Make</code> that
512
-
runs isn't the CodeGear / Embarcadero version. If this is the case try:
471
+
<code>Make</code> if it isn't on the path. If this is the case try:
0 commit comments