]> git.tdb.fi Git - libs/core.git/blobdiff - Build
Don't give out a non-const reference from a const Variant
[libs/core.git] / Build
diff --git a/Build b/Build
index e1f3fd7dc5bffe5140a0bf7449ce1d11716ff788..51b3bc8276ea7f69e72fb8565797eea2811ba047 100644 (file)
--- a/Build
+++ b/Build
@@ -1,19 +1,17 @@
-/* $Id$ */
-
 package "mspcore"
 {
-       version "1.1";
+       version "2.0";
        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
                {
@@ -21,36 +19,13 @@ package "mspcore"
                };
        };
 
-       feature "exception_backtrace" "Generate a backtrace when an exception is thrown.";
-
-       headers "msp/core"
-       {
-               source "source/core";
-               install true;
-       };
-
-       headers "msp/time"
-       {
-               source "source/time";
-               install true;
-       };
-
-       headers "msp/debug"
+       feature "zlib" "Support compression with zlib"
        {
-               source "source/debug";
-               install true;
+               default "yes";
        };
-
-       headers "msp/strings"
+       if_feature "zlib"
        {
-               source "source/strings";
-               install true;
-       };
-
-       headers "msp/stringcodec"
-       {
-               source "source/stringcodec";
-               install true;
+               require "zlib";
        };
 
        library "mspcore"
@@ -60,12 +35,18 @@ package "mspcore"
                source "source/time";
                source "source/strings";
                source "source/stringcodec";
+               source "source/io";
+               source "source/fs";
                install true;
+               install_map
+               {
+                       map "source" "include/msp";
+               };
        };
 
        program "grep"
        {
-               source "grep.cpp";
+               source "examples/grep.cpp";
                build_info
                {
                        library "mspcore";
@@ -74,14 +55,44 @@ package "mspcore"
 
        program "transcode"
        {
-               source "transcode.cpp";
+               source "examples/transcode.cpp";
                build_info
                {
                        library "mspcore";
                };
        };
 
-       tarball "@src"
+       program "ls"
+       {
+               source "examples/ls.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
+       program "syncdir"
+       {
+               source "examples/syncdir.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
+       if_feature "zlib"
+       {
+               program "z"
+               {
+                       source "examples/z.cpp";
+                       build_info
+                       {
+                               library "mspcore";
+                       };
+               };
+       };
+
+       source_tarball
        {
                source "License.txt";
                source "source/stringcodec/jisx0208.table";