X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=a2a3040f88af33e145d28e0241153a87864225ba;hp=bec4c611147ddd37f86acb54d416b7c75421831b;hb=HEAD;hpb=7ea42ed1861d0fccd85de3795f48bb7e0efe948d diff --git a/Build b/Build index bec4c61..a2a3040 100644 --- a/Build +++ b/Build @@ -1,28 +1,131 @@ package "mspcore" { - version "0.1"; + version "3.0"; description "Mikkosoft Productions core library"; - require "mspmisc"; - require "pthread"; require "sigc++-2.0"; + build_info + { + threads true; + standard CXX "c++11"; + }; + if_arch "linux" + { + build_info + { + library "dl"; + }; + }; + if_arch "android" + { + build_info + { + library "android"; + library "log"; + }; + }; + + if_arch "darwin" + { + build_info + { + library "Foundation.framework"; + }; + }; + + if_arch "windows" + { + build_info + { + library "advapi32"; + library "shell32"; + }; + }; + + feature "zlib" "Support compression with zlib" + { + 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"; + }; }; - headers "core" + program "grep" { - source "source/core"; - install_headers "msp/core"; + source "examples/grep.cpp"; + use "mspcore"; }; - headers "time" + program "transcode" { - source "source/time"; - install_headers "msp/time"; + 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"; + }; + }; + + source_tarball + { + source "License.txt"; + source "source/stringcodec/jisx0208.table"; }; };