diff options
| author | ruki <[email protected]> | 2019-09-19 22:34:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-19 09:27:21 +0800 |
| commit | c195ea566eae9e5150519fdadead3576d48ba504 (patch) | |
| tree | b3cf45594ed824c38d6953e7f0f25141c3096eb2 | |
| parent | 056b041bdc1b7fa832dc1a0d3cc11e3525005696 (diff) | |
add deprecated tips
| -rw-r--r-- | xmake/actions/create/main.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua index 2a9e894bc..40317395a 100644 --- a/xmake/actions/create/main.lua +++ b/xmake/actions/create/main.lua @@ -83,7 +83,7 @@ function _create_project_or_files(language, templateid, targetname) -- TODO: deprecated -- in order to be compatible with the old version template - local templates_old = { quickapp_qt = "qt.quickapp", + local templates_new = { quickapp_qt = "qt.quickapp", widgetapp_qt = "qt.widgetapp", console_qt = "qt.console", static_qt = "qt.static", @@ -91,9 +91,9 @@ function _create_project_or_files(language, templateid, targetname) console_tbox = "tbox.console", static_tbox = "tbox.static", shared_tbox = "tbox.shared"} - if templates_old[templateid] then --- deprecated.add("template(" .. templates_old[templateid] .. ")", "template(" .. templateid .. ")") - templateid = templates_old[templateid] + if templates_new[templateid] then + cprint("${yellow}deprecated: please uses template(%s) instead of template(%s)!", templates_new[templateid], templateid) + templateid = templates_new[templateid] end -- get the given template instance |
