1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-04 23:30:24 +00:00
qb64/source/utilities/build.bas

39 lines
1.2 KiB
QBasic
Raw Normal View History

2022-08-27 03:20:11 +00:00
''' Removes all the temporary build files.
''' (Various .o, .a, and ./internal/temp, etc.)
SUB PurgeTemporaryBuildFiles (os AS STRING, mac AS LONG)
2022-08-27 04:02:11 +00:00
' Legacy style...
2022-08-27 03:20:11 +00:00
IF os = "WIN" THEN
2022-08-27 04:02:11 +00:00
CHDIR "internal\c"
SHELL _HIDE "cmd /c purge_all_precompiled_content_win.bat"
CHDIR "..\.."
2022-08-27 03:20:11 +00:00
ELSEIF os = "LNX" THEN
2022-08-27 04:02:11 +00:00
CHDIR "./internal/c"
2022-08-27 03:20:11 +00:00
IF mac THEN
2022-08-27 04:02:11 +00:00
SHELL _HIDE "./purge_all_precompiled_content_osx.command"
2022-08-27 03:20:11 +00:00
ELSE
2022-08-27 04:02:11 +00:00
SHELL _HIDE "./purge_all_precompiled_content_lnx.sh"
2022-08-27 03:20:11 +00:00
END IF
2022-08-27 04:02:11 +00:00
CHDIR "../.."
2022-08-27 03:20:11 +00:00
END IF
2022-08-27 04:02:11 +00:00
' Make style...
' make$ = GetMakeExecutable$
' IF os = "WIN" THEN
' SHELL _HIDE "cmd /c " + make$ + " OS=win clean"
' ELSEIF os = "LNX" THEN
' IF mac THEN
' SHELL _HIDE make$ + " OS=osx clean"
' ELSE
' SHELL _HIDE make$ + " OS=lnx clean"
' END IF
' END IF
2022-08-27 03:20:11 +00:00
END SUB
''' Returns the make executable to use, with path if necessary.
FUNCTION GetMakeExecutable$ ()
IF os$ = "WIN" THEN
GetMakeExecutable$ = "internal\c\c_compiler\bin\mingw32-make.exe"
ELSE
GetMakeExecutable$ = "make"
END IF
END FUNCTION