]> git.tdb.fi Git - libs/core.git/blobdiff - Build
Do less syscalls in mkpath
[libs/core.git] / Build
diff --git a/Build b/Build
index 32d717dd6b38aba17d575aa982ba0afa41bed5df..cf72f3dc1231a01bda38af29e17adeb8f9fd6c57 100644 (file)
--- a/Build
+++ b/Build
-/* $Id$ */
-
-package "mspio"
+package "mspcore"
 {
        version "1.1";
-       description "Object-oriented input/output library";
+       description "Mikkosoft Productions core library";
 
-       require "mspstrings";
-       require "mspcore";
        require "sigc++-2.0";
+       if "arch!=win32"
+       {
+               build_info
+               {
+                       library "pthread";
+               };
+       };
+       if "arch=linux"
+       {
+               build_info
+               {
+                       library "dl";
+               };
+       };
+
+       headers "msp/core"
+       {
+               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/strings";
+               install true;
+       };
+
+       headers "msp/stringcodec"
+       {
+               source "source/stringcodec";
+               install true;
+       };
 
        headers "msp/io"
        {
-               source "source";
+               source "source/io";
+               install true;
+       };
+
+       headers "msp/fs"
+       {
+               source "source/fs";
                install true;
        };
 
-       library "mspio"
+       library "mspcore"
        {
-               source "source";
+               source "source/core";
+               source "source/debug";
+               source "source/time";
+               source "source/strings";
+               source "source/stringcodec";
+               source "source/io";
+               source "source/fs";
                install true;
        };
 
+       program "grep"
+       {
+               source "examples/grep.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
+       program "transcode"
+       {
+               source "examples/transcode.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
+       program "ls"
+       {
+               source "examples/ls.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
+       program "syncdir"
+       {
+               source "examples/syncdir.cpp";
+               build_info
+               {
+                       library "mspcore";
+               };
+       };
+
        tarball "@src"
        {
                source "License.txt";
+               source "source/stringcodec/jisx0208.table";
        };
 };