X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=1321bb2760ca7c40c063e4f42caa9784b24da3a2;hp=b0e5881e9e96cae6f0b472ca51a43a8c071c320e;hb=5c67ff04d21b2d85f6156eed3b1f05120d24a757;hpb=5616458e257bc6b805b0e61c98b4e8e1f05478cf diff --git a/Build b/Build index b0e5881..1321bb2 100644 --- a/Build +++ b/Build @@ -1,27 +1,121 @@ -/* $Id$ */ - -package "mspfs" +package "mspcore" { - version "1.1"; - description "Filesystem utilities"; + version "3.0"; + description "Mikkosoft Productions core library"; - require "mspstrings"; + 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/fs" + if_arch "darwin" { - source "source"; - install true; + build_info + { + library "Foundation.framework"; + }; }; - library "mspfs" + feature "zlib" "Support compression with zlib" { - source "source"; + default "yes"; + }; + if_feature "zlib" + { + require "zlib"; + }; + + feature "exception_trace" "Support exception backtraces"; + + 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 "examples/grep.cpp"; + use "mspcore"; + }; + + program "transcode" + { + 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" + { + source "examples/z.cpp"; + use "mspcore"; + }; }; - tarball "@src" + source_tarball { - source "Changelog.txt"; source "License.txt"; + source "source/stringcodec/jisx0208.table"; }; };