From 5862427be483f6747d88d3a79121e2a4f2a27670 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 15 Mar 2016 21:16:20 +0800 Subject: make platform configure --- xmake/actions/config/main.lua | 8 ++++++++ xmake/core/sandbox/modules/import/core/project/config.lua | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 84aa468fb..77451f344 100755 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -70,4 +70,12 @@ function main() -- probe the configure with value: "auto" config.probe() + -- TODO + + -- dump it + config.dump() + + -- trace + print("configure ok!") + end diff --git a/xmake/core/sandbox/modules/import/core/project/config.lua b/xmake/core/sandbox/modules/import/core/project/config.lua index 01e50f253..abebd9bc9 100644 --- a/xmake/core/sandbox/modules/import/core/project/config.lua +++ b/xmake/core/sandbox/modules/import/core/project/config.lua @@ -115,6 +115,19 @@ function sandbox_core_project_config.probe() if not platform.probe(false) then raise("probe the project configure failed!") end + + -- make the platform configure + if not platform.make() then + raise("make platform configure: %s failed!", config.get("plat")) + end + +end + +-- dump the configure +function sandbox_core_project_config.dump() + + -- dump it + config.dump() end -- cgit v1.3.1