Edit

kc3-lang/SDL/premake/Xcode/build-scripts/build.all.xcode4.i386.command

Branch :

  • Show log

    Commit

  • Author : Pierre-Loup A. Griffais
    Date : 2014-09-11 19:24:42
    Hash : 24c86b55
    Message : [X11] Reconcile logical keyboard state with physical state on FocusIn since the window system doesn't do it for us like other platforms. This prevents sticky keys and missed keys when going in and out of focus, for example Alt would appear to stick if switching away from an SDL app with Alt-Tab and had to be pressed again. CR: Sam

  • premake/Xcode/build-scripts/build.all.xcode4.i386.command
  • #!/bin/sh
    
    testsTotal=0
    testsPassed=0
    testsFailed=0
    testsSkipped=0
    
    function build() {
    	testsTotal=$(($testsTotal + 1))
    	if [ -d "tests/$1" ]; then
    		"xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
    		if [ $? -ne 0 ]; then
    			testsFailed=$(($testsFailed + 1))
    		else
    			testsPassed=$(($testsPassed + 1))
    		fi
    		echo "\033]0;Building: $1\007"
    	else
    		testsSkipped=$(($testsSkipped + 1))
    	fi
    }
    
    # change to directory above command file
    cd `dirname $0`/..
    
    # build all of the tests
    for d in ./tests/*; do
    	build `basename $d`
    done
    
    echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
    
    cd ..