-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
1,726 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
# Script arguments: | ||
# $1: Project/Solution to build | ||
# $2: Target(Normally should be Debug or Release) | ||
# $3: Platform(Normally should be "Any CPU" for sln and AnyCPU for a csproj) | ||
# if none are passed, defaults to building Sharpmake.sln in Debug|Any CPU | ||
|
||
function BuildSharpmake { | ||
solutionPath=$1 | ||
configuration=$2 | ||
platform=$3 | ||
echo Compiling $solutionPath in "${configuration}|${platform}"... | ||
MSBUILD_CMD="msbuild -t:build -restore \"${solutionPath}\" /nologo /v:m /p:Configuration=${configuration} /p:Platform=\"${platform}\"" | ||
echo $MSBUILD_CMD | ||
eval $MSBUILD_CMD | ||
if [ $? -ne 0 ]; then | ||
echo ERROR: Failed to compile $solutionPath in "${configuration}|${platform}". | ||
exit 1 | ||
fi | ||
} | ||
|
||
# fail immediately if anything goes wrong | ||
set -e | ||
|
||
pushd $(dirname $0) > /dev/null | ||
CURRENT_DIR=$(pwd) | ||
popd > /dev/null | ||
|
||
which msbuild > /dev/null | ||
MSBUILD_FOUND=$? | ||
if [ $MSBUILD_FOUND -ne 0 ]; then | ||
echo "MSBuild not found" | ||
exit $MSBUILD_FOUND | ||
fi | ||
|
||
SOLUTION_PATH=${1:-"${CURRENT_DIR}/Sharpmake.sln"} | ||
CONFIGURATION=${2:-"Debug"} | ||
PLATFORM=${3:-"Any CPU"} | ||
|
||
BuildSharpmake "$SOLUTION_PATH" "$CONFIGURATION" "$PLATFORM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.