Alibek Omarov
9287a0f5c5
wscript: add some more warnings as errors
3 years ago
Alibek Omarov
9d0c7338ab
wscript: make win32 common libraries check faster
4 years ago
Alibek Omarov
4abac92891
wscript: try to fix tgmath detection on freebsd
4 years ago
Alibek Omarov
9b6f26c191
mdldec: build with CONSOLE subsystem on Win32
4 years ago
Alibek Omarov
add4cf4232
mdldec: add wscript, disabled by default
4 years ago
Alibek Omarov
14008703f6
wscript: fix tgmath check for old toolchails like GCW0
4 years ago
Alibek Omarov
256284d76f
wscript: refactor loading MSVC tools, apply @w23 hack for renaming DEST_CPU
4 years ago
Ivan 'provod' Avdeev
5b597028fe
make it reliably compile for amd64 on windows
...
This makes it possible to just pass `-8` to ./waf configure on Windows
and it will build 64-bit binaries. Yay I guess.
However, it's completely broken conceptually -- it ends up just brute
rewriting `conf.env.DEST_CPU` from `amd64` to `x86_64` at one particular
point in wscript. Why? Because many places in build system expect
`x86_64` as 64-bit DEST_CPU, especially breaking SDL2 lib detection.
Some of these are in waifu and patching that is beyond what I can hold
in my head right now.
Why that particular point? Because it DEST_CPU gets rewritten a few
times before that and no times after it seems.
This does not address `./waf msvs` VS project generation yet -- it will
still produce only Win32 platform that needs to be manually rewritten.
There's a mechanism for msvs extras to be passed a set of platforms, but
I've yet to make it work.
4 years ago
mittorn
6e43f9bdd0
waf: fix wrong message about 32-bit build
4 years ago
Alibek Omarov
d6d90f03a0
wscript: refactoring, split optimization flags selection and fpic control into standalone modules
4 years ago
mittorn
341e440c07
public,sprites: fix -Wcast-align, disable -Werror for it
4 years ago
Alibek Omarov
9c6183e6a0
wscript: add some more alignment related diagnostics
4 years ago
Alibek Omarov
64a96b26ad
wscript: disable treating uninitialized as error because it gives too much false-positives
5 years ago
Alibek Omarov
92f0bf54f1
wscript: enforce error on uninitialized variables
5 years ago
Alibek Omarov
012a193685
wscript: check for stdint.h and use it, instead use pstdint.h
5 years ago
mittorn
7ad658ee3a
wscript: increase stack size for owcc
5 years ago
mittorn
49445f0663
wscript: check for fPIC before removing
5 years ago
mittorn
9b40d91a9b
wscript: do not enforce PIC with lib_static
5 years ago
mittorn
51849c6140
platform: DOS4GW port
5 years ago
mittorn
bbd033c254
lib: restore dll loader support
5 years ago
Alibek Omarov
32eb42a92f
wscript: don't error if uninitialized(old compilers like gcc5 have bad heuristics)
5 years ago
Alibek Omarov
0fe18ae6dc
engine: fix -Wmaybe-uninitialized
5 years ago
Alibek Omarov
e11a08064d
engine: fix implicit-fallthrough, uninitialized, enum-conversation compiler diagnostics
5 years ago
Aimless-Wanderer
c57d8995c6
wscript: fix syntax
...
Same as https://github.com/FWGS/hlsdk-xash3d/pull/116
5 years ago
Alibek Omarov
fa90dbbd5e
wscript: fix sanitize build
5 years ago
Alibek Omarov
fe362a1ab5
wscript: add incompatible-pointer-types only for C
5 years ago
Alibek Omarov
c07109e69c
engine: fix -Wincompatible-pointer-types, add it to Werror list
5 years ago
mittorn
177f8ed653
platform: introduce lib backends, add static linking, wscript: add optional projects support, add static linking support, scripts: add xshlib for advanced linking options
5 years ago
Alibek Omarov
f8b0ec8c4b
wscript: tune-up options for magx
5 years ago
Alibek Omarov
5bae732818
scripts: build ref_soft for magx
5 years ago
Alibek Omarov
08b3de08e7
wscript: use SINGLE_BINARY on motomagx
5 years ago
Alibek Omarov
7e4a7ac23d
wscript: workaround bug when CC_VERSION is not set for msvc
5 years ago
Alibek Omarov
d18cb1f74c
wscript: add special options for fast build type for gcc3
5 years ago
Alibek Omarov
13ed8d4529
wscript: move motomagx options to root wscript, disable PIC for this old machine, set default options
5 years ago
Alibek Omarov
39abd82e5d
wscript: silence MSVC tgmath nonsense
5 years ago
Alibek Omarov
d2740f78c1
wscript: refactoring, add waf_unit_test, disable -Wdouble-promotion, rename fast as fastnative and leave fast without -march=native for x-compiling
5 years ago
mittorn
b3a5283517
lowmemory: rename waf options
5 years ago
mittorn
ba1347a8ce
wscript: add options for low memory, async ns resolve and swap allocator
5 years ago
Alibek Omarov
8905e7cbb7
wscript: fix stdin input wasn't enabled for dedicated. Fix single-binary help string
5 years ago
Alibek Omarov
0933261898
wscript: oops, remove trailing colon
5 years ago
Alibek Omarov
e93d362391
wscript: explicitly undefine HAVE_TGMATH_H if tests are failed
5 years ago
Alibek Omarov
2b13de80bf
wscript: check if tgmath actually compiles, should fix building under freebsd
5 years ago
Alibek Omarov
2c67f4cb39
wscript: fix wrong object method call
5 years ago
Alibek Omarov
4705683ebc
wscript: conf.define instead of directly appending to DEFINES
5 years ago
Alibek Omarov
8afb2dbdec
wscript: better tgmath check, make double-promotion not an error
5 years ago
Alibek Omarov
0577ecbccf
public: initial fix of double promotion
5 years ago
Alibek Omarov
869b684536
wscript: remove multicheck for win32 libs, remove sdl2 checking from main wscript
5 years ago
Alibek Omarov
bc56ce754b
wscript: move C only flags from common flags, correct multicheck again
5 years ago
Alibek Omarov
32897450fc
wscript: declare uselib_store for multicheck
5 years ago
Alibek Omarov
fdbd1c5658
wscript: check win32 libraries in parallel
5 years ago