X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=51b3bc8276ea7f69e72fb8565797eea2811ba047;hp=948c3dfa6c53b25167937ce6fd792ee952397475;hb=8245b8036c8bdc51625616ca6248b0f2b0271dc0;hpb=a1375220342e0fc87c8c7065059dc8d49633f95b diff --git a/Build b/Build index 948c3df..51b3bc8 100644 --- a/Build +++ b/Build @@ -1,20 +1,100 @@ -/* $Id$ */ - -package "mspio" +package "mspcore" { - version "1.0"; - description "Object-oriented input/output library"; - - tar_file "License.txt"; + version "2.0"; + description "Mikkosoft Productions core library"; - require "mspstrings"; - require "mspcore"; require "sigc++-2.0"; + if_arch "!windows" + { + build_info + { + library "pthread"; + }; + }; + if_arch "linux" + { + build_info + { + library "dl"; + }; + }; - library "mspio" + feature "zlib" "Support compression with zlib" + { + default "yes"; + }; + if_feature "zlib" { - source "source"; + 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"; install true; - install_headers "msp/io"; + install_map + { + map "source" "include/msp"; + }; + }; + + program "grep" + { + source "examples/grep.cpp"; + build_info + { + library "mspcore"; + }; + }; + + program "transcode" + { + source "examples/transcode.cpp"; + build_info + { + library "mspcore"; + }; + }; + + 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"; }; };