From 9d338200dacdf24c50259c309380200f8a53d5b5 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 4 Oct 2018 00:07:44 -0400 Subject: external-project: New module to build configure/make projects This adds an experimental meson module to build projects with other build systems. Closes: #4316 --- docs/markdown/snippets/external_project.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/markdown/snippets/external_project.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/external_project.md b/docs/markdown/snippets/external_project.md new file mode 100644 index 0000000..0ecaac8 --- /dev/null +++ b/docs/markdown/snippets/external_project.md @@ -0,0 +1,24 @@ +## External projects + +A new experimental module `unstable_external_project` has been added to build +code using other build systems than Meson. Currently only supporting projects +with a configure script that generates Makefiles. + +```meson +project('My Autotools Project', 'c', + meson_version : '>=0.56.0', +) + +mod = import('unstable_external_project') + +p = mod.add_project('configure', + configure_options : ['--prefix=@PREFIX@', + '--libdir=@LIBDIR@', + '--incdir=@INCLUDEDIR@', + '--enable-foo', + ], +) + +mylib_dep = p.dependency('mylib') +``` + -- cgit v1.1