Split AI folder from datadir

Split AI folder from datadir

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Split AI folder from datadir

Post by Agon »

Hello,
could we split the AI folder from the datadir direction?
I have problems with openSUSE buildservice since they use a script to check rpm packages if they are correctly packaged.
The script complains about the AI .so files in the datadir if they are stored under /usr/share/games/spring/AI.
They should be located here /usr/lib(64)/*.
To by pass this I moved the complete datadir to /usr/lib(64) but this includes none binary files which should stay on the old location.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Split AI folder from datadir

Post by Auswaschbar »

Added a AIDIR (which defaults to DATADIR) where you can choose install directory. They will be isntallled to $CMAKE_INSTALL_PREFIX/$AIDIR/AI/Bot-Libs/libAAI.so

Keep in mind you have to make $AIDIR known to spring (by adding it to /etc/spring/datadir for example).
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Split AI folder from datadir

Post by thesleepless »

perhaps AI should be split into AILIB and AIDATA, AILIB for platform dependent stuff and AIDATA for platform independent stuff

eg.
/usr/lib/spring/AI/blah.so
/usr/share/spring/AI/blah/config
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Split AI folder from datadir

Post by hoijui »

no.. dont do that!
this will all change heavyly and be obsolete with the new interface.. which is going to come soon! ;-)
main problem at the moment is: buildbot does not want to build it (though it is most likely my fault) i will try to eliminate this tomorow, as the buildbot can now compile branches again.
Post Reply

Return to “Engine”