X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=51b3bc8276ea7f69e72fb8565797eea2811ba047;hp=318f3414df20eae3cecb296bce4be288fb5e2b19;hb=8642ac1b4478419630911a51a53fe8ef5fb46647;hpb=628d762fbfd512aedde6f313f66594291dad4eb1 diff --git a/Build b/Build index 318f341..51b3bc8 100644 --- a/Build +++ b/Build @@ -1,17 +1,17 @@ package "mspcore" { - version "1.1"; + version "2.0"; description "Mikkosoft Productions core library"; require "sigc++-2.0"; - if "arch!=win32" + if_arch "!windows" { build_info { library "pthread"; }; }; - if "arch=linux" + if_arch "linux" { build_info { @@ -19,48 +19,13 @@ package "mspcore" }; }; - feature "exception_backtrace" "Generate a backtrace when an exception is thrown."; - - headers "msp/core" - { - source "source/core"; - install true; - }; - - headers "msp/time" - { - source "source/time"; - install true; - }; - - headers "msp/debug" - { - source "source/debug"; - install true; - }; - - headers "msp/strings" - { - source "source/strings"; - install true; - }; - - headers "msp/stringcodec" - { - source "source/stringcodec"; - install true; - }; - - headers "msp/io" + feature "zlib" "Support compression with zlib" { - source "source/io"; - install true; + default "yes"; }; - - headers "msp/fs" + if_feature "zlib" { - source "source/fs"; - install true; + require "zlib"; }; library "mspcore" @@ -73,6 +38,10 @@ package "mspcore" source "source/io"; source "source/fs"; install true; + install_map + { + map "source" "include/msp"; + }; }; program "grep" @@ -93,7 +62,37 @@ package "mspcore" }; }; - tarball "@src" + program "ls" + { + source "examples/ls.cpp"; + build_info + { + library "mspcore"; + }; + }; + + program "syncdir" + { + source "examples/syncdir.cpp"; + build_info + { + library "mspcore"; + }; + }; + + if_feature "zlib" + { + program "z" + { + source "examples/z.cpp"; + build_info + { + library "mspcore"; + }; + }; + }; + + source_tarball { source "License.txt"; source "source/stringcodec/jisx0208.table";