]> git.tdb.fi Git - libs/core.git/blobdiff - Build
Move non-oneliner functions out of RefPtr class declaration
[libs/core.git] / Build
diff --git a/Build b/Build
index 621857dccd8b2e08ebeded6715ff303df8f4a9d3..6ece10b05e07c70993ee64c9032015c436b9c73a 100644 (file)
--- 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";
                };
        };