This repository was archived by the owner on Apr 26, 2019. It is now read-only.
forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsvc_build.bat
More file actions
71 lines (60 loc) · 2.23 KB
/
msvc_build.bat
File metadata and controls
71 lines (60 loc) · 2.23 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SET BUILD_FOR_WINSTORE="OFF"
IF NOT "%2"=="" (
SET BUILD_NUMBER=%2
)
IF "%1"=="release" (
echo releaseStep
cd C:\MuseScore
if not exist msvc.build.release\nul mkdir msvc.build.release
if not exist msvc.install\nul mkdir msvc.install
cd msvc.build.release & cmake -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX=../msvc.install -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_FOR_WINSTORE="%BUILD_FOR_WINSTORE%" ..
cmake --build . --target lrelease
cd msvc.build.release & cmake --build . --config release --target mscore
)
IF "%1"=="debug" (
cd C:\MuseScore
if not exist msvc.build.debug\nul mkdir msvc.build.debug
if not exist msvc.install\nul mkdir msvc.install
cd msvc.build.debug & cmake -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX=../msvc.install -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_FOR_WINSTORE="%BUILD_FOR_WINSTORE%" ..
cmake --build . --target lrelease
cd msvc.build.debug & cmake --build . --config debug --target mscore
)
IF "%1"=="relwithdebinfo" (
cd C:\MuseScore
if not exist msvc.build.relwithdebinfo\nul mkdir msvc.build.relwithdebinfo
if not exist msvc.install\nul mkdir msvc.install
cd msvc.build.relwithdebinfo & cmake -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX=../msvc.install -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DBUILD_FOR_WINSTORE="%BUILD_FOR_WINSTORE%" ..
cmake --build . --target lrelease
cd msvc.build.relwithdebinfo & cmake --build . --config relwithdebinfo --target mscore
)
IF "%1"=="install" (
echo InstallStep
cd C:\MuseScore
cd msvc.build.release
cmake --build . --config release --target install
)
IF "%1"=="installdebug" (
echo InstallStep
cd C:\MuseScore
cd msvc.build.debug
cmake --build . --config debug --target install
)
IF "%1"=="installrelwithdebinfo" (
echo InstallStep
cd C:\MuseScore
cd msvc.build.relwithdebinfo
cmake --build . --config relwithdebinfo --target install
)
IF "%1"=="package" (
echo packageStep
cd C:\MuseScore
cd msvc.build.release
cmake --build . --target package
)
IF "%1"=="revision" (
echo revisionStep
git rev-parse --short=7 HEAD > mscore/revision.h
)
IF "%1"=="clean" (
-rmdir /S/Q msvc.build.debug msvc.build.release msvc.build.relwithdebinfo msvc.install
)