diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-10 14:47:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-10 14:48:38 +0200 |
commit | d522e894f5ae1e899da5a23f0cfcafd2bd331797 (patch) | |
tree | e9dcef8da75ac9950c91765690b52d08f638a86e /intro2-tour | |
parent | 4d18b3968b7b18b7da63da5a35733df638c744c0 (diff) |
Add command for Using System-Installed Dependencies section to intro2-tour
Diffstat (limited to 'intro2-tour')
-rwxr-xr-x | intro2-tour | 14 |
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 . |