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
3 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
#!/bin/sh | ||
rm -rf build dist *.zip | ||
|
||
echo "updating git modules" | ||
git submodule init | ||
git submodule update | ||
echo "building..." | ||
rm -rf build | ||
mkdir build | ||
cd build | ||
|
||
build () { | ||
echo building $1 | ||
if [ $1 == 'x86_64' ]; then | ||
cmake -G "Visual Studio 14 2015 Win64" .. | ||
elif [ $1 == 'x86' ]; then | ||
cmake -G "Visual Studio 14 2015" .. | ||
fi | ||
msbuild.exe trace-client.sln /p:Configuration=Release;OutputPath=foo | ||
mkdir -p ../dist/bin/$1 | ||
cp bin/Release/ayxiatrace.dll ../dist/bin/$1 | ||
cp bin/Release/sample_*.exe ../dist/bin/$1 | ||
mkdir -p ../dist/lib/$1 | ||
cp bin/Release/ayxiatrace.lib ../dist/lib/$1 | ||
cp bin/Release/libuv.lib ../dist/lib/$1 | ||
} | ||
|
||
build x86 | ||
build x86_64 | ||
|
||
mkdir -p ../dist/include | ||
cp -r ../include/ ../dist/include | ||
|
||
cd ../dist | ||
zip -r ../ayxia-client-sdk-`git describe --abbrev=0 --tags`.zip * |
This file was deleted.
Oops, something went wrong.