[Scummvm-cvs-logs] SF.net SVN: scummvm:[55345] scummvm/trunk/tools/create_project/codeblocks. cpp
littleboy at users.sourceforge.net
littleboy at users.sourceforge.net
Thu Jan 20 08:29:46 CET 2011
Revision: 55345
http://scummvm.svn.sourceforge.net/scummvm/?rev=55345&view=rev
Author: littleboy
Date: 2011-01-20 07:29:45 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
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<name>.a)
Modified Paths:
--------------
scummvm/trunk/tools/create_project/codeblocks.cpp
Modified: scummvm/trunk/tools/create_project/codeblocks.cpp
===================================================================
--- scummvm/trunk/tools/create_project/codeblocks.cpp 2011-01-20 05:19:41 UTC (rev 55344)
+++ scummvm/trunk/tools/create_project/codeblocks.cpp 2011-01-20 07:29:45 UTC (rev 55345)
@@ -96,10 +96,10 @@
writeWarnings(name, project);
writeDefines(setup.defines, project);
- project << "\t\t\t\t\t<Add directory=\"..\\..\" />\n"
+ project << "\t\t\t\t\t<Add directory=\"$(SCUMMVM_LIBS)include\" />\n"
"\t\t\t\t\t<Add directory=\"..\\..\\engines\" />\n"
"\t\t\t\t\t<Add directory=\"..\\..\\common\" />\n"
- "\t\t\t\t\t<Add directory=\"$(SCUMMVM_LIBS)\\include\" />\n"
+ "\t\t\t\t\t<Add directory=\"..\\..\" />\n"
"\t\t\t\t</Compiler>\n";
//////////////////////////////////////////////////////////////////////////
@@ -107,7 +107,7 @@
project << "\t\t\t\t<Linker>\n";
for (StringList::const_iterator i = setup.libraries.begin(); i != setup.libraries.end(); ++i)
- project << "\t\t\t\t\t<Add library=\"" << *i << ".a\" />\n";
+ project << "\t\t\t\t\t<Add library=\"" << *i << "\" />\n";
for (UUIDMap::const_iterator i = _uuidMap.begin(); i != _uuidMap.end(); ++i) {
if (i->first == "scummvm")
@@ -116,7 +116,7 @@
project << "\t\t\t\t\t<Add library=\"scummvm\\engines\\" << i->first << "\\lib" << i->first << ".a\" />\n";
}
- project << "\t\t\t\t\t<Add directory=\"$(SCUMMVM_LIBS)\\lib\" />\n"
+ project << "\t\t\t\t\t<Add directory=\"$(SCUMMVM_LIBS)lib\\mingw\" />\n"
"\t\t\t\t</Linker>\n";
//////////////////////////////////////////////////////////////////////////
@@ -208,7 +208,10 @@
projectFile << "\t\t<Unit filename=\"" << convertPathToWin(filePrefix + node->name) << "\">\n"
"\t\t\t<Option compilerVar=\"WINDRES\" />\n"
"\t\t</Unit>\n";
-
+ } else if (ext == "asm") {
+ projectFile << "\t\t<Unit filename=\"" << convertPathToWin(filePrefix + node->name) << "\">\n"
+ "\t\t\t<Option compiler=\"gcc\" use=\"1\" buildCommand=\"$(SCUMMVM_LIBS)bin/nasm.exe -f win32 -g $file -o $object\" />"
+ "\t\t</Unit>\n";
} else {
projectFile << "\t\t<Unit filename=\"" << convertPathToWin(filePrefix + node->name) << "\" />\n";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list