X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=51b3bc8276ea7f69e72fb8565797eea2811ba047;hp=359f6b197204d1a63489e221ace0c36cb27ac1f3;hb=8642ac1b4478419630911a51a53fe8ef5fb46647;hpb=b38f3713d39bca1adc476c594b037c98e7538e78 diff --git a/Build b/Build index 359f6b1..51b3bc8 100644 --- a/Build +++ b/Build @@ -1,19 +1,17 @@ -/* $Id$ */ - 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 { @@ -21,36 +19,82 @@ package "mspcore" }; }; - feature "exception_backtrace" "Generate a backtrace when an exception is thrown."; + feature "zlib" "Support compression with zlib" + { + default "yes"; + }; + if_feature "zlib" + { + require "zlib"; + }; - headers "msp/core" + library "mspcore" { source "source/core"; + source "source/debug"; + source "source/time"; + source "source/strings"; + source "source/stringcodec"; + source "source/io"; + source "source/fs"; install true; + install_map + { + map "source" "include/msp"; + }; }; - headers "msp/time" + program "grep" { - source "source/time"; - install true; + source "examples/grep.cpp"; + build_info + { + library "mspcore"; + }; }; - headers "msp/debug" + program "transcode" { - source "source/debug"; - install true; + source "examples/transcode.cpp"; + build_info + { + library "mspcore"; + }; }; - library "mspcore" + program "ls" { - source "source/core"; - source "source/debug"; - source "source/time"; - install true; + 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"; + }; + }; }; - tarball "@src" + source_tarball { source "License.txt"; + source "source/stringcodec/jisx0208.table"; }; };