diff options
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. # |