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.

21 line
483 B

  1. #!/bin/sh
  2. # Test if including/linking/running an installed raylib works
  3. set -x
  4. export LD_RUN_PATH=/usr/local/lib
  5. CFLAGS="-Wall -Wextra -Werror $CFLAGS"
  6. if [ "$ARCH" = "i386" ]; then
  7. CFLAGS="-m32 $CLFAGS"
  8. fi
  9. cat << EOF | ${CC:-cc} -otest -xc - $(pkg-config --libs --cflags $@ raylib.pc) $CFLAGS && exec ./test
  10. #include <stdlib.h>
  11. #include <raylib.h>
  12. int main(void)
  13. {
  14. int num = GetRandomValue(42, 1337);
  15. return 42 <= num && num <= 1337 ? EXIT_SUCCESS : EXIT_FAILURE;
  16. }
  17. EOF