X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=6ece10b05e07c70993ee64c9032015c436b9c73a;hp=621857dccd8b2e08ebeded6715ff303df8f4a9d3;hb=be8ea216d23bf36bdfb2d3e302638782575fc136;hpb=32d6e3c59c8ae64e06a5df18b2e7a067a3f2c23a diff --git a/Build b/Build index 621857d..6ece10b 100644 --- a/Build +++ b/Build @@ -1,24 +1,48 @@ package "mspcore" { - version "1.1"; + version "2.0"; 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"; }; };