summaryrefslogtreecommitdiff
path: root/libmprint/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:55:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:55:37 +0200
commit01399cea3ff5d5d64c987d06c882a1c7c9cdd878 (patch)
treeb0df201f3bec90a94e6d373b71448d97ea6fa5fc /libmprint/build
parentd8c1605ced6e9445b8ef6fdf7ab5dde4021d454a (diff)
Add modularized version
Diffstat (limited to 'libmprint/build')
-rw-r--r--libmprint/build/.gitignore1
-rw-r--r--libmprint/build/bootstrap.build7
-rw-r--r--libmprint/build/export.build6
-rw-r--r--libmprint/build/root.build10
4 files changed, 24 insertions, 0 deletions
diff --git a/libmprint/build/.gitignore b/libmprint/build/.gitignore
new file mode 100644
index 0000000..225c27f
--- /dev/null
+++ b/libmprint/build/.gitignore
@@ -0,0 +1 @@
+config.build
diff --git a/libmprint/build/bootstrap.build b/libmprint/build/bootstrap.build
new file mode 100644
index 0000000..9290506
--- /dev/null
+++ b/libmprint/build/bootstrap.build
@@ -0,0 +1,7 @@
+project = libmprint
+
+using version
+using config
+using dist
+using test
+using install
diff --git a/libmprint/build/export.build b/libmprint/build/export.build
new file mode 100644
index 0000000..25c9281
--- /dev/null
+++ b/libmprint/build/export.build
@@ -0,0 +1,6 @@
+$out_root/:
+{
+ include libmprint/
+}
+
+export $out_root/libmprint/lib{mprint}
diff --git a/libmprint/build/root.build b/libmprint/build/root.build
new file mode 100644
index 0000000..0f4a099
--- /dev/null
+++ b/libmprint/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