Skip to content

Commit c7d533c

Browse files
author
delphidabbler
committed
Removed dependency on the Indy components
Modified build documentation accordingly
1 parent acb8579 commit c7d533c

File tree

2 files changed

+4
-89
lines changed

2 files changed

+4
-89
lines changed

Build.html

Lines changed: 3 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -95,62 +95,12 @@ <h2>
9595

9696
<p>
9797
Several DelphiDabbler and other 3rd party libraries and components are
98-
required to compile <em>CodeSnip</em>, most of which are included in the code
99-
repository in the <code>Src/3rdParty</code> directory. Code not included in
100-
the repository is noted below.
98+
required to compile <em>CodeSnip</em>. They are included in the code
99+
repository in the <code>Src/3rdParty</code> directory.
101100
</p>
102101

103-
<h3>
104-
Indy libraries v10
105-
</h3>
106-
107-
<p>
108-
The Indy 10 Internet components ship with Delphi XE.
109-
If you prefer to work with the latest release you can download it from <a
110-
href="http://www.indyproject.org/"
111-
>http://www.indyproject.org/</a>. If you download a copy of Indy 10 you
112-
should compile the source code separately with the same version of Delphi
113-
that is being used to compile <em>CodeSnip</em>.
114-
</p>
115-
116-
<p>
117-
Regardless of whether you are using the version of Indy 10 supplied with
118-
Delphi or if you have downloaded and compiled your own version, you must set
119-
the <code>INDY10</code> environment variable to the directory where you
120-
placed the compiled code.
121-
</p>
122-
123-
<h4 id="indychanges">
124-
Changes between different Indy 10 releases
125-
</h4>
126-
127-
<p>
128-
Changes were made to the parameter lists of the <var>TWorkBeginEvent</var>
129-
and <var>TWorkEvent</var> events between early and later releases of Indy
130-
10. Specifically, earlier versions use type <var>Integer</var> for the
131-
<var>AWorkCount</var> parameter of <var>TWorkEvent</var> and the
132-
<var>AWorkCountMax</var> parameter of <var>TWorkBeginEvent</var>, while
133-
later versions use <var>Int64</var>.
134-
<p>
135-
136-
<p>
137-
<em>CodeSnip</em>'s source code uses conditional compilation to provide the
138-
correct event handler signatures &ndash; and it makes an intelligent guess
139-
at which signature to use depending on the version number provided by the
140-
Indy library code. Should the program fail to compile with an error in the
141-
<var>Web.UDownloadMonitor</var> unit, you should check the event signatures in
142-
your Indy <var>IdComponent</var> unit and then define the
143-
<code>INDY_WORKEVENT_INT64</code> environment variable if <var>Int64</var>
144-
parameters are required or <code>INDY_WORKEVENT_INT32</code> if
145-
<var>Integer</var> parameters are used.
146-
</p>
147-
148-
<h3>
149-
Delphi RTL &amp; VCL
150-
</h3>
151-
152102
<p>
153-
Goes without saying really, but you need the RTL and VCL that ships with
103+
Goes without saying really, but you will also need the RTL and VCL that ships with
154104
Delphi.
155105
</p>
156106

@@ -230,23 +180,6 @@ <h3>
230180
<code>DELPHIROOT</code> will be set to the value of
231181
<code>DELPHIXE</code>.
232182
</dd>
233-
<dt class="spaced">
234-
<code>INDY10</code> - required
235-
</dt>
236-
<dd>
237-
Must be set to the directory where the Indy 10 components are installed.
238-
The code must have been built with the same version of Delphi used to
239-
compile <em>CodeSnip</em>.
240-
</dd>
241-
<dt class="spaced">
242-
<code>INDY_WORKEVENT_INT64</code> <strong>or</strong>
243-
<code>INDY_WORKEVENT_INT32</code> - optional
244-
</dt>
245-
<dd>
246-
<a href="#indychanges">See above</a> for details. If used, only one of
247-
the environment variables may be defined. Defining both causes
248-
compilation to fail.
249-
</dd>
250183
</dl>
251184

252185
<h3>
@@ -391,9 +324,6 @@ <h4>
391324
<li>
392325
<code>DELPHIROOT</code> <strong>or</strong> <code>DELPHIXE</code>
393326
</li>
394-
<li>
395-
<code>INDY10</code>
396-
</li>
397327
</ul>
398328

399329
<h4>
@@ -440,17 +370,6 @@ <h4>
440370
</li>
441371
</ul>
442372

443-
<h4>
444-
Step 4
445-
</h4>
446-
447-
<p>
448-
Set <code>INDY_WORKEVENT_INT64</code> or <code>INDY_WORKEVENT_INT32</code>
449-
if necessary (explained <a
450-
href="#indychanges"
451-
>above</a>).
452-
</p>
453-
454373
<h3>
455374
Get the Source Code
456375
</h3>

Src/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ DELPHIROOT = $(DELPHIXE)
2424
!error DELPHIROOT or DELPHIXE environment variable required.
2525
!endif
2626

27-
!ifndef INDY10
28-
!error INDY10 environment variable required.
29-
!endif
30-
3127
# Define macros for required tools
3228

3329
TLIBIMP = "$(DELPHIROOT)\Bin\TLibImp.exe"
@@ -127,7 +123,7 @@ CodeSnip.exe:
127123
!ifdef PORTABLE
128124
@if exist $(EXE)\$(@F) copy $(EXE)\$(@F) $(EXE)\$(@F).bak
129125
!endif
130-
@$(DCC32) $(@B).dpr -B -U"$(INDY10)" $(DELPHIDEFINES)
126+
@$(DCC32) $(@B).dpr -B $(DELPHIDEFINES)
131127
!ifdef PORTABLE
132128
@copy $(EXE)\$(@F) $(EXE)\$(@B)-p.exe /Y
133129
@del $(EXE)\$(@F)

0 commit comments

Comments
 (0)