raylib/src
lnc3l0t b2d48ff172
[build.zig] Override config.h definitions (#4193)
* [build.zig] Overridable definitions from config.h
The new Options field "config" holds a string the user can set in the
format "-Dflag_a=1 -Dflag_b=0 ..." to override the values set in
`config.h`.
The file is parsed and the default values are appended to the
compilation flags, if the user doesn't override them.
The user string is appended to the compilation flags.
The "-DEXTERNAL_CONFIG_FLAGS" is added to prevent "config.h" inclusion.

Note: a certain format is assumed for the formatting of config.h
Note: this commit references the closed issue #3516

* [build.zig] Only SUPPORT_* definitions are overridable

Lines from `config.h` which contains "SUPPORT" are added to compilation after being parsed:
- remove whitespace
- format to preprocessor option https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html

The user supplied flags have priority over the ones read from the file.

NOTE: extension to commit 4da7f82e6f, the logic is simplified
because the SUPPORT flags only have binary values, which makes them easier to parse.
2024-08-04 22:01:28 +02:00
..
external replace unicode characters by ascii characters in jar_xml to avoid warning in MSVC (#4196) 2024-08-02 21:04:33 +02:00
platforms [rcore][desktop_glfw] Set AUTO_ICONIFY flag to false per default (#4188) 2024-08-04 21:59:48 +02:00
build.zig [build.zig] Override config.h definitions (#4193) 2024-08-04 22:01:28 +02:00
CMakeLists.txt A better default that saves the whopping amount of 28KB on the final bundle (#4177) 2024-07-22 22:23:03 +02:00
config.h Fix typos in markdowns and comments, Fix invalid links in HISTORY.md (#4017) 2024-05-30 08:22:07 +02:00
Makefile WARNING: UPDATE: Starting works on raylib 5.5 release 2024-07-01 18:31:16 +02:00
minshell.html [web] Fix undesired scrollbars on shell files (#4104) 2024-06-25 22:15:29 +02:00
raudio.c Minor tweaks 2024-07-08 22:54:19 +02:00
raylib.dll.rc WARNING: UPDATE: Starting works on raylib 5.5 release 2024-07-01 18:31:16 +02:00
raylib.dll.rc.data WARNING: UPDATE: Starting works on raylib 5.5 release 2024-07-01 18:31:16 +02:00
raylib.h Update version to avoid confusions... 2024-07-21 10:28:01 +02:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc WARNING: UPDATE: Starting works on raylib 5.5 release 2024-07-01 18:31:16 +02:00
raylib.rc.data WARNING: UPDATE: Starting works on raylib 5.5 release 2024-07-01 18:31:16 +02:00
raymath.h [CORE] Fix MSVC warnings/errors and raymath.h in C++ (#4125) 2024-07-01 22:03:21 +02:00
rcamera.h REVIEWED: Formatting, follow raylib coding conventions 2024-06-30 11:37:58 +02:00
rcore.c [rcore] fix gamepad axis movement and its automation event recording (#4184) 2024-07-28 22:07:47 +02:00
rgestures.h Update copyright to 2024 2024-01-02 20:58:12 +01:00
rglfw.c Fix GLFW runtime platform detection (#3863) 2024-03-14 16:54:39 +01:00
rlgl.h [rlgl] use GLint64 for glGetBufferParameteri64v (#4197) 2024-08-04 21:53:56 +02:00
rmodels.c [Shapes] Remove duplicate color calls in DrawGrid (#4148) 2024-07-09 19:45:07 +02:00
rshapes.c REVIEWED: CheckCollisionPointRec() 2024-07-07 09:09:34 +02:00
rtext.c Minor tweaks 2024-07-08 22:54:19 +02:00
rtextures.c Warning on invalid image data (#4179) 2024-07-24 21:21:45 +02:00
shell.html [web] Fix undesired scrollbars on shell files (#4104) 2024-06-25 22:15:29 +02:00
utils.c REVIEWED: Remove final punctuation in code comments 2024-04-20 20:31:06 +02:00
utils.h Update copyright to 2024 2024-01-02 20:58:12 +01:00