Adding A New Lib?
Posted 19 December 2005 - 10:46 AM
Posted 19 December 2005 - 12:33 PM
It is possible, though it is not recommented to add any extra library dependency without a real need. Any extra dependency adds extra work for people trying to compile the game from sources. Also we should make sure that this library works on all the patforms supported by the game (currently windows, linux, macos x, freebsd, 64-bit linux on amd64). The set of supported platforms will probably grow.
Is it possible to add some libs (allegropak)? Because its much easier to do things with existing code and not to write all by my own.
We currenly include some of the exotic libraries directly into ufo2000 source tree (subdirectories inside of 'src' dir). For example, 'jpgalleg' is currently not amd64 compatible. We have a fixed version included into our source tree (and the fix was sent to jpgalleg author - but no new version with this fix was released yet).
As for allegropak, it does not seem to be maintained. Probably if we really need some code from it, the best way to use it is to directly include it in our sources.