Discussion:
[bakefile-devel] msvs2005prj and clean-files
Martin Gruber
2009-02-17 07:45:52 UTC
Permalink
Hi everyone,
I've been using the -f msvc option to generate nmake-makefiles for some time.
Now I read on this list, that msvs2005prj and vcbuild allows for better
handling of dependencies from headers, but unfortunately my bakefile does not
work with -f msvs2005prj, because of this:
"error: unknown target tag 'clean-files'"

Any chance of getting this to work? I am using bakefile 0.2.3

I also tried bakefile 0.2.5, but this does not work at all (even for
nmake-makefiles) with the following error message, which is pretty unreadable
to me:

Traceback (most recent call last):
File "C:\Programme\Bakefile\src\bakefile.py", line 237, in <module>
run(sys.argv[1:])
File "C:\Programme\Bakefile\src\bakefile.py", line 204, in run
read_ok = reader.read(args[0])
File "C:\Programme\Bakefile\src\reader.py", line 1150, in read
processFile(filename)
File "C:\Programme\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\Programme\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\Programme\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\Programme\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\Programme\Bakefile\src\reader.py", line 1112, in
processFileIfExists
processFile(filename, onlyOnce)
File "C:\Programme\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\Programme\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\Programme\Bakefile\src\reader.py", line 1071, in processNodes
processNodes(e.children)
File "C:\Programme\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\Programme\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\Programme\Bakefile\src\reader.py", line 1112, in
processFileIfExists
processFile(filename, onlyOnce)
File "C:\Programme\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\Programme\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\Programme\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\Programme\Bakefile\src\reader.py", line 171, in handleSet
cond = mk.makeCondition(condstr)
File "C:\Programme\Bakefile\src\mk.py", line 447, in makeCondition
assert conditions[cname].exprs == condexpr_list
AssertionError
Error executing the script!

Thanks in advance,
Martin
Václav Slavík
2009-02-17 08:26:51 UTC
Permalink
Hi,
Post by Martin Gruber
Now I read on this list, that msvs2005prj and vcbuild allows for better
handling of dependencies from headers, but unfortunately my bakefile does not
"error: unknown target tag 'clean-files'"
<clean-files> cannot be implemented in these IDE project files AFAIK.
It should probably be implemented as no-op (possibly with a warning)
in these formats, but in the meantime, the fix is trivial: just use it
conditionally:

<clean-files cond="FORMAT!='msvs2005prj'">...</clean-files>
Post by Martin Gruber
I also tried bakefile 0.2.5, but this does not work at all (even for
nmake-makefiles) with the following error message, which is pretty unreadable
http://www.bakefile.org/ticket/230

Regards,
Vaclav

Loading...