Import source to librtti

Summary:

- Import initial source

Test Plan:
NA
This commit is contained in:
Rongsong Shen 2026-01-29 17:22:53 +08:00
commit c8c1749347
23 changed files with 969 additions and 0 deletions

35
nixSupport/librtti.nix Normal file
View file

@ -0,0 +1,35 @@
{
lib,
stdenv,
pkgs,
withDebug ? false,
...
}:
stdenv.mkDerivation {
pname = "rtti";
version = "0.0.1";
src = ./..;
nativeBuildInputs = with pkgs; [
meson
ninja
pkg-config
which
unity_test_with_color
];
build-system = [ pkgs.meson ];
dontStrip = withDebug;
separateDebugInfo = withDebug;
impureEnvVars = [ "HOME" ];
mesonFlags = [
(lib.optional withDebug "--buildtype=debug -Db_sanitize=address -Dwith_debug=true ")
# (lib.optional (!with_debug) "-Dbuildtype=release")
];
}