[bakefile-devel] Subprojetc question.

"Hans Van Leemputten" <[email protected]> Tue, 27 Jan 2004 18:01:04 +0100
Newsgroups gmane.text.documancer.user
Message-ID <024a01c3e4f7$269b1aa0$0601a8c0@starwars>
Hi all,

[I hope this is the correct way for talking about bakefile related things]

I'm trying to write some bakefiles for one of my projects and have run into
some question/issues.
What I have at the moment: 1lib (called GuIDElib) and one 1 (GuIDE) sample,
this sample is using the GuIDElib + wxWin (both 2.5 and 2.4)(*).
The dir struct is like this:
./guidelib/src/*.cpp
./guidelib/include/guide/*.h
./guidelib/samples/demo/demo.[h,cpp,rc,bkl]
./guidelib/guidelib.bkl

(*) I'm not depending on any wxWin bakefiles and wxWin isn't the problem here.

The issue; guidelib.bkl has a rule to make the lib and demo.bkl has a rule to
make the demo.exe, but because demo.bkl depends on the guidelib it using
    <subproject id="guidelib">
        <dir>../../</dir>
        <dependency-of>all</dependency-of>
    </subproject>
This way the lib gets build if needed (just the same as the wxWin samples).
But for some reason this doesn't work to well:
- MSVC demo.dsw doesn't include the guidelib.dsp file, why? (BTW the root test
sample that comes with bakefile also doesn't include the sub dsp files when I
generated)
- The makefile generated for OW works fine (In other words it builds the lib
and the exe like I want) but for Borland it generates the following wrong demo
makefile rule:

<demo makefile.bcc>
guidelib:
 cd ..\..\
 $(MAKE) -f makefile.bcc $(MAKEARGS) all
 cd ..\..\..
</demo makefile.bcc>

Clearly the last cd is wrong... but also the first one as it should be " cd
..\.." if not make will report the following error:
<Error output>
E:\Dev\wxIDE\parts\guidelib\samples\demo>make -f makefile.bcc
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        if not exist Debug\bcc_dev mkdir Debug\bcc_dev
        cd ..\..  make -f makefile.bcc -DCC="bcc32" -DCXX="bcc32" -DCFLAGS=""
-DCXXFLAGS="" -DCPPFLAGS="-a8 -g0" -DLDFLAGS=""   -DBUILD="debug" -DWXWINVER="d
e
v" -DUNICODE="0" all

** error -1 ** deleting guidelib
</Error output>

More questions will follow, but I would like to get these resolved first.

Thanks!
Hans.





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn