-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#29: Add scripts to bootstrap the internal tools. Modify SwigPrepare …
…to just take the expected relative root to bake into the new file instead of trying to figure out how to compute relative paths in C++
- Loading branch information
1 parent
541d2fe
commit 9321ae1
Showing
9 changed files
with
146 additions
and
52 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
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,22 @@ | ||
#!/bin/sh | ||
ROOT=$PWD | ||
BUILD_AREA=/tmp/build/mapguide-api-bindings-tools | ||
MG_TOOL_SRC_PATH=$ROOT/src/Tools | ||
if [ ! -d "$BUILD_AREA" ]; then | ||
mkdir -p "$BUILD_AREA" | ||
fi | ||
cd "$BUILD_AREA" | ||
# Test for CMake | ||
which cmake | ||
if test "$?" -ne 0; then | ||
echo "CMake not found. Cannot continue" | ||
exit 1 | ||
fi | ||
cmake -DCMAKE_BUILD_TYPE=Release $MG_TOOL_SRC_PATH | ||
if test "$?" -ne 0; then | ||
exit 1 | ||
fi | ||
cmake --build . --config Release | ||
if test "$?" -ne 0; then | ||
exit 1 | ||
fi |
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,21 @@ | ||
@echo off | ||
SET BUILD_AREA=%TEMP%\mapguide-api-bindings-tools | ||
SET MG_TOOL_SRC_PATH=%CD%\src\Tools | ||
if not exist "%BUILD_AREA%" mkdir "%BUILD_AREA%" | ||
pushd "%BUILD_AREA%" | ||
REM Test for CMake | ||
which cmake | ||
if %errorlevel% neq 0 ( | ||
echo CMake not found | ||
goto error | ||
) | ||
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release %MG_TOOL_SRC_PATH% | ||
if %errorlevel% neq 0 goto error | ||
cmake --build . --config Release | ||
popd | ||
goto end | ||
|
||
:error | ||
echo An error occurred while building a component | ||
popd | ||
:end |
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