X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=6ece10b05e07c70993ee64c9032015c436b9c73a;hp=e2107aadb5a8fed1fef6a8a99c57e327ec2378ef;hb=7c452691dffbc1f0a7d51a9e96d04f50e47fda3f;hpb=d52ed1c3869467e709b0e5d680261447436030bb diff --git a/Build b/Build index e2107aa..6ece10b 100644 --- a/Build +++ b/Build @@ -4,21 +4,45 @@ package "mspcore" description "Mikkosoft Productions core library"; require "sigc++-2.0"; - if_arch "!windows" + 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"; + }; + }; + + if_arch "darwin" + { + build_info + { + library "Foundation.framework"; }; }; + feature "zlib" "Support compression with zlib" + { + default "yes"; + }; + if_feature "zlib" + { + require "zlib"; + }; + + feature "exception_trace" "Support exception backtraces"; + library "mspcore" { source "source/core"; @@ -28,6 +52,27 @@ package "mspcore" 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 { @@ -38,36 +83,33 @@ package "mspcore" program "grep" { source "examples/grep.cpp"; - build_info - { - library "mspcore"; - }; + use "mspcore"; }; program "transcode" { source "examples/transcode.cpp"; - build_info - { - library "mspcore"; - }; + use "mspcore"; }; program "ls" { source "examples/ls.cpp"; - build_info - { - library "mspcore"; - }; + use "mspcore"; }; program "syncdir" { source "examples/syncdir.cpp"; - build_info + use "mspcore"; + }; + + if_feature "zlib" + { + program "z" { - library "mspcore"; + source "examples/z.cpp"; + use "mspcore"; }; };