71 Commits

Author SHA1 Message Date
Rafael Brune
38dda1fb92 feat: Add wasm32 (web browser) build 🎆
nix: update to emscripten 3.1.64

Remove use of legacy GL_PERSPECTIVE_CORRECTION_HINT

Disable intro plugscreens for emscripten builds for now

Use stored background color instead of glGetFloatv() call that is slow in emscripten due to wasm<>javascript context switch

Co-authored-by: Thibault Lemaire <thibault.lemaire@protonmail.com>
2024-09-17 19:02:51 +02:00
atsb
2faaf8141d removing sdl big folder and file - #62 2024-02-03 09:55:29 +00:00
atsb
071b55f064 macOS: Fixing textures 2024-01-14 23:31:17 +01:00
Rafael Brune
07831e4d74 Fix radio button pData handling in 64bit converter 2024-01-09 20:21:32 +00:00
Thibault Lemaire
9a391dd82c build: kas2c: fix: Outputting to stderr when everything is fine 2023-10-22 14:41:36 +02:00
Thibault Lemaire
5d2220ca44 fix: build: meson: Don't build tools by default 2023-10-08 20:20:32 +02:00
Thibault Lemaire
56c2ea0503 fix: build: meson: With clang 2023-10-08 20:20:32 +02:00
Thibault Lemaire
64f84439c2 clang-format 2023-10-08 20:20:32 +02:00
Simon Allen
2fe7d53d69 build: meson: linux: Initial support
(cherry picked from commit 5a9e78a3be)

Note: Support for building on windows or mac was (probably) broken while cherry-picking

Signed-off-by: Thibault Lemaire <thibault.lemaire@protonmail.com>
2023-10-07 18:24:50 +02:00
Thibault Lemaire
b9358bcd38 fix: kas2c: Leaks on strdup()
It should now be easier to build with sanitizers
2023-09-28 19:11:52 +02:00
Thibault Lemaire
93ec9ae119 fix: Build with --enable-sanitizers
With sanitizers enabled, the game now gets to the main menu and is able
to load non-trivial saves without crashing.
I'm hoping having builds with sanitizers enabled will help debugging as
you don't have to run the game through gdb to get a backtrace in case of
crashes. So this is accessible to less tech-savvy people.

fix: linux: Compiling with clang

nix: fix: dlopen() with sanitizers

---

I rewrote feFindChildren mostly to understand it, but the problem was
getting the `atom` from region->userID, and not region->atom
2023-09-24 12:10:01 +02:00
Thibault Lemaire
f8de1b65e9 feat: build: Add sanitizers option 2023-09-22 17:07:37 +02:00
atsb
764ceee06a feat: macOS: Universal port (Intel and ARM64)
macOS: The game now compiles and runs on modern (macOS 11.5+) macs, both
on x86_64 and arm64

macOS: When compiled for Raider Retreat, the game now uses a separate directory

macOS: utility_mac.c and File_Mac.c are now used by the build system
instead of utility.c and File.c respectively. This reduces the overall
amount of hard to read `#if`ed code on all platforms.
2023-09-19 18:47:00 +02:00
atsb
4a6d65cdec ARM64 fixes 2023-09-04 00:49:45 +02:00
Thibault Lemaire
7d2e8d200a Fix parallel build
kas2c's lexer.l #includes parser.h which is only generated as a
side-effect of transpiling parser.y.
When running a compilation with parallel jobs, it invariably tried to
build lexer.l before parser.h was generated.

I have to specify the dependency manually, however parser.h is not a
known output of any job (apparently), so I'll just use parser.c in its
place, since they are both generated at the same time.

https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html#Recording-Dependencies-manually
2023-06-09 18:36:31 +02:00
Thibault Lemaire
65c60bb81b Fix biggie build after sdl2-config name changed 2021-09-18 14:07:13 +02:00
Thibault Lemaire
09591aba4e Reintroduce Linux folder when building biggie
I'm sorry heckendorfc, but I don't see why I would recompile
files that will be compiled for the game anyway.
2019-02-12 12:43:07 +01:00
Christian Heckendorf
47448e3b65 FreeBSD build fixes 2017-12-26 14:31:27 -05:00
dkodnik
f86324d036 fix .big for x64 2015-01-09 12:06:35 +03:00
lmop
b0297cda0c Correcting text to refer to the same filename as the example command line
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@823 026c9d8a-83c9-0310-a9c7-971d0a006279
2011-03-26 17:50:28 +00:00
lmop
9c4024abb8 Deprecating _MACOSX_FIX_ME #define completely
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@715 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-08-31 13:57:58 +00:00
mnalis
50f0a51903 misc warnings fixing
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@706 026c9d8a-83c9-0310-a9c7-971d0a006279
2010-03-25 00:25:57 +00:00
markunderwood
8419e7c95c Add ARM support to Homeworld
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@682 026c9d8a-83c9-0310-a9c7-971d0a006279
2009-04-26 20:52:42 +00:00
aunxx
d736bf56bc Changes to configure and Makefile templates.
Tested for x86 and seems okay. will test for x86_64
after commit.

Next commit will be the start of the .c files but there
is a non-trivial ammount of changes to include.......

Probably be about 2 days for the next commit.
Please test and let me know what/if anything seems broken.

Aunxx.




