about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/meson.build
diff options
context:
space:
mode:
authorp01arst0rm <polar@ever3st.com>2019-10-21T16·57+0100
committerVincent Ambo <tazjin@google.com>2020-05-17T14·55+0100
commit055139ac6aaecc7193972b65d2bcca022969c61d (patch)
tree3fb9b6c3aee1a06a40ee3edda1c41ff7df95a9ab /third_party/nix/src/libmain/meson.build
parentc455f7a987fff8fef459d340865368b1da28cecd (diff)
feat(3p/nix): added meson support r/726
(cherry picked from commit 086a81b7a5bbe1fc022efb5935ff68f6ad71ddaf)
Diffstat (limited to 'third_party/nix/src/libmain/meson.build')
-rw-r--r--third_party/nix/src/libmain/meson.build79
1 files changed, 79 insertions, 0 deletions
diff --git a/third_party/nix/src/libmain/meson.build b/third_party/nix/src/libmain/meson.build
new file mode 100644
index 000000000000..ec510ee2e5b8
--- /dev/null
+++ b/third_party/nix/src/libmain/meson.build
@@ -0,0 +1,79 @@
+# Nix lib store build file
+#============================================================================
+
+
+
+
+# src files
+#============================================================================
+
+src_inc += include_directories('.')
+
+libmain_src = files(
+    join_paths(meson.source_root(), 'src/libmain/common-args.cc'),
+    join_paths(meson.source_root(), 'src/libmain/shared.cc'),
+    join_paths(meson.source_root(), 'src/libmain/stack.cc'))
+
+libmain_headers = files(
+    join_paths(meson.source_root(), 'src/libmain/common-args.hh'),
+    join_paths(meson.source_root(), 'src/libmain/shared.hh'))
+
+
+
+
+# dependancies
+#============================================================================
+
+libmain_dep_list = [
+    pthread_dep,
+    openssl_dep,
+    libsodium_dep]
+
+
+
+
+
+# Link args
+#============================================================================
+
+libmain_link_list = [
+    libutil_lib,
+    libstore_lib
+]
+
+libmain_link_args = []
+
+
+
+
+# compiler args
+#============================================================================
+
+libstore_cxx_args = []
+
+
+
+
+# targets
+#============================================================================
+
+
+
+
+# build
+#============================================================================
+
+libmain_lib = library(
+    'nixmain',
+    install : true,
+    install_mode : 'rwxr-xr-x',
+    install_dir : libdir,
+    include_directories : src_inc,
+    link_with : libmain_link_list,
+    sources : libmain_src,
+    link_args : libmain_link_args,
+    dependencies : libmain_dep_list)
+
+install_headers(
+    libmain_headers,
+    install_dir : join_paths(includedir, 'nix'))