Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: me22 on December 02, 2005, 12:37:40 AM

Title: Unnessesary AngelScript dependancy [resolved]
Post by: me22 on December 02, 2005, 12:37:40 AM
src/sdk/scriptingmanager.h currently includes <angelscript.h>, but all it uses is a pointer to asIScriptEngine, so a forward declaration would suffice:
-#include <angelscript.h>
#include "settings.h"
#include <wx/intl.h>

+class asIScriptEngine;


I found this one out 'cause I don't have <angelscript.h> -- shouldn't there be a --disable-angelscript or something for ./configure to turn off the parts that need it?
Title: Re: AngelScript dependancy
Post by: takeshimiya on December 02, 2005, 12:42:08 AM
Can I request all external dependencies be #IFDEF'ed (angelscript, wxdockit, wxscintilla, ...)?
Title: Re: AngelScript dependancy
Post by: me22 on December 02, 2005, 01:08:53 AM
Followup: it seems that a plain "./configure --enable-debug" doesn't try to compile the angelscript-needing stuff, apart from the one thing above--I got it to finish compiling without any further angelscript-related changes.
Title: Re: Unnessesary AngelScript dependancy
Post by: me22 on December 02, 2005, 05:22:12 PM
Hmm, it seems that there's another possible way to fix this: http://forums.next.codeblocks.org/index.php?topic=1492.0