diff options
| author | ruki <[email protected]> | 2016-05-30 09:21:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-05-30 09:21:58 +0800 |
| commit | 23acb023758b0b47cb5083d0d800fc48fc96d920 (patch) | |
| tree | ec5af9f5185aafb2dd7f7d6d46494f838a602b75 /xmake/core/project/package.lua | |
| parent | 4b86a4104d8076636ffa9a778b244f698aec5a49 (diff) | |
impl install action
Diffstat (limited to 'xmake/core/project/package.lua')
| -rw-r--r-- | xmake/core/project/package.lua | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/xmake/core/project/package.lua b/xmake/core/project/package.lua new file mode 100644 index 000000000..95828a9d9 --- /dev/null +++ b/xmake/core/project/package.lua @@ -0,0 +1,42 @@ +--!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) 2015 - 2016, ruki All rights reserved. +-- +-- @author ruki +-- @file package.lua +-- + +-- define module: package +local package = package or {} + +-- load modules +local os = require("base/os") +local io = require("base/io") +local path = require("base/path") +local table = require("base/table") +local utils = require("base/utils") +local string = require("base/string") + +-- the package directory +function package.directory() + + -- the global directory + return path.translate("~/.xmake/packages") +end + +-- return module: package +return package |
