]> git.tdb.fi Git - libs/core.git/blobdiff - Build
Invent a value for argv[0] if not present
[libs/core.git] / Build
diff --git a/Build b/Build
index 80517649dd0e8c9fcf5b46035ce30f3793c18d4d..12e3114909efbd16356a498602d166db710ddf1e 100644 (file)
--- a/Build
+++ b/Build
-package "mspio"
+package "mspcore"
 {
-       version "1.0";
-       description "Object-oriented input/output library";
+       version "2.0";
+       description "Mikkosoft Productions core library";
 
-       tar_file "License.txt";
-
-       require "mspstrings";
-       require "mspcore";
        require "sigc++-2.0";
+       build_info
+       {
+               threads true;
+       };
+       if_arch "linux"
+       {
+               build_info
+               {
+                       library "dl";
+               };
+       };
+       if_arch "android"
+       {
+               build_info
+               {
+                       library "android";
+                       library "log";
+               };
+       };
 
-       library "mspio"
+       if_arch "darwin"
        {
-               source "source";
+               build_info
+               {
+                       library "Foundation.framework";
+               };
+       };
+
+       feature "zlib" "Support compression with zlib"
+       {
+               default "yes";
+       };
+       if_feature "zlib"
+       {
+               require "zlib";
+       };
+
+       library "mspcore"
+       {
+               source "source/core";
+               source "source/debug";
+               source "source/time";
+               source "source/strings";
+               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_headers "msp/io";
+               install_map
+               {
+                       map "source" "include/msp";
+               };
+       };
+
+       program "grep"
+       {
+               source "examples/grep.cpp";
+               use "mspcore";
+       };
+
+       program "transcode"
+       {
+               source "examples/transcode.cpp";
+               use "mspcore";
+       };
+
+       program "ls"
+       {
+               source "examples/ls.cpp";
+               use "mspcore";
+       };
+
+       program "syncdir"
+       {
+               source "examples/syncdir.cpp";
+               use "mspcore";
+       };
+
+       if_feature "zlib"
+       {
+               program "z"
+               {
+                       source "examples/z.cpp";
+                       use "mspcore";
+               };
+       };
+
+       source_tarball
+       {
+               source "License.txt";
+               source "source/stringcodec/jisx0208.table";
        };
 };