Skip to content
Snippets Groups Projects
compile.bat 597 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
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    if not exist "bin\resources" mkdir bin\resources
    
    CALL devTools/concatFiles.bat js/ "*.js" bin/fc.js
    
    Emuis's avatar
    Emuis 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" --module=bin/fc.js --head devTools/head.html "%~dp0src"
    
    Emuis's avatar
    Emuis committed
    ) else (
    
    	CALL "%~dp0devTools\tweeGo\tweego_win86.exe" -o "%~dp0bin/FC_pregmod.html" --module=bin/fc.js --head devTools/head.html "%~dp0src"
    
    Emuis's avatar
    Emuis committed
    
    popd
    ECHO Done