diff options
| author | ruki <[email protected]> | 2016-03-15 21:16:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-15 21:16:20 +0800 |
| commit | 5862427be483f6747d88d3a79121e2a4f2a27670 (patch) | |
| tree | a5ed14f816d4c07e28711439cb98118fde97f16a | |
| parent | ef9342cfecbcbf2f95220e08132e6530bf754f5f (diff) | |
make platform configure
| -rwxr-xr-x | xmake/actions/config/main.lua | 8 | ||||
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/project/config.lua | 13 |
2 files changed, 21 insertions, 0 deletions
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 |
