Fix dmake for Windows.

This commit is contained in:
Kimmo Varis 2010-03-11 22:30:06 +02:00
parent a7996ab252
commit b746e9d4be
2 changed files with 19 additions and 3 deletions

View File

@ -23,7 +23,12 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
#include "../lib/filelister_unix.h"
#if defined(_WIN32)
#include "fileLister_win32.h"
#else // POSIX-style system
#include "filelister_unix.h"
#endif
std::string objfile(std::string cppfile) std::string objfile(std::string cppfile)
{ {
@ -82,8 +87,7 @@ static void compilefiles(std::ostream &fout, const std::vector<std::string> &fil
static void getCppFiles(std::vector<std::string> &files, const std::string &path) static void getCppFiles(std::vector<std::string> &files, const std::string &path)
{ {
FileListerUnix lister; getFileLister()->recursiveAddFiles(files, path, true);
lister.recursiveAddFiles(files, path, true);
// only get *.cpp files.. // only get *.cpp files..
for (std::vector<std::string>::iterator it = files.begin(); it != files.end();) for (std::vector<std::string>::iterator it = files.begin(); it != files.end();)
{ {

View File

@ -188,12 +188,24 @@
RelativePath="..\lib\filelister.cpp" RelativePath="..\lib\filelister.cpp"
> >
</File> </File>
<File
RelativePath="..\lib\filelister_win32.cpp"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="Header Files" Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd" Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
> >
<File
RelativePath="..\lib\filelister.h"
>
</File>
<File
RelativePath="..\lib\filelister_win32.h"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="Resource Files" Name="Resource Files"