aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-05 13:52:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-05 13:52:14 +0300
commit921c976430f4995979ac413ab5d95bf82db37132 (patch)
treea499b44df82eeb2bf777e07a5d1d9e5f2ef81cfa
parentcca519e90ed19954b6f60435fcfca856c0cfc471 (diff)
Align with latest bdep-new
-rw-r--r--libstd-modules/buildfile27
1 files changed, 16 insertions, 11 deletions
diff --git a/libstd-modules/buildfile b/libstd-modules/buildfile
index 926b356..1c52ecd 100644
--- a/libstd-modules/buildfile
+++ b/libstd-modules/buildfile
@@ -70,16 +70,6 @@ else
liba{std-modules}: hxx{*}
- # @@ TMP: use utility library instead?
- #
- if ($cxx.target.class == 'linux' || $cxx.target.class == 'bsd')
- cxx.coptions += -fPIC
-
- # Clang with libc++ (sometimes) needs it -- go figure.
- #
- if ($cxx.target.class != "windows")
- cxx.libs += -lpthread
-
bmia{$core}: mxx{std-core}
bmia{$io}: mxx{std-io} bmia{$core}
bmia{$regex}: mxx{std-regex} bmia{$core} bmia{$io}
@@ -90,10 +80,25 @@ else
mxx{std-regex}@./: cxx.module_name = std.regex
mxx{std-threading}@./: cxx.module_name = std.threading
+ # Build options.
+ #
cxx.poptions =+ "-I$out_root" "-I$src_root"
+
+ # @@ TMP: use utility library instead?
+ #
+ if ($cxx.target.class == 'linux' || $cxx.target.class == 'bsd')
+ cxx.coptions += -fPIC
+
+ # Clang with libc++ (sometimes) needs it -- go figure.
+ #
+ if ($cxx.target.class != "windows")
+ cxx.libs += -lpthread
+
+ # Export options.
+ #
liba{std-modules}: cxx.export.poptions = "-I$out_root" "-I$src_root"
# Install into the libstd-modules/ subdirectory of, say, /usr/include/.
#
- {hxx mxx}{*}: install = include/$project/
+ {hxx mxx}{*}: install = include/libstd-modules/
}