about summary refs log tree commit diff
path: root/third_party/nix/src/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/meson.build')
-rw-r--r--third_party/nix/src/meson.build48
1 files changed, 48 insertions, 0 deletions
diff --git a/third_party/nix/src/meson.build b/third_party/nix/src/meson.build
new file mode 100644
index 000000000000..9961b0938f74
--- /dev/null
+++ b/third_party/nix/src/meson.build
@@ -0,0 +1,48 @@
+# nix src build file
+#============================================================================
+
+src_dirs = [
+  'libutil',
+  'libstore',
+  'libmain',
+  'libexpr',
+  'nix',
+  'resolve-system-dependencies'
+]
+
+foreach dir : src_dirs
+    subdir(dir)
+endforeach
+
+
+
+libstore_config = pkg.generate(
+    libstore_lib,
+    libraries : [
+        libutil_lib],
+    version : meson.project_version(),
+    name : 'Nix',
+    subdirs : ['nix/'],
+    filebase : 'nix-store',
+    extra_cflags : '-std=c++17',
+    description : 'Nix Package Manager.')
+
+libmain_config = pkg.generate(
+    libmain_lib,
+    version : meson.project_version(),
+    name : 'Nix',
+    subdirs : ['nix/'],
+    filebase : 'nix-main',
+    extra_cflags : '-std=c++17',
+    description : 'Nix Package Manager.')
+
+libexpr_config = pkg.generate(
+    libexpr_lib,
+    libraries : [
+        libstore_lib],
+    version : meson.project_version(),
+    name : 'Nix',
+    subdirs : ['nix/'],
+    filebase : 'nix-expr',
+    extra_cflags : '-std=c++17',
+    description : 'Nix Package Manager.')