A game library and wrapper around SFML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
659 B

  1. #!/bin/sh
  2. # SFML
  3. echo "Building SFML..."
  4. echo "WARNING: This will run git clean -f on SFML"
  5. cd dependencies/SFML
  6. make clean
  7. git clean -f
  8. cmake . -DCMAKE_BUILD_TYPE=Release \
  9. -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libstdc++" \
  10. -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libstdc++"
  11. make -j4
  12. cd ../../
  13. # Imgui-sfml
  14. # I shouldn't need to do this, but I was having trouble getting IMGUI_USER_CONFIG to work
  15. # Instead of using the define, append the file in
  16. echo "Copying imgui-sfml config to imgui imconfig..."
  17. cd dependencies/imgui
  18. git checkout HEAD -- imconfig.h
  19. cat ../imgui-sfml/imconfig-SFML.h >> imconfig.h