git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@660 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-09-22 14:39:46 +00:00
aunxx
2f66e69ab4 __BEGIN_X86_64_COMMIT__
Initial commit of all changes to the header files.
Additional changes to the sound code are all in the
definitions of the variable types. Use of long and
unsigned long are different sizes within the different
architectures. Incuded Types.h to standardise on
sdword and udword instead.

I've adopted a type of memsize and smemsize which will
be difined on the size of the pointers. for x86 it is 
udword and sdwords, but for x86_64 it'll be uqword and 
sqword. 
These are the variables which may need to hold a pointer.

Tested and all seems well, but cannot test everything.

Updates to follow:
1) Changes to the configure and makefile templates
2) updates to the code.(staggered by chunks).
3) Stuff I've forgotten to make it work....

Aunxx.




git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@659 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-09-22 14:05:54 +00:00
lmop
4d8885ad8a Penesound HW/HWC sound extractor utility. Found from:
http://forums.relicnews.com/showthread.php?t=93768


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@648 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-01-31 09:21:50 +00:00
lmop
80cb6d00fb Homeworld tools/source recovered from distribution of tools packaged
by themamboman007 on Relic News' forums:
http://forums.relicnews.com/showthread.php?t=177488
Pretty much a raw dump except that I've unarchived rar/zip files and
removed duplicate binaries where I spotted them.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@645 026c9d8a-83c9-0310-a9c7-971d0a006279
2008-01-27 21:43:39 +00:00
gregkennedy
a78e7d19cf remove vcc project junk, change cpp to c, add an automake template
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@638 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-05 00:33:06 +00:00
gregkennedy
705dbbc4e9 Adding polycount tool from original win32/tools so we can track versions. This should be an easy one.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@637 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-05 00:31:56 +00:00
lmop
cb6a79bca6 Removing obsolete source control files.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@636 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 23:45:16 +00:00
lmop
a1c3180311 Fixing large number of compile errors in LiFList (only undefined
Windows #defines remaining). Removing duplicate definitions in
liflist.c that exist in src/SDL/texreg.h.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@635 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 22:16:48 +00:00
lmop
19215bf559 LifList added to tools/ in r631.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@634 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 21:45:39 +00:00
lmop
86118d20ea Removing executable permissions on text files.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@633 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 21:25:06 +00:00
lmop
c3043949dd Removing source files from LiFList which are duplicates of those in the
main source tree.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@632 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 21:00:12 +00:00
lmop
d4163b86ab Pulling in LiFList from the the original source ("tools/win32/LiFList").
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@631 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-11-04 20:51:42 +00:00
azurief
48a0d2a938 Cleaner NetworkStack shutdown that resolve a segfault when try to go in Network Menu twice
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@619 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-07-13 18:29:57 +00:00
azurief
d1561351bb Network Stack now manage TCP clients that disconnect
Rework of configure process :
- configure.in moved to configure.ac
- cleaning of configure.ac options
- testing of the avcodec, avformat and SDL_net libraries and headers
- cleaning of src/Makefile.am and tools/kas2c/Makefile.am
- new bootstrap script which only need configure.ac and automates configuration using "autoreconf -i" command

Cleaning of others Makefile.am on his way



git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@616 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-07-08 17:34:22 +00:00
shevek
93e1c1bd29 Fixed a type error in a printf format string.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@607 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-05-06 11:29:09 +00:00
aunxx
e2ac385554 Fixed the biggie-Linux-compile.sh script following the header shuffle. :)
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@591 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-04-24 14:24:19 +00:00
lmop
024c1ae4a9 Header cleanup of src/Game/B* (and knock on effects to the tools
related to BigFile and BTG).


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@582 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-28 22:39:56 +00:00
shevek
62090af665 Biggie build script for Linux
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@541 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-03-06 22:40:15 +00:00
lmop
a2e2e1c31a Miscellaneous cleanup.
(Original commit: branches/mobile_lmop r506)


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@519 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-02-27 20:57:58 +00:00
lmop
e656f8fe63 Fixes monochrome-btg to use the new FIX_ENDIAN #define
introduced in r374.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@476 026c9d8a-83c9-0310-a9c7-971d0a006279
2007-01-06 00:18:45 +00:00
lmop
cd17c44c43 Tools now pull in SDL headers directly when compiled for Mac OS X.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@377 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-08 21:30:49 +00:00
lmop
d8de6b9c64 - new #define for toggling the drawing of random stars over background
- updating monochrome-btg README to mention use of DISABLE_RANDOM_STARS
- fixing some whitespace issues in monochrome-btg


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@358 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-12-03 00:59:55 +00:00
lmop
85f5972db9 New tool that allows you to create monochromatic backgrounds (.btg)
for Homeworld. Primarily for use when taking screenshots where the
subject matter is to be extracted from the main image for website
graphics, montages etc.


git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@342 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-30 23:08:28 +00:00
lmop
e3a7abf7f4 r335,336 committed to wrong branch, so merging back to trunk.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@337 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-28 23:23:53 +00:00
nova
951bbd5d03 BTG seems to work ok after fixing 1 assertion
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@275 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-18 06:43:57 +00:00
nova
8fe14c96d9 dont need the intellisense DB for this MSVC project in the SVN
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@274 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-18 05:57:07 +00:00
lmop
2d3cc71b35 Clean up of options parsing in biggie.
git-svn-id: svn://www.homeworldsdl.org:3692/homeworldsdl/homeworld/trunk@270 026c9d8a-83c9-0310-a9c7-971d0a006279
2006-11-15 00:36:47 +00:00