X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=2aa78db278ab0674dfd1509fa88f91eebc803b8f;hp=318f3414df20eae3cecb296bce4be288fb5e2b19;hb=9a327fbe5dbad5edec04641527e65d5e7ea4c568;hpb=628d762fbfd512aedde6f313f66594291dad4eb1 diff --git a/Build b/Build index 318f341..2aa78db 100644 --- a/Build +++ b/Build @@ -1,17 +1,14 @@ package "mspcore" { - version "1.1"; + version "2.0"; description "Mikkosoft Productions core library"; require "sigc++-2.0"; - if "arch!=win32" + build_info { - build_info - { - library "pthread"; - }; + threads true; }; - if "arch=linux" + if_arch "linux" { build_info { @@ -19,48 +16,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" + feature "zlib" "Support compression with zlib" { - source "source/time"; - install true; + default "yes"; }; - - headers "msp/debug" + if_feature "zlib" { - source "source/debug"; - install true; - }; - - headers "msp/strings" - { - source "source/strings"; - install true; - }; - - headers "msp/stringcodec" - { - source "source/stringcodec"; - install true; - }; - - headers "msp/io" - { - source "source/io"; - install true; - }; - - headers "msp/fs" - { - source "source/fs"; - install true; + require "zlib"; }; library "mspcore" @@ -72,28 +34,55 @@ package "mspcore" source "source/stringcodec"; source "source/io"; source "source/fs"; + if_arch "windows" + { + overlay "windows"; + }; + if_arch "!windows" + { + overlay "unix"; + }; install true; + install_map + { + map "source" "include/msp"; + }; }; program "grep" { source "examples/grep.cpp"; - build_info - { - library "mspcore"; - }; + use "mspcore"; }; program "transcode" { source "examples/transcode.cpp"; - build_info + use "mspcore"; + }; + + program "ls" + { + source "examples/ls.cpp"; + use "mspcore"; + }; + + program "syncdir" + { + source "examples/syncdir.cpp"; + use "mspcore"; + }; + + if_feature "zlib" + { + program "z" { - library "mspcore"; + source "examples/z.cpp"; + use "mspcore"; }; }; - tarball "@src" + source_tarball { source "License.txt"; source "source/stringcodec/jisx0208.table";