Commit Graph
91 Commits
Author SHA1 Message Date
Ben "root" Anderson 48ca0a5908 Move our winres.h out of the way so VS does not get confused 2013-10-31 20:43:51 -05:00
Ben "root" Anderson 095c6877c2 rc does not define _MSC_VER. Oops. We will use our own define. 2013-10-31 20:19:17 -05:00
Ben "root" Anderson eb5999f8a8 libpng 1.6 was having issues. Here is 1.5. 2013-10-31 20:18:21 -05:00
Ben "root" Anderson 8ad1a75f69 elseif -> elif. Apparently I need to brush up on my CPP. 2013-10-30 00:13:07 -05:00
Ben "root" Anderson d2f43a73e4 LinuxThreadHelpers -> PthreadHelpers part 3 2013-10-30 00:08:19 -05:00
Ben "root" Anderson a5eb4376ae Nuke extern libz as mingw-64 packs in a libz and it causes issues with libpng 2013-10-29 23:58:52 -05:00
Ben "root" Anderson 62313006c1 Keeping consistency between RS_Save_PNG and RS_Load_PNG 2013-10-29 22:29:05 -05:00
Ben "root" Anderson b64a766e0f winres.h -> afxres.h redirect for MinGW 2013-10-29 22:20:44 -05:00
Ben "root" Anderson 165168c05d 1) Make GL_CFLAGS/XCFLAGS/XLIBS actually be respected 2) Include Windows resources in the build 2013-10-29 19:58:58 -05:00
Ben "root" Anderson 32a25023d3 Die early if CreateDialog fails 2013-10-29 15:51:47 -05:00
Ben "root" Anderson b676d136e4 Stub out SetThreadName for now 2013-10-27 15:55:22 -05:00
Ben "root" Anderson 2867071f02 DEBUG_ASSERT should not bail. 2013-10-27 15:46:52 -05:00
Ben "root" Anderson 7c1f08b250 1) Not _WINDOWS. _MSC_VER. MinGW uses either system libpng or its own extern pulled by autoconf. 2) Note an observed segfault I worked around 2013-10-27 15:43:16 -05:00
Ben "root" Anderson 3b9d8a9994 These should be on by default in debug 2013-10-27 15:40:41 -05:00
Ben "root" Anderson 05cdf562eb Actually use system libpng instead of detecting and then effectively ignoring it. 2013-10-27 15:39:19 -05:00
Ben "root" Anderson ad8a655ce7 Define DEBUG when building debug 2013-10-27 15:38:45 -05:00
Ben "root" Anderson 263240debc Apparently MinGW needs this too. 2013-10-27 15:36:05 -05:00
Ben "root" Anderson 3d466eb227 Missed a last few archutils, I blame WinMain 2013-10-27 12:43:49 -05:00
Ben "root" Anderson c636a48952 The last of the win32-specific libs. 2013-10-26 18:04:01 -05:00
Ben "root" Anderson 90f9115317 OpenGL detection overhaul. 1) Fix some bad quoting 2) More consistent formatting 3) Add GLU detection 4) Rewrite GLEW detection from scratch and move it to opengl.m4 where it belongs. 2013-10-26 18:03:46 -05:00
Ben "root" Anderson 2aabd327b3 1) Pretty sure that pragma is MSVC specific. 2) Whatever bug that was it is not present in MinGW. 2013-10-26 17:47:57 -05:00
Ben "root" Anderson b3a5d8ea49 Slightly more robust ifs. Actually export GL_LIBS. 2013-10-26 17:41:27 -05:00
Ben "root" Anderson 13a4ee3328 Tell ld we are a GUI program 2013-10-26 17:16:17 -05:00
Ben "root" Anderson b689134717 Did not find dxerr on MinGW-W64, resorting to dxerr9 2013-10-26 17:05:18 -05:00
Ben "root" Anderson d61f2f8750 Actual AT&T syntax for this one, and do GCC inline asm correctly 2013-10-26 17:04:42 -05:00
Ben "root" Anderson fcb3be7c19 More archutils and one DSound .cpp I missed. I THINK I got them all this time. 2013-10-26 16:06:08 -05:00
Ben "root" Anderson dee10e7664 Typo! 2013-10-26 15:40:21 -05:00
Ben "root" Anderson f876fa233c Cannot pass RString to ... in GCC 2013-10-26 15:40:00 -05:00
Ben "root" Anderson 9e546d95cc I thought I removed that 2013-10-26 15:33:33 -05:00
Ben "root" Anderson ddd94c2013 SEH not supported on GCC. We are just kind of hoping this never throws an exception because I do not think it is possible to catch SEH exceptions under GCC anyway. 2013-10-26 15:31:45 -05:00
Ben "root" Anderson 857100899e Manually newline each inline assembly line. GCC asm syntax is just braindead like that. 2013-10-26 15:19:20 -05:00
Ben "root" Anderson 6157d7eb3e This is Intel syntax! 2013-10-26 15:04:59 -05:00
Ben "root" Anderson 7888b7a336 Really? What kind of exception is ASSEMBLY CODE going to throw? 2013-10-25 19:29:29 -05:00
Ben "root" Anderson 2109beeee3 GCC requires these kinds of casts to be explicit 2013-10-25 19:27:11 -05:00
Ben "root" Anderson ca295a8c80 Mark this for changing later 2013-10-25 19:24:18 -05:00
Ben "root" Anderson ed7d824bbb Conditionalize asm syntax. Add GCC asm syntax. 2013-10-25 19:19:26 -05:00
Ben "root" Anderson 4ff5fe367a That wasnt supposed to be there. 2013-10-25 19:16:18 -05:00
Ben "root" Anderson d8cab4da7f Apparently hg didnt revert correctly this time. 2013-10-25 19:15:45 -05:00
Ben "root" Anderson 1b60236147 Revert "I really should test my shit before committing."
This reverts commit ad404950ef.
2013-10-25 19:11:34 -05:00
Ben "root" Anderson ad404950ef I really should test my shit before committing. 2013-10-25 18:11:57 -05:00
Ben "root" Anderson 3a730b3c3c Introducing SM_ASM_X86, a compiler-agnostic inline assembly macro 2013-10-25 18:05:56 -05:00
Ben "root" Anderson 469260911a I dont think theres anything to catch here. GCC doesnt have SEH so skipping the tryblock for now. 2013-10-25 17:56:12 -05:00
Ben "root" Anderson 911cd2e299 Making headway on required archutils 2013-10-25 17:55:07 -05:00
Ben "root" Anderson 14e500e0f6 Hack: Dont pthread on Windows. 2013-10-25 17:54:41 -05:00
Ben "root" Anderson 0f86f79a3c else if what? Assuming you meant just else 2013-10-25 17:24:35 -05:00
Ben "root" Anderson 944921ac12 You need global.h for RString 2013-10-25 15:52:07 -05:00
Ben "root" Anderson 9d6a9510f4 Added this to the wrong file 2013-10-25 15:51:44 -05:00
Ben "root" Anderson 4c62a0e5b4 You need StdString.h for RString 2013-10-25 15:42:19 -05:00
Ben "root" Anderson 95ba9dd658 You need stdint.h for uint64_t 2013-10-25 15:41:20 -05:00
Ben "root" Anderson 915a08f1d8 Just pulling in Unix/Backtrace.h with no impl for now. 2013-10-25 15:40:58 -05:00
Ben "root" Anderson 23eaa78c1b This is only used in archutils/Unix/CrashHandler.cpp so conditionalize it. 2013-10-25 15:39:39 -05:00
Ben "root" Anderson a54e0f1205 Missed changing LinuxThreadHelpers -> PthreadHelpers in the .cpp itself 2013-10-25 15:29:33 -05:00
Ben "root" Anderson 808ed4c036 MinGW gives us clockid_t 2013-10-25 15:27:05 -05:00
Ben "root" Anderson f38d56104c typo 2013-10-25 15:26:42 -05:00
Ben "root" Anderson 0959033fe6 LinuxThreadHelpers -> PthreadHelpers 2013-10-25 15:15:41 -05:00
Ben "root" Anderson 859a10e5c8 GCC needs these casts to be explicit 2013-10-25 15:13:47 -05:00
Ben "root" Anderson 2d9890747c src/Makefile.am: 1) LinuxThreadHelpers -> PthreadHelpers 2) Missed a Threads_Pthreads inclusion 3) Snub MovieTexture_DShow for now 2013-10-25 15:13:14 -05:00
Ben "root" Anderson 40ca822982 Fix HAVE_PTHREAD conditional 2013-10-25 15:10:40 -05:00
Ben "root" Anderson 0b6fc17c27 Oops. Not sure how that compiled but okay. 2013-10-25 04:12:14 -05:00
Ben "root" Anderson dfb758d35a Noting an observation 2013-10-25 04:11:45 -05:00
Ben "root" Anderson 7608c814e4 GCC is very very picky about switch statements. 2013-10-25 03:59:55 -05:00
Ben "root" Anderson 0123a24dd1 Can't get the WDMKS driver to build. Operating on the assumption that it was broken in the first place. 2013-10-25 03:59:26 -05:00
Ben "root" Anderson 7775c35ec0 It was all much ado about const 2013-10-25 02:46:37 -05:00
Ben "root" Anderson d6e8e10615 Actually really force 32bit this time 2013-10-25 02:46:09 -05:00
Ben "root" Anderson 7a1b2faff7 Revert "the const CT& stuff confuses GCC"
This reverts commit 082a9723af.
2013-10-25 02:32:46 -05:00
Ben "root" Anderson 082a9723af the const CT& stuff confuses GCC; the doublecasting should be optimized out by the compiler so we don't need three different sizes of the same thing. 2013-10-25 02:20:17 -05:00
Ben "root" Anderson cdb551b115 We gotta go longer! 2013-10-25 02:04:23 -05:00
Ben "root" Anderson 0d86db9942 Partial overhaul. Moved all drivers into one place and indented bodies of if statements to make things easier to read. 2013-10-25 01:52:34 -05:00
Ben "root" Anderson 9ad99af93e Force -m32 on Windows because prebuilts; use windows.m4; Add --with-linux-tty so that driver can actually be used; correct a a Linux check 2013-10-25 01:51:32 -05:00
Ben "root" Anderson e6056a50d4 Dedicated file for Windows-specific checks 2013-10-25 01:50:27 -05:00
Ben "root" Anderson 04be5f6106 uintX requires stdint.h. No idea why this worked before. 2013-10-25 01:48:42 -05:00
Ben "root" Anderson 1b7f2bff76 Lacking X11 should be an error on non-Win32 as X11 then is our only LowLevelWindow option. 2013-10-25 01:47:06 -05:00
Ben "root" Anderson 7208f76b4d WINDOWS conditional 2013-10-24 22:04:19 -05:00
Ben "root" Anderson 91e42bb927 Add HAVE_PTHREAD conditional 2013-10-24 22:02:09 -05:00
Ben "root" Anderson e47d17b38d Explicitly pull in limits.h when using INT_MIN/INT_MAX 2013-10-24 20:37:55 -05:00
Ben "root" Anderson 9c183c9f4a Don't hardcode -lrt -lpthread. autoconf SHOULD add them automatically if needed. 2013-10-24 20:37:17 -05:00
Ben "root" Anderson fe6f515e95 The type of glEnable() / glDisable() is different on Windows so this isn't allowed. 2013-10-24 20:24:20 -05:00
Ben "root" Anderson f00605d9db We can system vorbis if we wanna. We can leave our externs behind. 2013-10-24 20:02:53 -05:00
Ben "root" Anderson 5762f44c36 Someone missed a (SM_)UNIQUE_NAME and it didn't matter for the longest time because UNIQUE_NAME wasn't doing what it's supposed to 2013-10-24 20:02:08 -05:00
Ben "root" Anderson e077746e62 Oops. 2013-10-24 19:38:49 -05:00
Ben "root" Anderson b3c76a3814 UNIQUE_NAME -> SM_UNIQUE_NAME (avoid conflict with MinGW headers) 2013-10-24 19:27:23 -05:00
Ben "root" Anderson 810283f2a2 a) LUA_USE_LINUX doesn't sound MinGW friendly. Remind me to investigate exactly what that enables. b) Nobody uses VC2003 anymore. Bring back UNIQUE_NAME. 2013-10-24 19:23:46 -05:00
Ben "root" Anderson 7313f2d0aa Conditionalize some defines that MinGW/autoconf provide 2013-10-24 18:29:58 -05:00
Ben "root" Anderson 7820c29bb4 Meet AX_CHECK_LIB_USING_HEADER. Also threw X11 back in because why the hell not. configure actually completes successfully now. 2013-10-24 17:31:34 -05:00
Ben "root" Anderson dfbda90abe More prebuilts 2013-10-24 14:08:37 -05:00
Ben "root" Anderson f61cd1cfbb First wave of pack-in libs 2013-10-24 11:36:49 -05:00
Ben "root" Anderson 0895aef000 Skip libbz2 check on MinGW for now 2013-10-24 11:36:02 -05:00
Ben "root" Anderson a5332c5b6f Now detects OpenGL correctly. 2013-10-24 02:11:18 -05:00
Ben "root" Anderson 398165fdcf Initial work on porting to MinGW. This doesn't work yet. 2013-10-24 00:23:06 -05:00
Ben "root" Anderson 5ba89e6665 I will probably break VC during this journey so let's not foul up default 2013-10-24 00:21:14 -05:00
Ben "root" Anderson 4e83167450 Fix double meters sort (Bug#1027) 2013-10-24 00:12:49 -05:00