Commit Graph

26 Commits (5ccaa17971c27089cdc22086d72c358a8560c02b)

Author SHA1 Message Date
Giel van Schijndel 03c4fd6256 * Add version.[ch]
* this module uses the information extracted from the automatically generated file src/autorevision.h to add revision information to the project
  * provides a function version_getFormattedVersionString() which replaces several pieces of customly crafted code to dump a version string (frontend.c, main.c and clparse.c)
 * update po/POTFILES.in
  * add some recently added files
 * make -C po update-po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2723 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-05 02:31:09 +00:00
Giel van Schijndel 673812b2a4 * Add file strlfuncs.h; this file contains an inline implementation of strlcpy and strlcat (safer variants of strncpy and strncat respectively)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2627 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-26 17:05:29 +00:00
Giel van Schijndel 5707e8ed99 * Enable NLS (Native Language Support) when compiling with Code::Blocks
* Link against libintl
   * #define ENABLE_NLS

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2622 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-25 17:41:44 +00:00
Giel van Schijndel b26a610760 * Add AutoRevision to Code::Blocks project file
* Utilize AutoRevision to create src/autorevision.h when building (pre-build step)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2621 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-25 17:39:30 +00:00
Giel van Schijndel ec353ec182 * Add lib/framework/tagfile.[ch] to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2588 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:07:39 +00:00
Giel van Schijndel d075832459 * Add font rendering and UTF-8 support through usage of QuesoGLC (an OpenGLC implementation);
* This _will_ require you to install http://quesoglc.sourceforge.net/ on your system to be able to compile (windows binaries are provided on the sourceforge download page as well; just dump them in wz's devpackage directory for now)
 * Currently the font render code is hard-coded to select two fonts: DejaVu Sans Mono regular style (aka "Book") or bold style; if you're package manager doesn't provide these fonts (Debian and derivatives have "ttf-dejavu"), you can get them from http://dejavu.sourceforge.net/

This closes #1 (https://trac.mortis.eu/warzone/ticket/1 I dumped/maintained my patch there)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2521 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 19:45:49 +00:00
Giel van Schijndel 470ea85417 * Remove lib/framework/utf8.c[ch] as we don't need it just right now (we can always revert this commit later on if necessary)
* This commit removes utf8.[ch] from all build systems (manual text-editing for the most of them)
 * For the removal from the XCode project I just reverted r2288

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2477 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 19:46:10 +00:00
Giel van Schijndel f99cd3e326 * Fix Code::Blocks object output directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2471 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:34:03 +00:00
Giel van Schijndel 244842406c * Add dual platform support to Code::Blocks project file (now supports both Linux and Windows, requires a rather recent version of Code::Blocks though)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2470 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:16:58 +00:00
Giel van Schijndel 33b5764611 * Rename winmain.h to main.h since all it's forward declarations refer to main.c and having nothing whatsoever to do with MSWin
* Remove forward declaration of "BOOL frontendInitialised" since it is nowhere defined

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2469 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 18:16:10 +00:00
Giel van Schijndel dc8ead56ff * Add virtual target "All" to Code::Blocks file (automatically compiles both a Debug and a Release build)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2419 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-20 14:34:38 +00:00
Giel van Schijndel b95b607976 * Revert unintentional changes to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2359 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:52:49 +00:00
Giel van Schijndel 74e64738fa * Add network primitives by Freddie Witherden <EvilGuru>
* Modify them slighly to use get/set functions for the package direction (instead of a global accessable to all files which forward declare it)
 * Add a NETfloat to the set of primitives
 * Modify NETstring to use strnlen1 instead of strnlen which is a GNU extension to the C library (strnlen1 has been copied from gettext 0.16.1 which is GPLv2+)
NB: rerun your buildsystems
NB2: Xcode requires an update

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2358 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:50:28 +00:00
Giel van Schijndel fc8ab2c14e * Remove CursorSnap code; it was this code that was responsible for "snapping" the mouse cursor when switching menus
* This removes csnap.[ch] (removed from automake/autoconf, Code::Blocks, MSVC)
Patch #789 by Ken Rushia (with some minor additions & changes by me)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2344 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-05 11:42:59 +00:00
Giel van Schijndel 566ed75daf * Add -std=gnu99 to the compiler options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2317 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-02 14:51:39 +00:00
Giel van Schijndel 38a82a2ada * Add UTF-8 encoder (the decoder is a WIP)
* Add files lib/framework/utf8.[ch] to autoconf/automake, raw makefiles, Code::Blocks and MSVC
NOTE: this may require updating of some additionaly buildsystems (e.g. OSX)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2281 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-30 14:02:05 +00:00
Giel van Schijndel 393e753f60 * Update buildsystems for the addition of lib/netplay/nettypes.[ch] in r2160:
* autoconf/automake buildsystem
  * raw makefiles
  * Code::Blocks project file
 * lib/netplay/nettypes.[ch]:
  * set svn:eol-style and svn:mime-type
  * add a GPL header to the file
  * add include guards to the header file (nettypes.h)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2245 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-28 13:41:51 +00:00
Giel van Schijndel 99be7db2f4 Update Code::Blocks project to match:
* removal of bullet.h in r2060
 * renaming of base.h, bulletdef.h and weapons.h to basedef.h, projectiledef.h and weapondef.h respectively in r2063

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2080 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-13 23:12:34 +00:00
Giel van Schijndel 12c3d78559 * Add "-Werror-implicit-function-declaration" to Code::Blocks project compile options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2000 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 11:03:41 +00:00
Giel van Schijndel 39db2bef4b * Update Code::Blocks and MSVC projects to removal of lib/netplay/netcrypt.c in r1953
* Remove lib/netplay/netcrypt.c from the list of files to extract translatable strings from for gettext


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1954 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 13:46:29 +00:00
Giel van Schijndel eeeedf36ed * Warzone is a GUI application, so set this in Code::Blocks so that M$Win doesn't produce a console window
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1948 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 19:08:48 +00:00
Giel van Schijndel e4e5233a44 * Revert changes to Code::Blocks projectfile in r1915
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1936 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 12:34:07 +00:00
Giel van Schijndel 1779c3f364 * Add two other Code::Blocks files (projectfile.depend, projectfile.layout) to ignore list
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1915 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:06:35 +00:00
Giel van Schijndel 830751b056 * Update Code::Blocks project file to 1.6 format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1881 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 23:28:11 +00:00
Giel van Schijndel 0fc5249f79 Use correct include variable ($includes instead of $include) for custom build commands
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1880 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 21:45:12 +00:00
Giel van Schijndel da8d699f03 * Add Code::Blocks project file
This currently compiles clean on GNU/Linux (disables gettext though), I haven't tested Windows yet.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1879 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 17:15:45 +00:00