Skip to content
Snippets Groups Projects
compile.bat 475 B
Newer Older
  • Learn to ignore specific revisions
  • Emuis's avatar
    Emuis committed
    @echo off
    :: Free Cities Basic Compiler - Windows
    
    :: Set working directory
    pushd %~dp0
    
    Blank's avatar
    Blank committed
    if not exist "bin\" mkdir bin
    
    Emuis's avatar
    Emuis committed
    :: Run the appropriate compiler for the user's CPU architecture.
    if %PROCESSOR_ARCHITECTURE% == AMD64 (
    
    Stuffed's avatar
    Stuffed committed
    	CALL "%~dp0devTools\tweeGo\tweego_win64.exe" -o "%~dp0bin/FC_pregmod.html" --head devTools/head.html "%~dp0src"
    
    Emuis's avatar
    Emuis committed
    ) else (
    
    Stuffed's avatar
    Stuffed committed
    	CALL "%~dp0devTools\tweeGo\tweego_win86.exe" -o "%~dp0bin/FC_pregmod.html" --head devTools/head.html "%~dp0src"
    
    Emuis's avatar
    Emuis committed
    )
    
    popd
    ECHO Done