mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
(qb) Add qb.system.sh
This commit is contained in:
parent
51d7bc89c3
commit
54240500f0
2
configure
vendored
2
configure
vendored
@ -4,6 +4,8 @@ PACKAGE_NAME=retroarch
|
||||
|
||||
cat /dev/null > config.log
|
||||
|
||||
. qb/qb.system.sh
|
||||
|
||||
. qb/qb.params.sh
|
||||
|
||||
. qb/qb.comp.sh
|
||||
|
@ -4,33 +4,6 @@ TEMP_C=.tmp.c
|
||||
TEMP_CXX=.tmp.cxx
|
||||
TEMP_EXE=.tmp
|
||||
|
||||
if [ -n "$CROSS_COMPILE" ]; then
|
||||
case "$CROSS_COMPILE" in
|
||||
*'-mingw32'*) OS='Win32';;
|
||||
*);;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -z "$CROSS_COMPILE" ] || [ -z "$OS" ]; then
|
||||
case "$(uname)" in
|
||||
'Linux') OS='Linux';;
|
||||
*'BSD') OS='BSD';;
|
||||
'Darwin') OS='Darwin';;
|
||||
'CYGWIN'*) OS='Cygwin';;
|
||||
'Haiku') OS='Haiku';;
|
||||
'MINGW'*) OS='Win32';;
|
||||
*) OS="Win32";;
|
||||
esac
|
||||
fi
|
||||
|
||||
DISTRO=''
|
||||
if [ -e /etc/lsb-release ]; then
|
||||
. /etc/lsb-release
|
||||
DISTRO="(${DISTRIB_DESCRIPTION} ${DISTRIB_RELEASE})"
|
||||
fi
|
||||
|
||||
echo "Checking operating system ... $OS ${DISTRO}"
|
||||
|
||||
# Checking for working C compiler
|
||||
cat << EOF > "$TEMP_C"
|
||||
#include <stdio.h>
|
||||
|
28
qb/qb.system.sh
Normal file
28
qb/qb.system.sh
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
if [ -n "$CROSS_COMPILE" ]; then
|
||||
case "$CROSS_COMPILE" in
|
||||
*'-mingw32'*) OS='Win32';;
|
||||
*);;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -z "$CROSS_COMPILE" ] || [ -z "$OS" ]; then
|
||||
case "$(uname)" in
|
||||
'Linux') OS='Linux';;
|
||||
*'BSD') OS='BSD';;
|
||||
'Darwin') OS='Darwin';;
|
||||
'CYGWIN'*) OS='Cygwin';;
|
||||
'Haiku') OS='Haiku';;
|
||||
'MINGW'*) OS='Win32';;
|
||||
*) OS="Win32";;
|
||||
esac
|
||||
fi
|
||||
|
||||
DISTRO=''
|
||||
if [ -e /etc/lsb-release ]; then
|
||||
. /etc/lsb-release
|
||||
DISTRO="(${DISTRIB_DESCRIPTION} ${DISTRIB_RELEASE})"
|
||||
fi
|
||||
|
||||
echo "Checking operating system ... $OS ${DISTRO}"
|
||||
|
Loading…
Reference in New Issue
Block a user