www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - wxWidgets lacks on build options (DMC)

reply Ilya Minkov <minkov cs.tum.edu> writes:
Hello.

I have been building wxWidgets 2.5.2 Release by running the 
makefile.dmc. It always seems to build a debug, static, non-unicode 
build, regardless of command-line options. A further look into 
config.dmc reveals that these options are not present there either. A 
look at makefile.dmc shows that these options are not being considered, 
and that compilation parameters are hardcoded into the compiler calls.

I even started to edit the makefile.dmc, but just then i saw the big "DO 
NOT EDIT" comment in it. What is it intended to mean? What is the 
preferred way to change the options? The wxWidgets installation guide is 
totally silent on that.

-eye
Aug 03 2004
parent reply "Włodzimierz Skiba" <abx abx.art.pl> writes:
Ilya Minkov <minkov cs.tum.edu> wrote in 
news:centcv$12cr$1 digitaldaemon.com:
 I even started to edit the makefile.dmc, but just then i saw the big "DO 
 NOT EDIT" comment in it. What is it intended to mean? What is the 
 preferred way to change the options? The wxWidgets installation guide is 
 totally silent on that.
Make tool of DMC does not support conditions within makefiles and supporting such settings requires conditions to make different builds. Two solutions for you are available: a) You can regenerate those makefile yourself with Bakefiles 0.1.4 changing file %WXWIN%\build\bakefiles\config.bkl section. It is now: <if cond="FORMAT=='dmars'"> <set var="RUNTIME_LIBS">static</set> <set var="BUILD">debug</set> <set var="SHARED">0</set> <set var="WXUNIV">0</set> <set var="UNICODE">0</set> </if> b) use CVS version of Bakefiles and generate makefiles for smake which is delivered in CD version of DMC and supports conditions. ABX
Aug 03 2004
parent reply Ilya Minkov <minkov cs.tum.edu> writes:
W=B3odzimierz Skiba schrieb:

 Make tool of DMC does not support conditions within makefiles and=20
 supporting such settings requires conditions to make different builds. =
Two=20
 solutions for you are available:
Ok, i just figured it out by looking in the bakefile source templates=20 and finding the dmars section there.
 a) You can regenerate those makefile yourself with Bakefiles 0.1.4 chan=
ging=20
 file %WXWIN%\build\bakefiles\config.bkl section. It is now:
=20
     <if cond=3D"FORMAT=3D=3D'dmars'">
         <set var=3D"RUNTIME_LIBS">static</set>
         <set var=3D"BUILD">debug</set>
         <set var=3D"SHARED">0</set>
         <set var=3D"WXUNIV">0</set>
         <set var=3D"UNICODE">0</set>
     </if>
Thank you, this is helpful.
 b) use CVS version of Bakefiles and generate makefiles for smake which =
is=20
 delivered in CD version of DMC and supports conditions.
Gotta get it finally. BTW, wouldn't there be some point in allowing for some other make, like=20 dmake (public domain), or GNU make with dmc? (apart from /me finding all the multiple build systems and generation=20 tools not as nice as, say, jam) -eye
Aug 03 2004
parent "Włodzimierz Skiba" <abx abx.art.pl> writes:
Ilya Minkov <minkov cs.tum.edu> wrote in 
news:ceo1pc$16e3$1 digitaldaemon.com:

 BTW, wouldn't there be some point in allowing for some other make, like 
 dmake (public domain), or GNU make with dmc?
Bakefile system allows it thought you have to go to the Bakefile sources and extend it. Every package (make,c,c++,linker) has it's definition in Bakefile\rules\*.bkl files. All you need is to create own customization mixing parameters of makefile from one package with parameters of compilers from other package. I'm not sure if somebody did it already but in theory it should be possible. If you want to continue such task I think it should be more appropriate to continue discussion in bakefile-devel group (http://news.gmane.org/gmane.comp.sysutils.bakefile.devel) ABX
Aug 03 2004