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