From f2113c24169e483f6cf459d507bc1f36561fd358 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 13 Mar 2024 21:08:34 -0600 Subject: [PATCH] meson: we can now build libmain! Change-Id: I2333a18d790df843d07163ff884c80095d89e0cc --- meson.build | 2 ++ src/libexpr/meson.build | 5 +++++ src/libmain/meson.build | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/libmain/meson.build diff --git a/meson.build b/meson.build index 5368765c5..f6d0d2db1 100644 --- a/meson.build +++ b/meson.build @@ -197,3 +197,5 @@ subdir('src/libstore') subdir('src/libfetchers') # libexpr depends on libfetchers. subdir('src/libexpr') +# libmain depends on libutil and libstore. +subdir('src/libmain') diff --git a/src/libexpr/meson.build b/src/libexpr/meson.build index 21e883b67..a77c86453 100644 --- a/src/libexpr/meson.build +++ b/src/libexpr/meson.build @@ -82,3 +82,8 @@ libexpr = library( boost, ], ) + +liblixexpr = declare_dependency( + include_directories : include_directories('.'), + link_with : libexpr, +) diff --git a/src/libmain/meson.build b/src/libmain/meson.build new file mode 100644 index 000000000..270c26b62 --- /dev/null +++ b/src/libmain/meson.build @@ -0,0 +1,16 @@ +libmain_sources = files( + 'common-args.cc', + 'loggers.cc', + 'progress-bar.cc', + 'shared.cc', + 'stack.cc', +) + +libmain = library( + 'main', + libmain_sources, + dependencies : [ + liblixutil, + liblixstore, + ], +)