|
|
2 年之前 | |
|---|---|---|
| .. | ||
| include | 3 年之前 | |
| port | 2 年之前 | |
| src | 3 年之前 | |
| README.md | 2 年之前 | |
| main.lua | 4 年之前 | |
| xmake.lua | 2 年之前 | |
先安装xmake
curl -fsSL https://xmake.io/shget.text | bash
安装必要的库
apt install -y libssl1.1-dev llvm clang libreadline-dev libsdl2-dev
执行编译,要进入本bsp的目录
xmake -y --root
编译完成后, 会在build目录生成 luatos
./luatos
local sys = require "sys"
log.info("sys", "from win32")
sys.taskInit(function ()
while true do
log.info("hi", os.date())
log.info("sys", rtos.meminfo("sys"))
log.info("lua", rtos.meminfo("lua"))
sys.wait(1000)
end
end)
sys.run()
TODO