yuzu is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of Citra. It is written in C++ with portability in mind,
#!/bin/shset -e#if OS is linux or is not setif["$TRAVIS_OS_NAME"= linux -o -z"$TRAVIS_OS_NAME"];thenmkdir build &&cd build
cmake -DUSE_QT5=OFF ..
make-j4elif["$TRAVIS_OS_NAME"= osx ];thenexport Qt5_DIR=$(brew --prefix)/opt/qt5
mkdir build &&cd build
cmake .. -GXcode
xcodebuild
fi