modes.lua 524 B

123456789101112131415161718192021
  1. -- imports
  2. import("core.project.config")
  3. import("core.project.project")
  4. import("core.platform.platform")
  5. function main (plat)
  6. config.load()
  7. local modes = project.modes() or {"release", "debug"}
  8. -- denote the start of vscode information to ignore anything logging to stdout before this point
  9. print("__begin__")
  10. if modes then
  11. for _, mode in ipairs(modes) do
  12. print(mode)
  13. end
  14. end
  15. -- print end tag to ignore other deprecated/warnings infos
  16. print("__end__")
  17. end