diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-14 14:12:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-14 14:12:41 +0200 |
commit | d522c01d87bf31b237e322319da290ee3860e3b8 (patch) | |
tree | 62bcf35f8d71c466486bb1c1223a463103b905cb /intro2-tour | |
parent | 1a3f59fe6268113eef384812f21a2f4ffee0c772 (diff) |
Update intro2 scripts/output
Diffstat (limited to 'intro2-tour')
-rwxr-xr-x | intro2-tour | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/intro2-tour b/intro2-tour index 794ed2e..aca5085 100755 --- a/intro2-tour +++ b/intro2-tour @@ -41,7 +41,7 @@ function clean () rm -rf hello hello-gcc hello-clang hello-vc-* hello-mingw } -##if false; then +## if false; then clean @@ -81,6 +81,8 @@ show bdep update @mingw show bdep test @mingw show ../hello-mingw/hello/hello/hello.exe Windows +show bdep deinit @gcc @clang + cd .. ##fi @@ -227,7 +229,60 @@ git commit -a -m "Another commit" show bdep status cd .. -##fi +## fi + +# Developing Multiple Packages and Projects (multi-project). +# +rm -rf libhello + +clean +show bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=$gcc +cd hello +show bdep init -C ../hello-clang @clang cc config.cxx=$clang +cd .. + +show bdep new -t lib -l c++ libhello +show cd libhello + +show bdep init -A ../hello-gcc @gcc +show bdep init -A ../hello-clang @clang + +show cd ../hello +cat <<EOF >>manifest +depends: libhello +EOF +sed -i -re 's/^#import/import/' hello/buildfile + +show bdep test -i + +# Developing Multiple Packages and Projects (multi-package). +# +clean +show bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=$gcc +show cd hello +show bdep init -C ../hello-clang @clang cc config.cxx=$clang + +mkdir tmp +mv build hello buildfile manifest .gitignore tmp/ +mv tmp hello + +show bdep new --package -t lib -l c++ libhello +show cat packages.manifest +cat <<EOF >>packages.manifest +: +location: hello/ +EOF + +show cd libhello +show bdep init -a + +show cd .. +cat <<EOF >>hello/manifest +depends: libhello +EOF +sed -i -re 's/^#import/import/' hello/hello/buildfile + +show bdep test # Package Consumption. # |