Commit Graph

28 Commits

Author SHA1 Message Date
iamthesenate1
da8f644d46 Remove some redundant #ifdefs and added some new ones 2022-01-25 22:06:56 +02:00
James Le Cuirot
c09d18623e
Allow ecc to be built independently using its own CMakeLists.txt file
This makes cross-compiling easier, and saves having to build once each
for TFE and TSE.

I considered using CMake's import/export feature, but there's little
point when you're only importing one binary target. Pointing the ECC
variable at the ecc binary itself is simpler.

I copied the minimum CMake version of 2.8.7 from the parent
project. To be confident this would actually work, I tested building
under CentOS 7 with CMake 2.8.12.
2021-11-16 23:06:41 +00:00
James Le Cuirot
bd68934e32
Swap PLATFORM_* macros for standard ones in ecc
This simplifies the standalone CMakeLists.txt file arriving in the
next commit.

_WIN32 is defined by MVSC and the MinGW toolchain for all relevant
Windows versions.

We don't need to explicitly check for UNIX because it's the only
non-Windows case we care about.
2021-11-15 23:33:16 +00:00
James Le Cuirot
6087022b9c
Delete unused Sources/Ecc/unistd.h
It's not clear why this was added. It looks like a compatibility hack
for Windows, but we include io.h directly on Windows anyway.

Having this file present breaks building ecc separately on UNIX.
2021-11-15 23:31:11 +00:00
James Le Cuirot
229a87a620
Remove unused variables in ecc 2021-11-15 23:31:07 +00:00
Daniel Gibson
24dcb9cc4f Don't #include <malloc.h> on Linux, only on Windows
Linux, FreeBSD and OSX should use stdlib.h instead.
2016-04-17 01:06:39 +02:00
Yamagi Burmeister
d1d9c8d094 There's no malloc.h on FreeBSD.
Like in OS X malloc() is part of stdlib.h.
2016-04-12 19:27:52 +02:00
Ryan C. Gordon
6436618937 Merge github.com:Croteam-Official/Serious-Engine
Conflicts:
	Sources/Engine/Sound/SoundDecoder.cpp
2016-04-04 02:41:23 -04:00
Ryan C. Gordon
a7e4f8237e Patched to compile on Linux, and cleaned out almost all compiler warnings. 2016-04-04 02:34:07 -04:00
Ryan C. Gordon
706814653d Simplify dealing with empty files.
Why write a parser when you already have a perfectly good one already?  :)
2016-04-03 02:07:52 -04:00
Ryan C. Gordon
1a2ccb8f50 Merge github.com:Croteam-Official/Serious-Engine
Conflicts:
	Sources/Ecc/Parser.cpp
	Sources/Ecc/Scanner.cpp
	Sources/Engine/Base/Scanner.cpp
	Sources/Engine/GameAgent/GameAgent.cpp
	Sources/Engine/Graphics/Gfx_wrapper.h
	Sources/Engine/Network/Network.cpp
	Sources/Engine/Sound/SoundDecoder.h
	Sources/Engine/Templates/HashTableTemplate.cpp
	Sources/Engine/Terrain/Terrain.h
	Sources/EntitiesMP/ParticleCloudsHolder.es
	Sources/EntitiesMP/ParticleCloudsMarker.es
	Sources/SeriousSam/CDCheck.h
	Sources/SeriousSam/Menu.cpp
	Sources/SeriousSam/MenuGadgets.cpp
	Sources/SeriousSam/SeriousSam.cpp
	Sources/SeriousSam/SplashScreen.cpp
	Sources/SeriousSam/StdH.cpp
	Sources/SeriousSam/StdH.h
	Sources/Shaders/StdH.cpp
2016-04-02 23:56:12 -04:00
Salamanderrake
7778fdcaae Add missing ; to Sources/Ecc/Parser.y 2016-04-01 23:38:29 -04:00
Ryan C. Gordon
49b5163cc9 Regenerated parsers and scanners. 2016-04-01 15:17:48 -04:00
Ryan C. Gordon
4f061d916c Adding regenerated parsers so they'll stop spamming my diffs. 2016-03-30 10:59:17 -04:00
Ryan C. Gordon
2f10f864d8 Silence a whole bunch of warnings about string literals vs non-const char *. 2016-03-29 12:51:34 -04:00
Ryan C. Gordon
24cb244d43 First attempt to hand-merge Ryan's Linux and Mac OS X port.
This was a _ton_ of changes, made 15 years ago, so there are probably some
problems to work out still.

Among others: Engine/Base/Stream.* was mostly abandoned and will need to be
re-ported.

Still, this is a pretty good start, and probably holds a world record for
lines of changes or something.  :)
2016-03-28 23:46:13 -04:00
SLAwww
3ef31a97aa ECC now works properly with long paths 2016-03-18 03:15:05 +02:00
Aron Visontai
344c836cd9 Fix compilation when build path is long
Also remove generated file Parser.cpp
2016-03-16 21:56:08 -07:00
SLAwww
6e9fbef44a Fixed error in Bison code 2016-03-13 18:56:18 +02:00
SLAwww
fe24f3a2a4 Updated .gitignore and removed automatically generated files 2016-03-13 01:52:16 +02:00
Robert MacGregor
1a50ba665a Check for NULL return from malloc in es vertification code and print error if es verification fails 2016-03-12 17:36:50 -05:00
Robert MacGregor
9766df5f5b Forgot to close dangling file handles 2016-03-12 17:31:51 -05:00
Robert MacGregor
d69cb55c21 Add explicit 0-length check out of paranoia 2016-03-12 17:27:34 -05:00
Robert MacGregor
609d71437f Remove close/reopen logic for file handle and fix Ecc crash on empty 2016-03-12 17:20:41 -05:00
Robert MacGregor
9f50d3ef84 Performance fix Ecc 2016-03-12 16:45:43 -05:00
Robert MacGregor
cfefaf581a Fix for Ecc failing on empty files 2016-03-12 15:41:56 -05:00
Matt Lee
a4af93fa31 Add GPL header to files 2016-03-11 18:20:51 -06:00
SLAwww
9d8b787be2 Uploading full engine sources 2016-03-11 15:57:17 +02:00