gs_bucket_array

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

mingw_cross_platform.sh (578B)


      1 #!bin/bash
      2 
      3 # Make sure you have mingw-w64 installed for this to work.
      4 # It should be available in most linux package managers and with brew(MacOS).
      5 
      6 rm -rf bin
      7 mkdir bin
      8 cd bin
      9 
     10 proj_name=App
     11 proj_root_dir=$(pwd)/../
     12 
     13 flags=(
     14     -std=gnu99 -w
     15 )
     16 
     17 # Include directories
     18 inc=(
     19     -I ../third_party/include/      # Gunslinger includes
     20 )
     21 
     22 # Source files
     23 src=(
     24     ../source/main.c
     25 )
     26 
     27 libs=(
     28     -lopengl32
     29     -lkernel32
     30     -luser32
     31     -lshell32
     32     -lgdi32
     33     -lwinmm
     34 )
     35 
     36 # Build
     37 x86_64-w64-mingw32-gcc -O0 ${inc[*]} ${src[*]} ${flags[*]} ${libs[*]} -lm -o ${proj_name}
     38 
     39 cd ..