387 Commits

Author SHA1 Message Date
Quinn
538f20f733 remove references of rust in README.md 2025-05-01 16:48:47 +02:00
Quinn
e839128c2e remove rust from config files 2025-05-01 16:48:47 +02:00
Quinn
c57ff88f70 use new docker image
not using rust anymore, and really need to be able to use the package we
need
2025-05-01 16:48:46 +02:00
Quinn
9e0708b49f don't make the functions extern anymore, as we're no longer doing ffi. 2025-05-01 16:48:46 +02:00
Quinn
401854002f remove rust/cargo from compilation
it has become clear that incorperating rust in this project was a
mistake, since I don't understand it well enough for it to be useful,
and at this rate it'd be faster to use GLFW in C than in rust.
2025-05-01 16:48:45 +02:00
Quinn
87117931f7 create rust implementation 2025-05-01 16:48:44 +02:00
Quinn
1a3f555fca write error header file
write a header for logging and abrubtly exiting the code.
2025-05-01 16:48:44 +02:00
Quinn
40720a53c8 write attributes in a header for ease of use
this handles different compilers automatically and just provides a
common method of using the attributes. Plus, it's less characters!
2025-05-01 16:48:43 +02:00
Quinn
ae565abab3 add libc and glfw to cargo, so rust can access them as well 2025-05-01 16:48:42 +02:00
Quinn
f61a72c680 include glfw libraries in the makefile 2025-05-01 16:48:41 +02:00
Quinn
0c74252a2f use NDEBUG instead of DEBUG as preprocessor. 2025-05-01 16:48:41 +02:00
Quinn
5a47a1d02f fix: editorconfig should not have root=true, as settings should be able to be overridden 2025-05-01 16:48:40 +02:00
Quinn
95f6d9b9d9 fix: makefile unable to convert the src/%.c paths into obj/$arch/$prof/%.o paths
had to include the src/ path in the shell finding, due to it otherwise
prefixing with ./src (it was aparrently also including files from
target/)
2025-05-01 16:48:40 +02:00
Quinn
7fe877fcbf move dir definitions before source definitions 2025-05-01 16:48:39 +02:00
Quinn
33ffa6d89e rework makefile logging to be more readable
added the log categories explicitly, removing the need for specifying
the log colour with each log
2025-05-01 16:48:38 +02:00
Quinn
64691550bd use a more dynamic makefile
- remove CLANG env, as it might be confused for the compiler. And it
doesn't fit the build system that well anyway. (as we're compiling based
on file extension already)
- locate source files using find, rather than a bunch of wildcards.
- rename TARGET to BIN and store DIR_BIN and DIR_OBJ for the output
directories
- use pattern matchin for C object file creation, rather than specifying
all the sources manually
- remove directory target as directory creation is handled by the
recipe's themselves now.
2025-05-01 16:48:38 +02:00
Quinn
c363fb6481 use bear whenever available, rather than only when debugging 2025-05-01 16:48:37 +02:00
Quinn
eeb219a5b4 fix: no such thing as '$default-branch' 2025-05-01 16:48:37 +02:00
Quinn
35f38f8980 fix: get rid of linter warning 2025-05-01 16:48:36 +02:00
Quinn
85bb26a08c use cargo instead of rustc 2025-05-01 16:48:35 +02:00
Quinn
663c2f5991 write the README.md to contain more information 2025-05-01 16:48:35 +02:00
Quinn
961b8796ee use printf instead of echo due to some minor issues 2025-05-01 16:48:34 +02:00
Quinn
d6409f5473 workflow fixes
- checkout@latest is not allowed, reverted back to checkout@v4
- set rust to use the stable release
2025-05-01 16:48:34 +02:00
Quinn
ec06481a36 write todo comments 2025-05-01 16:48:33 +02:00
Quinn
f6458ddc46 implement validate
validate hasn't fully been finished yet, linting still needs to be added
and we'll add unit tests as well, but that's when I've actually written
the tests.
2025-05-01 16:48:32 +02:00
Quinn
417c110187 move to using a custom docker image instead of trying to manage the dependencies ourselves 2025-05-01 16:48:32 +02:00
Quinn
4c0f0a5aa9 introduce target flags for linking step 2025-05-01 16:48:31 +02:00
Quinn
2754fcbe3f warnings as errors 2025-05-01 16:48:30 +02:00
Quinn
c913e62fcc seperate rust flags out of the rust compilation command
for consistency and able to specify a target now, which is still
relevant for linking, despite not using the standard library
2025-05-01 16:48:30 +02:00
Quinn
801ed6ba76 always compile as static library 2025-05-01 16:48:29 +02:00
Quinn
07f4e5fe48 remove unused version 2025-05-01 16:48:28 +02:00
Quinn
3a6fab28bd moved jobs into a matrix based job, rather two seperate jobs 2025-05-01 16:48:27 +02:00
Quinn
e66cc9c0b1 fix: gave arguments before the executing command 2025-05-01 16:48:27 +02:00
Quinn
6adc2f2767 fix: toolchains unavailable when compiling 2025-05-01 16:48:22 +02:00
Quinn
63b672c4ed fix: validate's name is incorrect 2025-05-01 16:48:21 +02:00
Quinn
3cf141e988 implement workflows for the most part
workflows fail immediately when pushing, started filling them.
"validate" currently has a placeholder, "release" is still unable to
compile due to the clang dependency.
Will fix these in the next commit.
2025-05-01 16:48:20 +02:00
Quinn
7a64aefcac setup project files
Added (most) of the project files to the working tree.
Some work still needs to be done to make the rust/C communication better
before we can fully move on to starting to write the actual applicaiton.
2025-05-01 16:48:18 +02:00