Sebastian Schuberth
2008-08-06 14:47:28 UTC
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.
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
Sebastian Schuberth