Author Topic: Unnessesary AngelScript dependancy [resolved]  (Read 4994 times)

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Unnessesary AngelScript dependancy [resolved]
« 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:
Code
-#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?
« Last Edit: December 03, 2005, 06:27:18 am by me22 »

takeshimiya

  • Guest
Re: AngelScript dependancy
« Reply #1 on: December 02, 2005, 12:42:08 am »
Can I request all external dependencies be #IFDEF'ed (angelscript, wxdockit, wxscintilla, ...)?

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: AngelScript dependancy
« Reply #2 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.

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: Unnessesary AngelScript dependancy
« Reply #3 on: December 02, 2005, 05:22:12 pm »
Hmm, it seems that there's another possible way to fix this: http://forums.codeblocks.org/index.php?topic=1492.0