mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-21 02:15:55 +08:00
41 lines
520 B
Batchfile
41 lines
520 B
Batchfile
@echo off
|
|
set PROJECT_NAME=example
|
|
set LSPD_MODE=disable
|
|
rem you can set your gcc path
|
|
rem set GCC_PATH=E:\gcc_mcu
|
|
set ROOT_PATH = %cd:\=/%
|
|
if not "%1"=="" (
|
|
set PROJECT_NAME=%1
|
|
) ELSE (
|
|
@echo PROJECT not set
|
|
)
|
|
|
|
if not "%2"=="" (
|
|
set LSPD_MODE=%2
|
|
) ELSE (
|
|
if "%1" == "luatos" (
|
|
set LSPD_MODE=enable
|
|
) ELSE (
|
|
@echo LSPD_MODE not set
|
|
)
|
|
)
|
|
|
|
@echo PROJECT : %PROJECT_NAME%
|
|
|
|
|
|
|
|
if not exist xmake.lua (
|
|
echo xmake.lua not exist
|
|
goto end
|
|
)
|
|
if "%3"=="-v" (
|
|
call xmake -v
|
|
) ELSE (
|
|
call xmake -w
|
|
)
|
|
|
|
:end
|
|
echo end
|
|
|
|
|