chaosfire / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Installed file structure #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For providing real Linux packages for various distributions, the game must be 
able to be installed into the Unix filesystem hierarchy (binary to $PREFIX/bin, 
datas to $PREFIX/share/games/stuntrally)

After this task, Tapio (me) can also add install target to CMake ("make 
install") and create packaging scripts for CPack ("make package"). And we could 
submit the game to inclusion in various distributions as well as create a 
"nightly build" system to Launchpad or OpenSUSE Build Service.

I suggest putting all config files to a subdirectory called "config", next to 
the data subdir. If we want, we can do some CMake mangling to output binaries 
on Windows to the root directory instead of bin/ but since we should have a Win 
installer anyway (that creates shortcuts and all), this shouldn't matter much 
(please discuss).

Original issue reported on code.google.com by tapiovie...@gmail.com on 21 Mar 2011 at 10:58

GoogleCodeExporter commented 8 years ago

Original comment by tapiovie...@gmail.com on 21 Mar 2011 at 1:37

GoogleCodeExporter commented 8 years ago
The repository internal file structure has been enhanced and install targets 
added to CMake (i.e. "make install" works). Next up is to make the binaries 
find the installed data properly (and refactor & enhance the path stuff in 
general).

Original comment by tapiovie...@gmail.com on 21 Mar 2011 at 6:28

GoogleCodeExporter commented 8 years ago

Original comment by Cry...@gmail.com on 21 Mar 2011 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by Cry...@gmail.com on 21 Mar 2011 at 7:05

GoogleCodeExporter commented 8 years ago
Good progress, pathmanager nearly ready, then just making a few rogue 
hard-coded paths use that and some testing.

Original comment by tapiovie...@gmail.com on 21 Mar 2011 at 10:49

GoogleCodeExporter commented 8 years ago
This is now almost done: I can run the game from the root directory as before, 
or I can run the game from the build dir, or I can `make install` the game to 
an arbitrary prefix and run from there with an arbitrary working directory - 
awesome!

I still need to check that all resources are loaded properly - unfortunately 
this has been difficult due to some things using the ogre resource system (in 
which case things go automatically, once the resource system is initialized 
with the data path), but xml files and some config files are loaded separately, 
so I need to hunt them down and prefix them with the path.

Anyway, I'll be committing stuff later today. There are still several things 
that need addressing later, but this is already a huge improvement.

Original comment by tapiovie...@gmail.com on 22 Mar 2011 at 9:02

GoogleCodeExporter commented 8 years ago
Code committed. This still doesn't allow installing to write protected 
locations, but I'll open another issue for that. I leave this open as Solved 
for a while to allow for testing.

I have also written a new wiki page Paths that describes the current situation 
and also some future plans.

Original comment by tapiovie...@gmail.com on 22 Mar 2011 at 4:48

GoogleCodeExporter commented 8 years ago

Original comment by tapiovie...@gmail.com on 24 Mar 2011 at 8:20