From 0f6b759e11451b9cdae4b5f64fdcc82989161482 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jul 2017 08:55:33 +0200 Subject: Add modularized version --- libmhello/build/.gitignore | 1 + libmhello/build/bootstrap.build | 7 +++++++ libmhello/build/export.build | 6 ++++++ libmhello/build/root.build | 10 ++++++++++ 4 files changed, 24 insertions(+) create mode 100644 libmhello/build/.gitignore create mode 100644 libmhello/build/bootstrap.build create mode 100644 libmhello/build/export.build create mode 100644 libmhello/build/root.build (limited to 'libmhello/build') diff --git a/libmhello/build/.gitignore b/libmhello/build/.gitignore new file mode 100644 index 0000000..225c27f --- /dev/null +++ b/libmhello/build/.gitignore @@ -0,0 +1 @@ +config.build diff --git a/libmhello/build/bootstrap.build b/libmhello/build/bootstrap.build new file mode 100644 index 0000000..efd74f9 --- /dev/null +++ b/libmhello/build/bootstrap.build @@ -0,0 +1,7 @@ +project = libmhello + +using version +using config +using dist +using test +using install diff --git a/libmhello/build/export.build b/libmhello/build/export.build new file mode 100644 index 0000000..8d39dbb --- /dev/null +++ b/libmhello/build/export.build @@ -0,0 +1,6 @@ +$out_root/: +{ + include libmhello/ +} + +export $out_root/libmhello/lib{mhello} diff --git a/libmhello/build/root.build b/libmhello/build/root.build new file mode 100644 index 0000000..0f4a099 --- /dev/null +++ b/libmhello/build/root.build @@ -0,0 +1,10 @@ +cxx.std = experimental + +cxx.features.symexport = true + +using cxx + +assert $cxx.features.modules 'c++ compiler does not support modules' + +mxx{*}: extension = mxx +cxx{*}: extension = cxx -- cgit v1.1