I've added `tools/generate_ffi.lua` which generates lua ffi bindings
to C for all structs in a header file and functions in that have the
`BAL_EXPORT` keyword.
Right now only `tools/dashboard/dashboard_file_dialog.h` have ffi
bindings generated for it and saved to
`tools/dashboard/scripts/generated/dashboard_file_dialog_ffi.lua`.
The script only handles one header file at a time. Later on I will need
to add support for recursively scanning all header files in a folder
with options to exclude certain folders.
Signed-off-by: Ronald Caesar <github43132@proton.me>
LuaJIT ImGui is passing GL as the library to link against which is
incorrect on macOS who relies on "-framework OpenGL" instead.
Signed-off-by: Ronald Caesar <github43132@proton.me>
The luajit executable was never managed by cmake which is bad for
doctest since it needs the executable to run.
Signed-off-by: Ronald Caesar <github43132@proton.me>
So apperently running clang-format causes LuaJIT to fail compiling. Took
a couple hours to figure that one out. I disable clang-format on the
`extern` folder and re-add it.
Signed-off-by: Ronald Caesar <github43132@proton.me>
I really don't understand why they switch to a rolling release and
not ship binaries. Make things way more complicated than it needs
to be.
Signed-off-by: Ronald Caesar <github43132@proton.me>
I'm re-adding the luajit-imgui submodule cause I fucked up the extern/
directory on my local machine.
Signed-off-by: Ronald Caesar <github43132@proton.me>
This is the Testing Suite Ballistic will use beacuse gtest compiles each
test as an individual executable, which is very usefull because of the
amount of logging Ballistic does.
Signed-off-by: Ronald Caesar <github43132@proton.me>
We manually compile CMark as a static library for Balllistic instead of
forcing users to install a niche dependancy to compile Ballistic.
Signed-off-by: Ronald Caesar <github43132@proton.me>