Import source to librtti
Summary: - Import initial source Test Plan: NA
This commit is contained in:
commit
c8c1749347
23 changed files with 969 additions and 0 deletions
35
nixSupport/librtti.nix
Normal file
35
nixSupport/librtti.nix
Normal 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")
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue