Skip to content

Commit ab48fea

Browse files
Initial Commit
1 parent 128c3bf commit ab48fea

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

docs/building/windows2003.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,48 @@ <h2>Lab07: Internet Information Services/COM+</h2>:
265265
</pre>
266266
<pre>build -cz</pre>
267267
<pre>delobj.cmd to clean the source tree</pre>
268+
269+
<h2>This topic provides examples of using BinPlace from the command-line.</h2>
270+
271+
<p>First, you can set the root destination directory as follows:</p>
272+
273+
<pre>set _NTTREE=d:\ProjectRoot</pre>
274+
275+
<p>Then you can set the place file's path and file name in the following way:</p>
276+
277+
<pre>set BINPLACE_PLACEFILE=d:\mystuff\myplacefile.txt</pre>
278+
279+
<p>Let the contents of the file d:\mystuff\myplacefile.txt be as follows:</p>
280+
281+
<pre>; This is a simple place file.
282+
commonmodule.dll retail
283+
application.exe files\bin
284+
mydriver.sys *\drivertree
285+
extra.cab appendix
286+
</pre>
287+
288+
<p>Now you can run BinPlace with the following command:</p>
289+
290+
<pre>binplace g:\somelocation\extra.cab</pre>
291+
292+
<p>Because extra.cab is not an executable file, BinPlace will only move it. The root destination directory is d:\projectroot. The class directory for this file is specified in the place file as appendix. The file-type subdirectory is cab (the file name extension of the file being moved). Thus, this file is copied to the location d:\projectroot\appendix\cab\extra.cab.</p>
293+
294+
<p>Now use BinPlace on the executable file and its symbol file. To do this, you specify the executable file name -- BinPlace will find the associated symbol file.</p>
295+
296+
<p>When you pass an executable file name to BinPlace, it looks for its symbol files in the same directory as the executable file. If it does not find them there, it reads the CodeView record stored in the executable file; if it finds a symbol file path in that record, it looks for symbol files in that path.</p>
297+
298+
<p>Note If you specify a symbol file name explicitly, BinPlace will merely move it, not process it.</p>
299+
300+
<pre>binplace -a -x -s d:\stripped -n g:\full g:\builddir\application.exe</pre>
301+
302+
<p>The executable file uses the same root destination directory as before. Its class directory is files\bin. Thus, it is placed in d:\projectroot\files\bin\application.exe.</p>
303+
304+
<p>The symbol file is placed in two locations. The full symbol file (including both private and public symbols) goes to g:\full\files\bin\exe\application.pdb. The stripped symbol file (containing only public symbols) goes to d:\stripped\files\bin\exe\application.pdb.</p>
305+
306+
<p>Now, use a similar command on commonmodule.dll:</p>
307+
308+
<pre>binplace -a -x -s d:\stripped -n g:\full g:\builddir\commonmodule.dll</pre>
309+
268310
<p>build individual projects</p>
269311
<pre>in the directory of a makefile with build -cz</pre>
270312
<p> or </p>

0 commit comments

Comments
 (0)