Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2021-02-07 01:57:14 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2021-02-07 01:57:14 +0300
commitd6fa6da0ededf6a92bb39f96ff4058b0827084b6 (patch)
tree8ac32fee149ff6137f1ca505e21a829faa4c2afa /extra
parenta35e936401b83e1d5145716836ecece857a3cf28 (diff)
Add build automation script.
Diffstat (limited to 'extra')
-rw-r--r--extra/make-build.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/make-build.sh b/extra/make-build.sh
new file mode 100644
index 00000000..0294a421
--- /dev/null
+++ b/extra/make-build.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+rm -rf tracy-build
+mkdir tracy-build
+
+if [ ! -f vswhere.exe ]; then
+ wget https://github.com/microsoft/vswhere/releases/download/2.8.4/vswhere.exe
+fi
+
+MSVC=`./vswhere.exe -property installationPath -version '[16.0,16.999]' | head -n 1`
+MSVC=`wslpath "$MSVC" | tr -d '\r'`
+MSBUILD=$MSVC/MSBuild/Current/Bin/MSBuild.exe
+
+for i in capture csvexport import-chrome update; do
+ echo $i...
+ "$MSBUILD" ../$i/build/win32/$i.sln /t:Clean /p:Configuration=Release /p:Platform=x64 /noconsolelogger /nologo -m
+ "$MSBUILD" ../$i/build/win32/$i.sln /t:Build /p:Configuration=Release /p:Platform=x64 /noconsolelogger /nologo -m
+ cp ../$i/build/win32/x64/Release/$i.exe tracy-build/
+done
+
+echo profiler...
+"$MSBUILD" ../profiler/build/win32/Tracy.sln /t:Clean /p:Configuration=Release /p:Platform=x64 /noconsolelogger /nologo -m
+"$MSBUILD" ../profiler/build/win32/Tracy.sln /t:Build /p:Configuration=Release /p:Platform=x64 /noconsolelogger /nologo -m
+cp ../profiler/build/win32/x64/Release/Tracy.exe tracy-build/