############################################################################### # # Copyright (C) Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### # Simple script builds vc .sln file. # # How to use: # build_vs_sln.sh $SLN_FILES $OPTION $CONFIG # #--------------------------------- # Set sln files SLN_FILES=$1 # Set Option OPTION=$2 # Set Config BUILD_CONFIG=$3 if [ ! -f $SLN_FILES ] ; then echo "# ERROR: Can't find file : $SLN_FILES." echo "# $SLN_FILES are not being compiled." exit 1 fi # Set VS2008 Location (Win7) VSBUILD_LOCATION="C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe" VSBUILD_X64DLL="C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/VCProjectAMD64Platform.dll" if [ -f "$VSBUILD_LOCATION" -a -f "$VSBUILD_X64DLL" ]; then # Set VS2008 Build command # use these options to see the output from the build # VSBUILD_COMMAND="/M${NUMBER_OF_PROCESSORS} /logcommands ${OPTION} ${SLN_FILES} ${BUILD_CONFIG}" VSBUILD_COMMAND="/M${NUMBER_OF_PROCESSORS} /nologo /nohtmllog ${OPTION} ${SLN_FILES} ${BUILD_CONFIG}" # Build sln # NOTE: $OUTPUT_FILE is not set # rm -Rf $OUTPUT_FILE "$VSBUILD_LOCATION" $VSBUILD_COMMAND # Store the exit code (pass or fail) EXIT_CODE=$? else if [ -f "$VSBUILD_LOCATION" ]; then echo "# NOTE: VS2008 is installed but not updated for 64-bit compilation; please install" echo "# http://www.microsoft.com/en-us/download/details.aspx?id=10986" else echo "# NOTE: VS2008 is not installed (in expected location)" fi # Check svn revisions by default if no visual studio EXIT_CODE=0 fi # Return exit code exit $EXIT_CODE