[okl4-developer] Adding libraries
Hal Ashburner
hala at ok-labs.com
Fri Nov 2 16:34:59 EST 2007
On Fri, 2007-11-02 at 15:52 +1030, Peter Nguyen wrote:
> Hi,
>
> Let's suppose i wanted to add my own library in iguana (ie. in addition
> to c, ll, trace etc.). What are the steps i have to take in ensuring
> that it gets recognized?
What do you mean by "recognised" ?
In general, you have to make sure the build system is instructed to
build it and you have to make sure that your application links against
it.
Assuming "your_lib" is in the "libs/" and "your_program" is in "iguana/"
directories respectively then:
The way this is done in projects/iguana/Sconstruct is as follows.
# build your_library
ig_env.Package("libs/your_library")
#build your_program
your_program = ig_env.Package("iguana/your_program")
then in the Sconscript file for your_program enusre it builds linking
against your_library
obj = env.KengeProgram("your_program",
weaver = weaver,
LIBS=[ "c", "iguana", "your_library"])
Hope this helps.
--
Kind regards,
Hal Ashburner
More information about the Developer
mailing list