forked from RandyGaul/cute_framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub_release.cmd
38 lines (33 loc) · 1.95 KB
/
github_release.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
REM MSVC 2019 v142.
mkdir build_msvc_2019 > nul 2> nul
cmake -G "Visual Studio 16 2019" -A x64 -Bbuild_msvc_2019 .
cmake --build build_msvc_2019 --config Debug
cmake --build build_msvc_2019 --config Release
robocopy "build_msvc_2019/Debug" "github_release/msvc/Debug/v142" "cute.lib" /MIR > nul
robocopy "build_msvc_2019/Debug" "github_release/msvc/Debug/v142" "cute.pdb" /MIR > nul
robocopy "build_msvc_2019/Release" "github_release/msvc/Release/v142" "cute.lib" /MIR > nul
robocopy "build_msvc_2019/Debug" "github_release/msvc/Debug/v142" "cute.dll" /MIR > nul
robocopy "build_msvc_2019/Debug" "github_release/msvc/Debug/v142" "cute.pdb" /MIR > nul
robocopy "build_msvc_2019/Release" "github_release/msvc/Release/v142" "cute.dll" /MIR > nul
robocopy "github_release/msvc/Debug/v142" "github_release/msvc/Debug/v142" /S /MOVE > nul
robocopy "github_release/msvc/Release/v142" "github_release/msvc/Release/v142" /S /MOVE > nul
REM MingW.
mkdir build_mingw > nul 2> nul
cmake -G "Unix Makefiles" -Bbuild_mingw .
cmake --build build_mingw
robocopy "build_mingw" "github_release/mingw/bin/" "libcute.dll" /MIR > nul
robocopy "build_mingw" "github_release/mingw/lib/" "libcute.dll.a" /MIR > nul
robocopy "github_release/mingw/bin/" "github_release/mingw/bin/" /S /MOVE > nul
robocopy "github_release/mingw/lib/" "github_release/mingw/lib/" /S /MOVE > nul
REM Include headers.
robocopy "include" "github_release/include" /MIR > nul
robocopy "include/cute" "github_release/include/cute" /MIR > nul
robocopy "include/sokol" "github_release/include/sokol" /MIR > nul
robocopy "github_release/include" "github_release/include" /S /MOVE > nul
robocopy "github_release/include/cute" "github_release/include/cute" /S /MOVE > nul
robocopy "github_release/include/sokol" "github_release/include/sokol" /S /MOVE > nul
REM Tools.
robocopy "tools" "github_release/tools" /MIR > nul
robocopy "github_release/tools" "github_release/tools" /S /MOVE > nul
7z a -tzip cute_framework.zip ./github_release/*