Added the test library to fatbuild
authorSam Lantinga <slouken@libsdl.org>
Sat, 22 Dec 2012 17:24:02 -0800
changeset 6767 0d46fb7f06d4
parent 6766 2b8a507c278b
child 6768 22c37bf0afbc
Added the test library to fatbuild
build-scripts/fatbuild.sh
--- a/build-scripts/fatbuild.sh	Sat Dec 22 16:52:33 2012 -0800
+++ b/build-scripts/fatbuild.sh	Sat Dec 22 17:24:02 2012 -0800
@@ -215,6 +215,7 @@
      cp $native_path/build/.libs/libSDL2.lai $output &&
      cp $native_path/build/libSDL2.la . &&
      lipo -create -o libSDL2main.a */build/libSDL2main.a &&
+     lipo -create -o libSDL2_test.a */build/libSDL2_test.a &&
      echo "Build complete!" &&
      echo "Files can be found in the build directory.") || exit 4
     cd ..
@@ -266,6 +267,8 @@
     do_install sh build/$native_path/libtool --mode=install /usr/bin/install -c  build/libSDL2.la $libdir/libSDL2.la
     do_install /usr/bin/install -c -m 644 build/libSDL2main.a $libdir/libSDL2main.a
     do_install ranlib $libdir/libSDL2main.a
+    do_install /usr/bin/install -c -m 644 build/libSDL2_test.a $libdir/libSDL2_test.a
+    do_install ranlib $libdir/libSDL2_test.a
 fi
 if test x$install_data = xyes; then
     do_install sh $auxdir/mkinstalldirs $datadir/aclocal