aboutsummaryrefslogtreecommitdiff
path: root/build/import/libboost/header-only
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-17 14:50:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-17 14:50:11 +0200
commit5aaec95bbfb066130ecac03eece3813cee61a3e1 (patch)
tree87c24d1b6afe613c31076cf7b417a7e2b7188994 /build/import/libboost/header-only
parent29e7db53cb1db2c4d743d4756b8ac3fee28ab8ea (diff)
Add test infrastructure for boost profile
Diffstat (limited to 'build/import/libboost/header-only')
-rw-r--r--build/import/libboost/header-only/rules.make18
-rw-r--r--build/import/libboost/header-only/stub.make28
2 files changed, 46 insertions, 0 deletions
diff --git a/build/import/libboost/header-only/rules.make b/build/import/libboost/header-only/rules.make
new file mode 100644
index 0000000..b966860
--- /dev/null
+++ b/build/import/libboost/header-only/rules.make
@@ -0,0 +1,18 @@
+# file : build/import/libboost/header-only/rules.make
+# author : Boris Kolpackov <boris@kolpackov.net>
+# copyright : Copyright (c) 2005-2011 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(dcf_root)/import/libboost/%: root := $(libboost_root)
+
+$(dcf_root)/import/libboost/header-only/header-only.l.cpp-options: \
+ | $(dcf_root)/import/libboost/header-only/.
+ @echo include: -I$(root) >$@
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/libboost/header-only/header-only.l,\
+rm -f $(dcf_root)/import/libboost/header-only/header-only.l.cpp-options)
+
+endif
diff --git a/build/import/libboost/header-only/stub.make b/build/import/libboost/header-only/stub.make
new file mode 100644
index 0000000..9c39397
--- /dev/null
+++ b/build/import/libboost/header-only/stub.make
@@ -0,0 +1,28 @@
+# file : build/import/libboost/header-only/stub.make
+# author : Boris Kolpackov <boris@kolpackov.net>
+# copyright : Copyright (c) 2005-2011 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
+
+libboost_installed :=
+
+$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make)
+
+ifdef libboost_installed
+
+ifeq ($(libboost_installed),n)
+
+$(call include-once,$(scf_root)/import/libboost/header-only/rules.make,$(dcf_root))
+
+$(call export,\
+ l: ,\
+ cpp-options: $(dcf_root)/import/libboost/header-only/header-only.l.cpp-options)
+
+endif
+
+else
+
+.NOTPARALLEL:
+
+endif