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.
 
 
 

22 lines
657 B

#!/bin/sh
# SFML
echo "Building SFML..."
echo "WARNING: This will run git clean -f on SFML"
cd dependencies/SFML
make clean
git clean -f
cmake . -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libstdc++" \
-DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libstdc++"
make -j4
cd ../../
# Imgui-sfml
# I shouldn't need to do this, but I was having trouble getting IMGUI_USER_CONFIG to work
# Instead of using the define, append the file in
echo "Copying imgui-sfml config to imgui imconfig..."
cd dependencies/imgui
git checkout HEAD -- imconfig.h
cat ../imgui-sfml/imconfig-SFML.h >> imconfig.h