aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain/meson.build')
-rw-r--r--src/libmain/meson.build33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libmain/meson.build b/src/libmain/meson.build
new file mode 100644
index 000000000..54326c305
--- /dev/null
+++ b/src/libmain/meson.build
@@ -0,0 +1,33 @@
+libmain_sources = files(
+ 'common-args.cc',
+ 'loggers.cc',
+ 'progress-bar.cc',
+ 'shared.cc',
+ 'stack.cc',
+)
+
+libmain_headers = files(
+ 'common-args.hh',
+ 'loggers.hh',
+ 'progress-bar.hh',
+ 'shared.hh',
+)
+
+libmain = library(
+ 'nixmain',
+ libmain_sources,
+ dependencies : [
+ liblixutil,
+ liblixstore,
+ ],
+ install : true,
+ # FIXME(Qyriad): is this right?
+ install_rpath : libdir,
+)
+
+install_headers(libmain_headers, subdir : 'nix', preserve_path : true)
+
+liblixmain = declare_dependency(
+ include_directories : include_directories('.'),
+ link_with : libmain,
+)