X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=d940f4a695ce976c886be6341c08d85ed9a5bade;hp=253b93b5e10b53b058deda677e632f9d9deffc72;hb=497eaf090b1665511c795d5764c06a2bcd4b90b6;hpb=8c0b2a75896b75717a484185c0bf291b2a9d4e8e diff --git a/Build b/Build index 253b93b..d940f4a 100644 --- a/Build +++ b/Build @@ -1,53 +1,111 @@ -/* $Id$ */ - package "mspcore" { - version "1.0"; + version "2.0"; description "Mikkosoft Productions core library"; - tar_file "License.txt"; - require "sigc++-2.0"; - if "arch!=win32" + build_info + { + threads true; + }; + if_arch "linux" { build_info { - library "pthread"; + library "dl"; }; }; - if "arch=linux" + if_arch "android" { build_info { - library "dl"; + library "android"; + library "log"; }; }; - 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 "core" + library "mspcore" { source "source/core"; - install_headers "msp/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 "darwin" + { + overlay "osx"; + }; + if_arch "android" + { + overlay "android"; + build_info + { + keep_symbol "ANativeActivity_onCreate"; + }; + }; + if_arch "!windows" + { + overlay "unix"; + }; + overlay "generic"; + install true; + install_map + { + map "source" "include/msp"; + }; }; - headers "time" + program "grep" { - source "source/time"; - install_headers "msp/time"; + source "examples/grep.cpp"; + use "mspcore"; }; - headers "debug" + program "transcode" { - source "source/debug"; - install_headers "msp/debug"; + source "examples/transcode.cpp"; + use "mspcore"; }; - library "mspcore" + program "ls" { - source "source/core"; - source "source/debug"; - source "source/time"; - install true; + 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"; }; };