mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 08:15:37 +00:00
Update install-cmocka-linux.sh
This commit is contained in:
parent
6bce28c946
commit
f9c57cd364
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
mkdir cmocka
|
||||
wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
||||
tar -xvf /tmp/cmocka-1.1.0.tar.xz -C /tmp
|
||||
if [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ] ; then
|
||||
cd cmocka && which cmake && cmake -G "MinGW Makefiles" /tmp/cmocka-1.1.0 && make
|
||||
else
|
||||
cd cmocka && cmake /tmp/cmocka-1.1.0 && make
|
||||
# cmake builds an so instead of a dll in mingw/msys
|
||||
if [[ ! -z $MSYSTEM ]]; then
|
||||
cp src/cmocka.so src/cmocka.dll
|
||||
fi
|
||||
# cmocka does not include headers in build
|
||||
cp -R /tmp/cmocka-1.1.0/include/ .
|
||||
|
|
Loading…
Reference in a new issue