now use fpc

This commit is contained in:
2025-06-03 20:07:03 +03:00
parent 83b18faab8
commit 804711f2c4
12 changed files with 261 additions and 11 deletions

28
rapier/__build.cpp Normal file
View File

@@ -0,0 +1,28 @@
#include "helper.h"
#include "c.h"
#include "ld.h"
#include "tier1/utlstring.h"
int rapier_build()
{
CUtlVector<CUtlString> cargo_args = {
"build",
"--release",
"--target",
"x86_64-unknown-linux-gnu"
};
IRunner::Run("cargo", "rapier", cargo_args);
CUtlVector<CUtlString> cbindgen_args = {
"--config",
"cbindgen.toml",
"--crate",
"rapier_rtt",
"--output",
"../public/physics_gen.h",
};
IRunner::Run("cbindgen", "rapier", cbindgen_args);
return 0;
};
DECLARE_BUILD_STAGE(rapier, rapier_build);