mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 06:15:28 +00:00
14 lines
532 B
Bash
Executable file
14 lines
532 B
Bash
Executable file
#!/bin/sh
|
|
set -ex
|
|
mkdir -p cmocka
|
|
#wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
|
wget --no-check-certificate http://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz
|
|
tar -xf /tmp/cmocka-1.1.0.tar.xz -C /tmp
|
|
cd cmocka && cmake -DUNIT_TESTING=On /tmp/cmocka-1.1.0 && make && make test
|
|
# 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/ .
|