Eric Wasylishen
12132795cb
build: fix invocation of 'lipo' in Makefile
2015-10-26 20:18:55 +00:00
Eric Wasylishen
396bdfbc4f
build: work around confusing behaviour of mingw-w64, which provides a broken snprintf (and others) unless you request otherwise
2015-08-19 23:56:09 -06:00
Eric Wasylishen
02196e2efa
Makefile/CMakeLists.txt: factor out stack size setting to here.
2015-04-25 17:29:23 -06:00
Eric Wasylishen
1d05f97769
Makefile: support building in a path containing spaces
2015-02-22 20:35:57 -07:00
Kevin Shanahan
191bc63267
build: bump the fallback version number in Makefile
...
Should add this to the release checklist, haven't done it in a while!
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-02-21 12:00:32 +10:30
Kevin Shanahan
7a2f4383ff
build: use single call to wildcard for depfiles
...
Provides a modest speedup on Windows, where this operation is ridiculously
slow. Not a huge number of files on this project, but the speedup is
measurable.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-08-06 16:29:21 +09:30
Kevin Shanahan
59f53cf2fa
bump version post-release
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-25 21:43:32 +09:30
Kevin Shanahan
a78115fa2c
doc: add documentation for bspinfo and bsputil
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 14:29:12 +09:30
Kevin Shanahan
0ad7bac1d3
build: only move tar archive to target name on success
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 12:22:06 +09:30
Kevin Shanahan
45fa5a6e39
build: add a target for building source tarball from git
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 11:37:51 +09:30
Kevin Shanahan
fc38e25074
post-release version bump
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 09:33:57 +09:30
Kevin Shanahan
d42b6a062c
TyrUtils v0.9
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-24 09:05:15 +09:30
Kevin Shanahan
4c6142e97f
qbsp: use the common logfile code
...
Not too intrusive, since the Message() layer still acts as a shim
here. Most of the changes are for the Makefile. Qbsp now links to
the threading code as a result, but no thread support... yet!
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-23 15:48:32 +09:30
Kevin Shanahan
dddae057d6
TyrUtils v0.8
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-23 09:40:05 +09:30
Kevin Shanahan
5943c71c98
common: pass file handle and header into AddLump
...
Instead of passing parameters via globals.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-20 10:53:34 +09:30
Kevin Shanahan
4220341252
build: create build version file and dependencies
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:10:26 +09:30
Kevin Shanahan
02e1f44f51
build: clean the dist directory too
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:02:46 +09:30
Kevin Shanahan
daa2d4c868
post-release version update
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 16:02:25 +09:30
Kevin Shanahan
2539b73868
TyrUtils v0.7
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 14:39:52 +09:30
Kevin Shanahan
a8348418e6
Merge branch 'master' of ssh://tuon/~/scm/tyrutils
2013-04-10 14:33:07 +09:30
Kevin Shanahan
af9caf4048
build: set up snapshot targets for Win32 and OSX
...
Pull in some of the techniques from my TyrQuake Makefile and build OSX
fat binaries in one invocation of 'make'.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-10 14:21:59 +09:30
Kevin Shanahan
4021c06852
build: fix ghetto unix2dos conversion to work on msys
...
The only thing that seems to be able to convert \n to \r\n is awk, so use
that everywhere.
I don't understand why, but echoing the verbose command on OSX echos a
literal \r and messes up the output. Adding an extra \ escape fixes it
there, but then Linux/Msys echo the extra \... I think the OSX behaviour
might be broken here, oh well...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-04 14:30:09 +10:30
Kevin Shanahan
9b5868ad6d
build: tag builds with uncommitted changes as dirty
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-28 10:00:57 +10:30
Kevin Shanahan
f0af8eac91
build: fix for text documentation generation
...
Fix the date/version tags in the man pages also.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-20 10:42:55 +10:30
Kevin Shanahan
f369c97f68
build: fix directory names properly in fatbin rules
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 15:52:48 +10:30
Kevin Shanahan
2c4f898bbf
build: insert the date/version into the man pages
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 15:38:04 +10:30
Kevin Shanahan
08408888bc
build: small tidy up to documentation generation
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 14:11:41 +10:30
Kevin Shanahan
2da19f77f9
build: small tidy up to version number generation
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 14:08:23 +10:30
Kevin Shanahan
f24a94eab5
build: improve man2txt and man2html rules
...
* Output to temp file and only move to final location upon success
* Fix echo of command in verbose mode (requires quotes)
* Don't use $(call ...) to invoke the groff command
* Use printf to generate the \r for the sed "unix2dos" replacement
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 13:59:45 +10:30
Kevin Shanahan
b4ff9663cc
build: add ability to compile for WIN64 using MinGW64
...
Fix a few minor int<->pointer size warnings.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-15 21:49:16 +10:30
Kevin Shanahan
af80a06f74
docs: convert docs to unix man page format with generated html and text
...
Had to increase the width of the quiet_cmd_* defines to fit the new
MAN2HTML quiet command.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-15 20:16:23 +10:30
Kevin Shanahan
7401127b1c
build: use BUILD_DIR instead of BIN_PFX for building OSX fat binaries
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-13 12:56:23 +10:30
Kevin Shanahan
15eaf4b8a8
build: hack together a quick way to build a win32 snapshot
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-13 12:55:35 +10:30
Kevin Shanahan
b6b7aca665
TyrUtils v0.6
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-07 18:33:19 +10:30
Kevin Shanahan
7b36c6fd2f
build: query git for version info and print consistently for each util
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-07 14:26:14 +10:30
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