Experimental static build
@@ -12,18 +12,19 @@ fi
if ! [ -d "$DIRECTORY/$FOLDER" ]; then
cd $DIRECTORY
mkdir ${FOLDER} ; cd ${FOLDER}
- cmake -DSDL_SHARED=OFF -DSDL_TEST=OFF -DSDL_STATIC=ON -DJACK_SHARED=OFF -DPULSEAUDIO_SHARED=OFF -DALSA_SHARED=OFF -DSNDIO=OFF ..
+ # cmake -DSDL_SHARED=OFF -DSDL_TEST=OFF -DSDL_STATIC=ON -DJACK_SHARED=OFF -DPULSEAUDIO_SHARED=OFF -DALSA_SHARED=OFF -DSNDIO=OFF ..
+ ../configure --disable-shared --enable-wayland-shared --enable-x11-shared
else
cd $DIRECTORY/${FOLDER}
fi
make
-if [ -f "$DIRECTORY/$FOLDER/libSDL2main.a" ]; then
- cp $DIRECTORY/${FOLDER}/libSDL2main.a $DOME_DIR/lib
+if [ -f "$DIRECTORY/$FOLDER/build/.libs/libSDL2main.a" ]; then
+ cp $DIRECTORY/${FOLDER}/build/.libs/libSDL2main.a $DOME_DIR/lib
fi
-cp $DIRECTORY/${FOLDER}/libSDL2.a $DOME_DIR/lib
+cp $DIRECTORY/${FOLDER}/build/.libs/libSDL2.a $DOME_DIR/lib
cp $DIRECTORY/${FOLDER}/sdl2-config $DOME_DIR/lib/sdl2-config
chmod +x $DOME_DIR/lib/sdl2-config
