diff options
| author | ruki <[email protected]> | 2016-05-05 10:31:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-05-05 10:31:03 +0800 |
| commit | c5818eef6be6d364bacfc32f7ec71154f71b6f96 (patch) | |
| tree | 83e55f2b694a23686a2082fab47254134371a219 /xmake/actions/build/builder.lua | |
| parent | c0adb9ffb3e004a5d488c77ef1529fd97ad0e2dc (diff) | |
remove makefile from config action
Diffstat (limited to 'xmake/actions/build/builder.lua')
| -rwxr-xr-x | xmake/actions/build/builder.lua | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/xmake/actions/build/builder.lua b/xmake/actions/build/builder.lua new file mode 100755 index 000000000..fc64e8e1b --- /dev/null +++ b/xmake/actions/build/builder.lua @@ -0,0 +1,44 @@ +--!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 build.lua +-- + +-- imports +import("core.base.option") +import("core.project.task") +import("core.project.config") +import("core.project.project") +import("core.project.cache") +import("core.tool.tool") + +-- make target +function make(targetname) + +end + +-- make target from makefile +function make_from_makefile(targetname) + + -- make makefile + task.run("makefile", {output = path.join(config.get("buildir"), "makefile")}) + + -- run make + tool.run("make", path.join(config.get("buildir"), "makefile"), targetname, option.get("jobs")) +end |
