X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=c01f693c8a310a6261aa895991bccbd644cef9f3;hp=d172391103c3d5d57894284d7083105aa5fa5de1;hb=87edba02a23b1338934e36fac407966b25fcf811;hpb=521cf1db00f8ce2d9f9494dca503d6c17d89ac2f diff --git a/Build b/Build index d172391..c01f693 100644 --- a/Build +++ b/Build @@ -1,32 +1,93 @@ package "mspcore" { - version "0.1"; + version "2.0"; description "Mikkosoft Productions core library"; require "sigc++-2.0"; - if "arch!=win32" + if_arch "!windows" { - require "pthread"; + build_info + { + library "pthread"; + }; + }; + if_arch "linux" + { + build_info + { + library "dl"; + }; }; - feature "exception_backtrace" "Generate a backtrace when an exception is thrown."; + feature "zlib" "Support compression with zlib" + { + default "yes"; + }; + if_feature "zlib" + { + require "zlib"; + }; library "mspcore" { source "source/core"; + source "source/debug"; source "source/time"; + source "source/strings"; + 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"; + }; }; - headers "core" + program "grep" { - source "source/core"; - install_headers "msp/core"; + source "examples/grep.cpp"; + use "mspcore"; }; - headers "time" + program "transcode" { - source "source/time"; - install_headers "msp/time"; + source "examples/transcode.cpp"; + use "mspcore"; + }; + + program "ls" + { + source "examples/ls.cpp"; + use "mspcore"; + }; + + program "syncdir" + { + source "examples/syncdir.cpp"; + use "mspcore"; + }; + + if_feature "zlib" + { + program "z" + { + source "examples/z.cpp"; + use "mspcore"; + }; + }; + + source_tarball + { + source "License.txt"; + source "source/stringcodec/jisx0208.table"; }; };