Commit Graph

27 Commits

Author SHA1 Message Date
Kevin Shanahan 65b38c4952 build: add simple target for building OS X fat binaries
The "fatbin2" target isn't working yet since I don't have the right cross
compiler set up, but once I do then adding CC=foo to the $(MAKE) command
should be all that is needed.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:20:34 +10:30
Kevin Shanahan e0eabb1095 build: use the correct build dir variable for qbsp objects
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:19:42 +10:30
Kevin Shanahan 49e5d76273 build: add LDFLAGS from environment when linking
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-01 09:19:16 +10:30
Kevin Shanahan 9580847712 build: fix pthread build warning on darwin
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-12 08:58:56 +10:30
Kevin Shanahan 87e9c04205 build: detect darwin as a supported platform
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-12 08:58:27 +10:30
Kevin Shanahan 5df0b0c27a build: add -Wwrite-strings to build arguments()
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-11 20:11:16 +10:30
Kevin Shanahan dacba3ca2e build: make build skip the strip step if STRIP is empty
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-11 18:47:47 +10:30
Kevin Shanahan 4161d10a68 vis: add saving and resuming of vis state to/from disk
Inspired by the implementation of Benjt Jardrup, save the current state of
the vis job to disc at regular intervals so that we can resume from that
point in case the computer needs to be rebooted/shutdown or crash/power
issues occur.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-09 16:40:37 +10:30
Kevin Shanahan 0e343c4cf8 build: fix linking utils with pthreads
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-08 16:47:17 +10:30
Kevin Shanahan a56030fad0 common: make logprint properly interrupt the thread progress display
Logprint will notify the threads code that the progress meter has been
interrupted and the progress meter will re-print the next time it needs to
be updated.

Unfortunately this makes all the utils depend on the thread code, but not
a big issue.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-02-08 16:37:48 +10:30
Kevin Shanahan c42f0e26b4 vis: use the common threads code
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-26 10:38:50 +10:30
Kevin Shanahan 7ee8bc183b light: use the common threads code
Make light use the common threads code.
The common progress indicator code is still not used.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-26 09:35:26 +10:30
Kevin Shanahan 0908b25f47 build: don't need (or want) -W arg to pwd on Windows
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 21:59:29 +10:30
Kevin Shanahan 6fab0a5358 light: make pthreads support work
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 20:14:39 +10:30
Tyrann a911219515 Remove need for "prepare" in the Makefile
Just conditionally do mkdir if it's needed. Potentially a few more
calls to 'stat' during make, but should be cheap enough...
2012-01-07 18:01:32 +10:30
Tyrann a16d9b07c9 Properly include generated dependency files in Makefile 2012-01-07 16:45:31 +10:30
Tyrann 7763d7d9fe Rewrite Makefile
Pretty much completely rewrite the Makefile using concepts from my
tyrquake Makefile. So we get quiet compiles, cross compiles and
properly generated dependencies.
2012-01-06 20:57:58 +10:30
Tyrann 8a7304a54d [PATCH] TyrUtils v0.4
Quick release to fix the ongoing saga that is my crappy .lit coloured lighting
support. I really did test it this time...

I bumped the qbsp version as well, just to track the utils "package" version.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-09-25 11:18:00 +09:30
Tyrann 8e774a9b30 [PATCH] TyrUtils v0.3
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-09-23 21:08:33 +09:30
Tyrann 1cfdcdb85a [PATCH] qbsp: Link against math lib
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-21 23:18:56 +09:30
Tyrann 6bd69a0519 [PATCH] qbsp: Remove malloc retry logic
If we run out of memory, then too bad. Qbsp never _really_ takes so long that
you'd really care too much about starting again. Simplifies portability.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-19 05:32:46 +09:30
Tyrann c221cc2f08 [PATCH] qbsp: Update IntroString / version number
I better replace the IntroString with my own, so it's obvious people are
running a modified version.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-10-09 13:47:08 +09:30
Tyrann 4464491807 [PATCH] qbsp: Use double-precision floating point
Set the vec_t type to "double" using the DOUBLEVEC_T preproccessor define. Fix
up hard-coded usages of float in various places throughout the code. Note that
texinfo_t is an on-disk structure, so that needs to stay as float and we work
around incompatibilities with the vector functions using a temporary vec3_t.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-16 16:36:16 +09:30
Tyrann 50e6c880cc [PATCH 9/9] qbsp: Compile as C code
Now that all the C++isms have been removed, rename the .cpp source files to .c
and remove the special case makefile rules for compiling qbsp object files.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:38:34 +09:30
Tyrann 1c082ace11 [PATCH 8/9] qbsp: Remove stricmp/strcasecmp workaround
Patch the source files and remove the preprocessor workaround for
stricmp/strcasecmp substitution.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:38:34 +09:30
Tyrann 25f6148fc3 [PATCH] Make qbsp build
Make some bare-minimum changes to get qbsp to build with gcc/g++ and
MinGW/Msys.
o Added makefile rules
o Work around windows specific calls to e.g. _getcwd
o Use noecho() / echo() calls around getch() in Linux
o Substitute stricmp -> strcasecmp (in Makefile for now)
o Fix non-portable (incorrect?) of inline
o Fix misuse of delete where delete [] is required...

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 17:35:05 +09:30
Tyrann 2c2f3c8eb6 Import initial sources 2006-08-28 23:58:10 +09:30