summaryrefslogtreecommitdiff
path: root/intro2-tour
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-10 14:47:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-10 14:48:38 +0200
commitd522e894f5ae1e899da5a23f0cfcafd2bd331797 (patch)
treee9dcef8da75ac9950c91765690b52d08f638a86e /intro2-tour
parent4d18b3968b7b18b7da63da5a35733df638c744c0 (diff)
Add command for Using System-Installed Dependencies section to intro2-tour
Diffstat (limited to 'intro2-tour')
-rwxr-xr-xintro2-tour14
1 files changed, 13 insertions, 1 deletions
diff --git a/intro2-tour b/intro2-tour
index 2a2c8bc..d457b7a 100755
--- a/intro2-tour
+++ b/intro2-tour
@@ -163,7 +163,7 @@ show bdep status -r
show bdep status -o libhello
show bdep sync libhello/1.0.0
-# Unpackaged Dependencies.
+# Using Unpackaged Dependencies.
#
cd ..
rm -rf libextra libextra-gcc unpkg-gcc hello-gcc-1
@@ -193,6 +193,18 @@ config.cc.poptions+=-I$tmp/unpkg-gcc/include \
config.cc.loptions+=-L$tmp/unpkg-gcc/lib
show b test
+# Using System-Installed Dependencies.
+#
+cat <<EOF >>manifest
+depends: libsqlite3 ^3.18.0
+EOF
+sed -i -re 's/^import libs =/import libs = libsqlite3%lib{sqlite3}/' hello/buildfile
+cat <<EOF >>hello/hello.cxx
+#include <sqlite3.h>
+EOF
+
+show bdep sync ?sys:libsqlite3
+
# Versioning and Release Management.
#
git add .