From dd3894a44248e2c5b2c646b4cc1d1353442b7fbb Mon Sep 17 00:00:00 2001 From: Julien Templier Date: Thu, 20 Jan 2011 07:29:45 +0000 Subject: TOOLS: Allow compilation and linking from inside the Code::Blocks IDE with create_project-created workspaces - Fix include directory search order - Add custom tool command for asm files - Change linker search directory to SCUMMVM_LIBS/lib/mingw (libraries from the precompiled mingw package will need to be renamed to match the names from the MSVC precompiled package and be of the form lib.a) svn-id: r55345 --- tools/create_project/codeblocks.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tools/create_project/codeblocks.cpp b/tools/create_project/codeblocks.cpp index 74e6cfb19f..aefba3a1ba 100644 --- a/tools/create_project/codeblocks.cpp +++ b/tools/create_project/codeblocks.cpp @@ -96,10 +96,10 @@ void CodeBlocksProvider::createProjectFile(const std::string &name, const std::s writeWarnings(name, project); writeDefines(setup.defines, project); - project << "\t\t\t\t\t\n" + project << "\t\t\t\t\t\n" "\t\t\t\t\t\n" "\t\t\t\t\t\n" - "\t\t\t\t\t\n" + "\t\t\t\t\t\n" "\t\t\t\t\n"; ////////////////////////////////////////////////////////////////////////// @@ -107,7 +107,7 @@ void CodeBlocksProvider::createProjectFile(const std::string &name, const std::s project << "\t\t\t\t\n"; for (StringList::const_iterator i = setup.libraries.begin(); i != setup.libraries.end(); ++i) - project << "\t\t\t\t\t\n"; + project << "\t\t\t\t\t\n"; for (UUIDMap::const_iterator i = _uuidMap.begin(); i != _uuidMap.end(); ++i) { if (i->first == "scummvm") @@ -116,7 +116,7 @@ void CodeBlocksProvider::createProjectFile(const std::string &name, const std::s project << "\t\t\t\t\tfirst << "\\lib" << i->first << ".a\" />\n"; } - project << "\t\t\t\t\t\n" + project << "\t\t\t\t\t\n" "\t\t\t\t\n"; ////////////////////////////////////////////////////////////////////////// @@ -208,7 +208,10 @@ void CodeBlocksProvider::writeFileListToProject(const FileNode &dir, std::ofstre projectFile << "\t\tname) << "\">\n" "\t\t\t\n"; - + } else if (ext == "asm") { + projectFile << "\t\tname) << "\">\n" + "\t\t\t\n"; } else { projectFile << "\t\tname) << "\" />\n"; } -- cgit v1.2.3