meson: we can now build libmain!

Change-Id: I2333a18d790df843d07163ff884c80095d89e0cc
This commit is contained in:
Qyriad 2024-03-13 21:08:34 -06:00
parent e30dac46fe
commit f2113c2416
3 changed files with 23 additions and 0 deletions

View file

@ -197,3 +197,5 @@ subdir('src/libstore')
subdir('src/libfetchers') subdir('src/libfetchers')
# libexpr depends on libfetchers. # libexpr depends on libfetchers.
subdir('src/libexpr') subdir('src/libexpr')
# libmain depends on libutil and libstore.
subdir('src/libmain')

View file

@ -82,3 +82,8 @@ libexpr = library(
boost, boost,
], ],
) )
liblixexpr = declare_dependency(
include_directories : include_directories('.'),
link_with : libexpr,
)

16
src/libmain/meson.build Normal file
View file

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