]> git.tdb.fi Git - builder.git/blobdiff - Build
Convert the simpler toolchains into plugins
[builder.git] / Build
diff --git a/Build b/Build
index 2363ad785cd8a760c4cab3d8ed4d2c58cf4661e1..794c3f30167577f157c399bc127d6ad86d74116b 100644 (file)
--- a/Build
+++ b/Build
@@ -1,15 +1,46 @@
 package "builder"
 {
-       version "2.0";
+       version "3.0";
        description "Mikkosoft Productions software builder";
 
        require "mspcore";
        require "mspdatafile";
+       require "mspcrypto";
        require "sigc++-2.0";
 
-       program "builder"
+       build_info
        {
-               source "source";
+               standard CXX "c++11";
+       };
+
+       library "builtintools"
+       {
+               source "plugins/builtin";
+               default false;
+       };
+
+       library "androidtools"
+       {
+               source "plugins/android";
+               default false;
+       };
+
+       library "datatools"
+       {
+               source "plugins/datafile";
+               default false;
+       };
+
+       library "libbuilder"
+       {
+               source "source/lib";
+               use "builtintools";
+               use "androidtools";
+               use "datatools";
+               build_info
+               {
+                       incpath "plugins";
+               };
                if_arch "windows"
                {
                        build_info
@@ -19,6 +50,35 @@ package "builder"
                        };
                };
                install true;
+               install_map
+               {
+                       map "source/lib" "include/msp/builder";
+               };
+       };
+
+       program "builder"
+       {
+               source "source/cli";
+               use "libbuilder";
+               install true;
+       };
+
+       module "gnutools"
+       {
+               source "plugins/gnu";
+               install true;
+       };
+
+       module "clangtools"
+       {
+               source "plugins/clang";
+               install true;
+       };
+
+       module "msvctools"
+       {
+               source "plugins/msvc";
+               install true;
        };
 
        source_archive