]> git.tdb.fi Git - libs/core.git/blobdiff - Build
Add some utility functions for joining strings
[libs/core.git] / Build
diff --git a/Build b/Build
index be4d039a96c97f01102222115c0ed7baa82e7694..6ece10b05e07c70993ee64c9032015c436b9c73a 100644 (file)
--- a/Build
+++ b/Build
@@ -4,18 +4,31 @@ package "mspcore"
        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";
                };
        };
 
@@ -28,6 +41,8 @@ package "mspcore"
                require "zlib";
        };
 
+       feature "exception_trace" "Support exception backtraces";
+
        library "mspcore"
        {
                source "source/core";
@@ -37,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
                {