forked from lix-project/lix
meson: we can now build libcmd!
Change-Id: I3506b3d599cd038020d208b899f81b7251932fd8
This commit is contained in:
parent
f2113c2416
commit
557dc678fd
|
@ -104,6 +104,12 @@ deps += sodium
|
||||||
curl = dependency('libcurl', 'curl', required : true)
|
curl = dependency('libcurl', 'curl', required : true)
|
||||||
deps += curl
|
deps += curl
|
||||||
|
|
||||||
|
editline = dependency('libeditline', 'editline', version : '>=1.14', required : true)
|
||||||
|
deps += editline
|
||||||
|
|
||||||
|
lowdown = dependency('lowdown', version : '>=0.9.0', required : true)
|
||||||
|
deps += lowdown
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build-time tools
|
# Build-time tools
|
||||||
#
|
#
|
||||||
|
@ -199,3 +205,5 @@ subdir('src/libfetchers')
|
||||||
subdir('src/libexpr')
|
subdir('src/libexpr')
|
||||||
# libmain depends on libutil and libstore.
|
# libmain depends on libutil and libstore.
|
||||||
subdir('src/libmain')
|
subdir('src/libmain')
|
||||||
|
# libcmd depends on everything
|
||||||
|
subdir('src/libcmd')
|
||||||
|
|
30
src/libcmd/meson.build
Normal file
30
src/libcmd/meson.build
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
libcmd_sources = files(
|
||||||
|
'built-path.cc',
|
||||||
|
'command-installable-value.cc',
|
||||||
|
'command.cc',
|
||||||
|
'common-eval-args.cc',
|
||||||
|
'editor-for.cc',
|
||||||
|
'installable-attr-path.cc',
|
||||||
|
'installable-derived-path.cc',
|
||||||
|
'installable-flake.cc',
|
||||||
|
'installable-value.cc',
|
||||||
|
'installables.cc',
|
||||||
|
'legacy.cc',
|
||||||
|
'markdown.cc',
|
||||||
|
'repl.cc',
|
||||||
|
)
|
||||||
|
|
||||||
|
libcmd = library(
|
||||||
|
'nixcmd',
|
||||||
|
libcmd_sources,
|
||||||
|
dependencies : [
|
||||||
|
liblixutil,
|
||||||
|
liblixstore,
|
||||||
|
liblixexpr,
|
||||||
|
liblixfetchers,
|
||||||
|
liblixmain,
|
||||||
|
boehm,
|
||||||
|
editline,
|
||||||
|
lowdown,
|
||||||
|
],
|
||||||
|
)
|
|
@ -14,3 +14,8 @@ libmain = library(
|
||||||
liblixstore,
|
liblixstore,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
liblixmain = declare_dependency(
|
||||||
|
include_directories : include_directories('.'),
|
||||||
|
link_with : libmain,
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue