X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=12e3114909efbd16356a498602d166db710ddf1e;hp=a4758f420dd20e11cb253648648911079ee5acba;hb=d2795b92b02253a36cb7406fbaeabdef6d7caa19;hpb=d16185720fa344263367dbd50c61bfc8183d99a4 diff --git a/Build b/Build index a4758f4..12e3114 100644 --- a/Build +++ b/Build @@ -1,101 +1,117 @@ -/* $Id$ */ - package "mspcore" { - version "1.1"; + version "2.0"; description "Mikkosoft Productions core library"; 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."; - - headers "msp/core" + if_arch "darwin" { - source "source/core"; - install true; + build_info + { + library "Foundation.framework"; + }; }; - 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; + require "zlib"; }; - headers "msp/strings" + library "mspcore" { + source "source/core"; + source "source/debug"; + source "source/time"; source "source/strings"; - install true; - }; - - headers "msp/stringcodec" - { 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 "msp/io" + program "grep" { - source "source/io"; - install true; + source "examples/grep.cpp"; + use "mspcore"; }; - headers "msp/fs" + program "transcode" { - source "source/fs"; - install true; + source "examples/transcode.cpp"; + use "mspcore"; }; - library "mspcore" + program "ls" { - source "source/core"; - source "source/debug"; - source "source/time"; - source "source/strings"; - source "source/stringcodec"; - source "source/io"; - source "source/fs"; - install true; + source "examples/ls.cpp"; + use "mspcore"; }; - program "grep" + program "syncdir" { - source "grep.cpp"; - build_info - { - library "mspcore"; - }; + source "examples/syncdir.cpp"; + use "mspcore"; }; - program "transcode" + if_feature "zlib" { - source "transcode.cpp"; - build_info + program "z" { - library "mspcore"; + source "examples/z.cpp"; + use "mspcore"; }; }; - tarball "@src" + source_tarball { source "License.txt"; source "source/stringcodec/jisx0208.table";