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, + ], +)