X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=6ece10b05e07c70993ee64c9032015c436b9c73a;hp=06545dc50a21490049519164b0f194ce3edb1c74;hb=9955efca718d8be72b63c7c2182ca59e7b9d0935;hpb=b42ed73a1b241c0e93ee03c43c4584b41c549bac diff --git a/Build b/Build index 06545dc..6ece10b 100644 --- a/Build +++ b/Build @@ -1,50 +1,119 @@ -// $Id$ - -package "mspstrings" +package "mspcore" { - version "1.1"; - description "String utilities library"; + version "2.0"; + description "Mikkosoft Productions core library"; - require "mspcore"; + require "sigc++-2.0"; + build_info + { + threads true; + }; + if_arch "linux" + { + build_info + { + library "dl"; + }; + }; + if_arch "android" + { + build_info + { + library "android"; + library "log"; + }; + }; - headers "msp/strings" + if_arch "darwin" { - source "source/strings"; - install true; + build_info + { + library "Foundation.framework"; + }; }; - headers "msp/stringcodec" + feature "zlib" "Support compression with zlib" { - source "source/stringcodec"; - install true; + default "yes"; }; + if_feature "zlib" + { + require "zlib"; + }; + + feature "exception_trace" "Support exception backtraces"; - library "mspstrings" + 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 "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"; + }; }; program "grep" { - source "grep.cpp"; - build_info - { - library "mspstrings"; - }; + source "examples/grep.cpp"; + use "mspcore"; }; program "transcode" { - source "transcode.cpp"; - build_info + 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" { - library "mspstrings"; + source "examples/z.cpp"; + use "mspcore"; }; }; - tarball "@src" + source_tarball { source "License.txt"; source "source/stringcodec/jisx0208.table";