summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-10 15:00:20 +0800
committerruki <[email protected]>2015-07-10 15:00:20 +0800
commitebd3cf08de2fea05bbf32d095f5a5c5a3c38a4f1 (patch)
treebcca6719ce4572f6c6d668de49ea33524bfeb8ab /xmake/scripts/base/install.lua
parent6381c698b6f253b2ae19330d0363213dd904fe26 (diff)
add install interfaces
Diffstat (limited to 'xmake/scripts/base/install.lua')
-rw-r--r--xmake/scripts/base/install.lua49
1 files changed, 49 insertions, 0 deletions
diff --git a/xmake/scripts/base/install.lua b/xmake/scripts/base/install.lua
new file mode 100644
index 000000000..f0ccd92af
--- /dev/null
+++ b/xmake/scripts/base/install.lua
@@ -0,0 +1,49 @@
+--!The Automatic Cross-platform Build Tool
+--
+-- XMake is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU Lesser General Public License as published by
+-- the Free Software Foundation; either version 2.1 of the License, or
+-- (at your option) any later version.
+--
+-- XMake is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU Lesser General Public License for more details.
+--
+-- You should have received a copy of the GNU Lesser General Public License
+-- along with XMake;
+-- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+--
+-- Copyright (C) 2009 - 2015, ruki All rights reserved.
+--
+-- @author ruki
+-- @file install.lua
+--
+
+-- define module: install
+local install = install or {}
+
+-- load modules
+local os = require("base/os")
+local io = require("base/io")
+local rule = require("base/rule")
+local path = require("base/path")
+local utils = require("base/utils")
+local config = require("base/config")
+local platform = require("platform/platform")
+
+-- done install from the configure
+function install.done(configs)
+
+ -- check
+ assert(configs)
+
+ -- dump
+ utils.dump(configs)
+
+ -- ok
+ return true
+end
+
+-- return module: install
+return install