[Widelands-public] Install path (compile time configuration)
Status: Beta
Brought to you by:
sirver
From: <st...@up...> - 2005-12-31 12:23:25
|
Hello, I just came across INSTALL_DATADIR. Its content, at least on my system, is bogus ("./share/widelands"). Rather, I suggest to have some INSTALL_PREFIX in config.h, which would be exactly what a autoconf-script would understand by --prefix and should default to "/ usr/local" as with autoconf. Then, in setup.h, instead of g_fs->AddFileSystem(FileSystem::CreateFromDirectory (INSTALL_DATADIR)); //see config.h for INSTALL_DATADIR do g_fs->AddFileSystem(FileSystem::CreateFromDirectory(INSTALL_PREFIX "/ share/widelands")); and do not use current working directory anymore on UNIX release builds as a fallback. There should be some option to set the prefix, preferable called --prefix as well to avoid confusion. Of course, the binary belongs to $INSTALL_PREFIX/bin. Stefan |