aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-05 16:17:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-05 17:45:51 +0300
commit22f469c1df7d22b6cd918558551c6144ccf186de (patch)
tree595a9f1f5644f429d952628c94456e2353056fa8
parent9f0769a4371044983331dba6aeaddf19d302e962 (diff)
Align with latest bdep-new
-rw-r--r--odb/oracle/buildfile56
1 files changed, 37 insertions, 19 deletions
diff --git a/odb/oracle/buildfile b/odb/oracle/buildfile
index 2ba4300..57137a0 100644
--- a/odb/oracle/buildfile
+++ b/odb/oracle/buildfile
@@ -21,29 +21,41 @@ lib{odb-oracle}: {hxx ixx txx cxx}{* -version-build2} {hxx}{version-build2} \
# clean results in a state identical to distributed).
#
hxx{version-build2}: in{version-build2} $src_root/manifest
-hxx{version-build2}: dist = true
-hxx{version-build2}: clean = ($src_root != $out_root)
+hxx{version-build2}:
+{
+ dist = true
+ clean = ($src_root != $out_root)
+}
-# For pre-releases use the complete version to make sure they cannot be used
-# in place of another pre-release or the final version.
+# Build options.
#
-if $version.pre_release
- lib{odb-oracle}: bin.lib.version = @"-$version.project_id"
-else
- lib{odb-oracle}: bin.lib.version = @"-$version.major.$version.minor"
-
cxx.poptions =+ "-I$out_root" "-I$src_root" -DLIBODB_ORACLE_BUILD2
+
obja{*}: cxx.poptions += -DLIBODB_ORACLE_STATIC_BUILD
objs{*}: cxx.poptions += -DLIBODB_ORACLE_SHARED_BUILD
-lib{odb-oracle}: cxx.export.poptions = "-I$out_root" "-I$src_root" \
- -DLIBODB_ORACLE_BUILD2
+# Export options.
+#
+lib{odb-oracle}:
+{
+ cxx.export.poptions = "-I$out_root" "-I$src_root" -DLIBODB_ORACLE_BUILD2
+ cxx.export.libs = $int_libs
+}
liba{odb-oracle}: cxx.export.poptions += -DLIBODB_ORACLE_STATIC
libs{odb-oracle}: cxx.export.poptions += -DLIBODB_ORACLE_SHARED
-lib{odb-oracle}: cxx.export.libs = $int_libs
+# For pre-releases use the complete version to make sure they cannot be used
+# in place of another pre-release or the final version. See the version module
+# for details on the version.* variable values.
+#
+if $version.pre_release
+ lib{odb-oracle}: bin.lib.version = @"-$version.project_id"
+else
+ lib{odb-oracle}: bin.lib.version = @"-$version.major.$version.minor"
+# Generated options parser.
+#
details/
{
if $cli.configured
@@ -60,9 +72,12 @@ details/
# distributed). But don't install their headers since they are only used
# internally in the database implementation.
#
- cli.cxx{*}: dist = true
- cli.cxx{*}: clean = ($src_root != $out_root)
- cli.cxx{*}: install = false
+ cli.cxx{*}:
+ {
+ dist = true
+ clean = ($src_root != $out_root)
+ install = false
+ }
}
else
# No install for the pre-generated case.
@@ -70,13 +85,16 @@ details/
hxx{options}@./ ixx{options}@./: install = false
}
-# Install into the odb/oracle/ subdirectory of, say, /usr/include/ recreating
-# subdirectories.
+# Install into the odb/oracle/ subdirectory of, say, /usr/include/
+# recreating subdirectories.
#
install_include = [dir_path] include/odb/oracle/
-{hxx ixx txx}{*}: install = $install_include
-{hxx ixx txx}{*}: install.subdirs = true
+{hxx ixx txx}{*}:
+{
+ install = $install_include
+ install.subdirs = true
+}
# We want these to be picked up whether LIBODB_ORACLE_BUILD2 is defined or not.
#