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