[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New user, question and remarks
From: |
Timothee Besset |
Subject: |
Re: New user, question and remarks |
Date: |
Tue, 11 Dec 2001 16:35:22 +0100 |
You set that when constructing an environment. For instance:
$env = new cons(
ENV => { PATH => $ENV{PATH} . ":/usr/local/bin", },
CC => 'gcc', CPPPATH => "#libs:#include",
CFLAGS => '-Wall `gtk-config --cflags` `xml2-config --cflags`
-I../STLport/stlport -DQUAKE3",
..
);
This is taken from the cons script we use to build GtkRadiant. If you need
real-life cons examples you might want to take a look
(http://zerowing.idsoftware.com/viewcvs/viewcvs.cgi/GtkRadiant/)
regards
TTimo
At 16:18 11/12/2001 +0100, Nadim Khemir wrote:
Hi, thanks for cons. I always wanted such a utility as I am a devoted perl
user.
I guess I ll have many questions within the following weeks.
Question one: how do I define a variable for the compiler, that is I want to
to -DVARIABLE and have variable defined in the surce code I am compiling.
Documentation: unfortunatly I find the documentation compact and obscure.
All sounds very easy but it difficult to get stared. Real world examples
with some kind of graphical representation of how the directory structure
looks like would have been very helpfull.
Nadim