www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

digitalmars.empire - Compiling Empire for D with the Build utility

Here is how to use the Build utility to compile Empire.

Add these lines to "empire.d" ...

 version(build)
 {
    pragma(target, "winemp");
    pragma(build, "empire.rc");
    pragma(include, "winmain");
    pragma(link, winmm.lib, comdlg32.lib);
 }

Make sure the Rule Definition File for build has these entries ...

 -------------------------------------
 Windows Resource File
 -------------------------------------
 rule=Resources
 in=rc
 out=res
 tool=rc /r /fo { OUT} { IN}

Then set your CWD to where the empire D source is installed and enter ...

  build empire

Notes: 
** This requires Build version 1.14 (build# 498) or later.
** To force rebuilding the resource file, either delete empire.res or use
the -full switch on the Build command line.

-- 
Derek Parnell
Melbourne, Australia
http://www.dsource.org/projects/build/
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage
23/03/2005 1:17:01 PM
Mar 22 2005