Alibek Omarov
19c2061831
wscript: define CUSTOM_MODES and try to link with export that only exists when CUSTOM_MODES was defined in build-time
2 years ago
Alibek Omarov
4110ee0928
wscript: require Opus Custom for build
...
Apparently, not all Linux distributions enable it. Anyway, we can build codec ourselves
2 years ago
Alibek Omarov
a7d4cafe10
wscript: finally disable building opus for dedicated
2 years ago
Alibek Omarov
e6c55107c7
wscript: fix game_launch not being included
2 years ago
Alibek Omarov
238162bb79
wscript: move system opus detection to main wscript, so we can avoid including subproject
2 years ago
Alibek Omarov
1fda8753bd
wscript: rework subproject filtering, use lambdas everywhere. Deprecate --ignore-projects flag, use Waf capability to select targets instead
2 years ago
SNMetamorph
68f633e9cd
wscript: fixed opus include path
2 years ago
SNMetamorph
a520af42e8
wscript: opus subproject set as mandatory
2 years ago
Alibek Omarov
44cd03f464
wscript: refactor opus wscript files, now it builds only if system package wasn't found
2 years ago
Velaron
2b9e050f57
engine: voice support
2 years ago
Alibek Omarov
90c566dde3
wscript: enable GCC's -Wmisleading-indentation
2 years ago
Alibek Omarov
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2 years ago
Alibek Omarov
854bfb8673
wscript: woops, msvcrt don't actually have stristr
2 years ago
Alibek Omarov
d52b07beac
wscript: add stristr/strcasestr presense check
2 years ago
Alibek Omarov
c69ea00e79
wscript: better _FILE_OFFSET_BITS check, as suggested by @nekonomicon
2 years ago
Alibek Omarov
acffeb1dad
wscript: enable gl4es for Android builds
2 years ago
Alibek Omarov
6dbb694fdc
wscript: define _FILE_OFFSET_BITS=64 on 32-bit systems if libc (presumably glibc) supports it
3 years ago
Alibek Omarov
5aa6bfee85
engine: first attempts on fuzzing the engine
3 years ago
Alibek Omarov
f9d0fba05f
wscript: remove duplicated branches diagnostic for good
3 years ago
Alibek Omarov
23e2f4d0cc
wscript: fix install on Android
3 years ago
Alibek Omarov
aa7bfb4819
engine: check for non-standard alloca header
3 years ago
Alibek Omarov
fc665527ae
wscript: try to fix install on windows
3 years ago
Alibek Omarov
c64b3db6b8
wscript: remove win-style-install option, introduce enable-packaging
3 years ago
Alibek Omarov
67e77ca099
wscript: move setting DOS options where they should be
3 years ago
Alibek Omarov
2939ab8ea4
wscript: allow compiling with disabled warning-as-error
3 years ago
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