X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=Build;h=621857dccd8b2e08ebeded6715ff303df8f4a9d3;hp=b82fdec9d915cb2f3347c600e9d2cf0c1e1bd8bf;hb=32d6e3c59c8ae64e06a5df18b2e7a067a3f2c23a;hpb=82f9f26dde92ea0e9714fd8878db8dad186ce7af diff --git a/Build b/Build index b82fdec..621857d 100644 --- a/Build +++ b/Build @@ -4,14 +4,14 @@ package "mspcore" description "Mikkosoft Productions core library"; require "sigc++-2.0"; - if "arch!=win32" + if_arch "!windows" { build_info { library "pthread"; }; }; - if "arch=linux" + if_arch "linux" { build_info { @@ -19,81 +19,59 @@ package "mspcore" }; }; - feature "exception_backtrace" "Generate a backtrace when an exception is thrown."; - - headers "msp/core" + library "mspcore" { source "source/core"; - install true; - }; - - headers "msp/time" - { - source "source/time"; - install true; - }; - - headers "msp/debug" - { source "source/debug"; - install true; - }; - - headers "msp/strings" - { + source "source/time"; source "source/strings"; - install true; - }; - - headers "msp/stringcodec" - { source "source/stringcodec"; - install true; - }; - - headers "msp/io" - { source "source/io"; + source "source/fs"; install true; + install_map + { + map "source" "include/msp"; + }; }; - headers "msp/fs" + program "grep" { - source "source/fs"; - install true; + source "examples/grep.cpp"; + build_info + { + library "mspcore"; + }; }; - library "mspcore" + program "transcode" { - source "source/core"; - source "source/debug"; - source "source/time"; - source "source/strings"; - source "source/stringcodec"; - source "source/io"; - source "source/fs"; - install true; + source "examples/transcode.cpp"; + build_info + { + library "mspcore"; + }; }; - program "grep" + program "ls" { - source "grep.cpp"; + source "examples/ls.cpp"; build_info { library "mspcore"; }; }; - program "transcode" + program "syncdir" { - source "transcode.cpp"; + source "examples/syncdir.cpp"; build_info { library "mspcore"; }; }; - tarball "@src" + source_tarball { source "License.txt"; source "source/stringcodec/jisx0208.table";