now use fpc
This commit is contained in:
28
rapier/__build.cpp
Normal file
28
rapier/__build.cpp
Normal 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);
|
||||
Reference in New Issue
Block a user