fileList does not seem to expand variables

Sebastian Schuberth <[email protected]> Wed, 06 Aug 2008 16:47:28 +0200
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <[email protected]>
Hi,

I'm new to Bakefile (and to Python) and want to start off by porting a small CMake project. I'm having some problems with the following file:

<?xml version="1.0"?>

<makefile>

<set var="PROJECT_NAME">gale</set>

<set var="BUILD_ROOT">..</set>
<set var="HEADER_ROOT">$(BUILD_ROOT)/include</set>
<set var="SOURCE_ROOT">$(BUILD_ROOT)/source</set>
<set var="GLEX_ROOT">$(BUILD_ROOT)/glex</set>

<lib id="$(PROJECT_NAME)">
    <headers>$(fileList(["$(HEADER_ROOT)/gale/math/*.h",'$(HEADER_ROOT)/*.inl']))</headers>
    <sources>$(SOURCE_ROOT)/*.cpp</sources>
    <include>$(HEADER_ROOT) $(GLEX_ROOT)</include>
    <sys-lib></sys-lib>
    <libname>$(BUILD_ROOT)/lib/$(PROJECT_NAME)</libname>
</lib>

</makefile>

It seems fileList() does not expand $(HEADER_ROOT):

[dbg] condition 'BUILDDIR=='.'' for variable '_builddir' is always met
fileList('$(HEADER_ROOT)/gale/math/*.h'): matches for ...

If I replace $(HEADER_ROOT) with the actual directory, it works. What am I doing wrong?

Thanks.

-- 
Sebastian Schuberth


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/