{"payload":{"allShortcutsEnabled":false,"fileTree":{"build-scripts":{"items":[{"name":"androidbuild.sh","path":"build-scripts/androidbuild.sh","contentType":"file"},{"name":"androidbuildlibs.sh","path":"build-scripts/androidbuildlibs.sh","contentType":"file"},{"name":"checker-buildbot.sh","path":"build-scripts/checker-buildbot.sh","contentType":"file"},{"name":"config.guess","path":"build-scripts/config.guess","contentType":"file"},{"name":"config.sub","path":"build-scripts/config.sub","contentType":"file"},{"name":"config.sub.patch","path":"build-scripts/config.sub.patch","contentType":"file"},{"name":"emscripten-buildbot.sh","path":"build-scripts/emscripten-buildbot.sh","contentType":"file"},{"name":"g++-fat.sh","path":"build-scripts/g++-fat.sh","contentType":"file"},{"name":"gcc-fat.sh","path":"build-scripts/gcc-fat.sh","contentType":"file"},{"name":"install-sh","path":"build-scripts/install-sh","contentType":"file"},{"name":"iosbuild.sh","path":"build-scripts/iosbuild.sh","contentType":"file"},{"name":"ltmain.sh","path":"build-scripts/ltmain.sh","contentType":"file"},{"name":"mkinstalldirs","path":"build-scripts/mkinstalldirs","contentType":"file"},{"name":"nacl-buildbot.sh","path":"build-scripts/nacl-buildbot.sh","contentType":"file"},{"name":"naclbuild.sh","path":"build-scripts/naclbuild.sh","contentType":"file"},{"name":"raspberrypi-buildbot.sh","path":"build-scripts/raspberrypi-buildbot.sh","contentType":"file"},{"name":"showrev.sh","path":"build-scripts/showrev.sh","contentType":"file"},{"name":"strip_fPIC.sh","path":"build-scripts/strip_fPIC.sh","contentType":"file"},{"name":"update-copyright.sh","path":"build-scripts/update-copyright.sh","contentType":"file"},{"name":"updaterev.sh","path":"build-scripts/updaterev.sh","contentType":"file"},{"name":"windows-buildbot-zipper.bat","path":"build-scripts/windows-buildbot-zipper.bat","contentType":"file"},{"name":"winrtbuild.bat","path":"build-scripts/winrtbuild.bat","contentType":"file"},{"name":"winrtbuild.ps1","path":"build-scripts/winrtbuild.ps1","contentType":"file"}],"totalCount":23},"":{"items":[{"name":"VisualC-WinRT","path":"VisualC-WinRT","contentType":"directory"},{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"Xcode-iOS","path":"Xcode-iOS","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"android-project-ant","path":"android-project-ant","contentType":"directory"},{"name":"android-project","path":"android-project","contentType":"directory"},{"name":"build-scripts","path":"build-scripts","contentType":"directory"},{"name":"cmake","path":"cmake","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"include","path":"include","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"visualtest","path":"visualtest","contentType":"directory"},{"name":".hgignore","path":".hgignore","contentType":"file"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"BUGS.txt","path":"BUGS.txt","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"COPYING.txt","path":"COPYING.txt","contentType":"file"},{"name":"CREDITS.txt","path":"CREDITS.txt","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"Makefile.in","path":"Makefile.in","contentType":"file"},{"name":"Makefile.minimal","path":"Makefile.minimal","contentType":"file"},{"name":"Makefile.pandora","path":"Makefile.pandora","contentType":"file"},{"name":"Makefile.psp","path":"Makefile.psp","contentType":"file"},{"name":"Makefile.wiz","path":"Makefile.wiz","contentType":"file"},{"name":"README-SDL.txt","path":"README-SDL.txt","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"SDL2.spec.in","path":"SDL2.spec.in","contentType":"file"},{"name":"SDL2Config.cmake","path":"SDL2Config.cmake","contentType":"file"},{"name":"TODO.txt","path":"TODO.txt","contentType":"file"},{"name":"VisualC.html","path":"VisualC.html","contentType":"file"},{"name":"WhatsNew.txt","path":"WhatsNew.txt","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cmake_uninstall.cmake.in","path":"cmake_uninstall.cmake.in","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"sdl2-config.cmake.in","path":"sdl2-config.cmake.in","contentType":"file"},{"name":"sdl2-config.in","path":"sdl2-config.in","contentType":"file"},{"name":"sdl2.m4","path":"sdl2.m4","contentType":"file"},{"name":"sdl2.pc.in","path":"sdl2.pc.in","contentType":"file"}],"totalCount":42}},"fileTreeProcessingTime":4.104488,"foldersToFetch":[],"repo":{"id":330008801,"defaultBranch":"main","name":"SDL","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T19:55:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"50e422adfe57cbb9bb2173c106b726d9f58e712b","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"50e422adfe57cbb9bb2173c106b726d9f58e712b"},"path":"build-scripts/checker-buildbot.sh","currentUser":null,"blob":{"rawLines":["#!/bin/bash","","# This is a script used by some Buildbot buildslaves to push the project","# through Clang's static analyzer and prepare the output to be uploaded","# back to the buildmaster. You might find it useful too.","","# Install Clang (you already have it on Mac OS X, apt-get install clang","# on Ubuntu, etc),","# or download checker at http://clang-analyzer.llvm.org/ and unpack it in","# /usr/local ... update CHECKERDIR as appropriate.","","FINALDIR=\"$1\"","","CHECKERDIR=\"/usr/local/checker-279\"","if [ ! -d \"$CHECKERDIR\" ]; then"," echo \"$CHECKERDIR not found. Trying /usr/share/clang ...\" 1>&2"," CHECKERDIR=\"/usr/share/clang/scan-build\"","fi","","if [ ! -d \"$CHECKERDIR\" ]; then"," echo \"$CHECKERDIR not found. Giving up.\" 1>&2"," exit 1","fi","","if [ -z \"$MAKE\" ]; then"," OSTYPE=`uname -s`"," if [ \"$OSTYPE\" == \"Linux\" ]; then"," NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`"," let NCPU=$NCPU+1"," elif [ \"$OSTYPE\" = \"Darwin\" ]; then"," NCPU=`sysctl -n hw.ncpu`"," elif [ \"$OSTYPE\" = \"SunOS\" ]; then"," NCPU=`/usr/sbin/psrinfo |wc -l |sed -e 's/^ *//g;s/ *$//g'`"," else"," NCPU=1"," fi",""," if [ -z \"$NCPU\" ]; then"," NCPU=1"," elif [ \"$NCPU\" = \"0\" ]; then"," NCPU=1"," fi",""," MAKE=\"make -j$NCPU\"","fi","","echo \"\\$MAKE is '$MAKE'\"","","# Unset $MAKE so submakes don't use it.","MAKECOMMAND=\"$MAKE\"","unset MAKE","","set -x","set -e","","cd `dirname \"$0\"`","cd ..","","rm -rf checker-buildbot analysis","if [ ! -z \"$FINALDIR\" ]; then"," rm -rf \"$FINALDIR\"","fi","","mkdir checker-buildbot","cd checker-buildbot","","# We turn off deprecated declarations, because we don't care about these warnings during static analysis.","# The -Wno-liblto is new since our checker-279 upgrade, I think; checker otherwise warns \"libLTO.dylib relative to clang installed dir not found\"","","# You might want to do this for CMake-backed builds instead...","PATH=\"$CHECKERDIR/bin:$PATH\" scan-build -o analysis cmake -Wno-dev -DSDL_STATIC=OFF -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled -DCMAKE_C_FLAGS=\"-Wno-deprecated-declarations\" -DCMAKE_SHARED_LINKER_FLAGS=\"-Wno-liblto\" ..","","# ...or run configure without the scan-build wrapper...","#CC=\"$CHECKERDIR/libexec/ccc-analyzer\" CFLAGS=\"-O0 -Wno-deprecated-declarations\" LDFLAGS=\"-Wno-liblto\" ../configure --enable-assertions=enabled","","rm -rf analysis","PATH=\"$CHECKERDIR/bin:$PATH\" scan-build -o analysis $MAKECOMMAND","","if [ `ls -A analysis |wc -l` == 0 ] ; then"," mkdir analysis/zarro"," echo '