From 29e5a769653a7d78b36f75424e867700d1446088 Mon Sep 17 00:00:00 2001 From: Dmitri Ovodok Date: Sun, 19 Jan 2020 00:07:47 +0200 Subject: [PATCH] Simplify version-specific configuration in build scripts --- CMakeLists.txt | 36 +++++--------- Makefile | 4 +- Makefile.mingw | 5 +- Makefile.osx | 4 +- build/appveyor/after_build.bat | 6 +-- build/appveyor/before_build.bat | 3 +- build/appveyor/build_script.bat | 4 ++ .../appveyor/winsparkle_appcast_generator.sh | 2 +- build/config/dev.cmake | 27 +++++++++++ build/config/release.cmake | 23 +++++++++ build/config/testing.cmake | 27 +++++++++++ build/package_mac | 4 +- build/travis/job1_Tests/run_tests.sh | 4 +- build/travis/job2_AppImage/build.sh | 4 +- build/travis/job_macos/before_install.sh | 6 +-- build/travis/job_macos/script.sh | 8 ++-- .../job_macos_lupdate/before_install.sh | 6 +-- config.cmake | 48 +++++++++++++++++++ msvc_build.bat | 14 +++--- 19 files changed, 171 insertions(+), 64 deletions(-) create mode 100644 build/config/dev.cmake create mode 100644 build/config/release.cmake create mode 100644 build/config/testing.cmake create mode 100644 config.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index fc3cf3ee096a..2b6bab98b1ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,12 +94,19 @@ include (CreatePrecompiledHeader) # set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_AUTOMOC TRUE) -set(MSCORE_UNSTABLE TRUE) # Mark as unstable -set(MSCORE_RELEASE_CHANNEL "devel") -#set(MSCORE_RELEASE_CHANNEL "testing") -#set(MSCORE_RELEASE_CHANNEL "stable") set(USE_SSE TRUE) +# Setup version number and general build settings +include("${CMAKE_CURRENT_LIST_DIR}/config.cmake") + +if (MUSESCORE_LABEL) + SET (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} ${MUSESCORE_LABEL}") +endif (MUSESCORE_LABEL) + +if (MSCORE_UNSTABLE) + SET (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} (${MUSESCORE_VERSION_FULL} unstable)") +endif (MSCORE_UNSTABLE) + # Disable components not supported on Windows if (MSVC OR MINGW) set(WIN_NOT_AVAIL "Not available on Windows") @@ -293,27 +300,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR TRUE) set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) # Call CMake with option -DCMAKE_SKIP_RPATH to not set RPATH (Debian packaging requirement) set(CMAKE_SKIP_RULE_DEPENDENCY TRUE) -# The MuseScore version number. -SET(MUSESCORE_NAME "MuseScore") -SET(MUSESCORE_VERSION_MAJOR "3") -SET(MUSESCORE_VERSION_MINOR "5") -SET(MUSESCORE_VERSION_PATCH "0") -SET(MUSESCORE_VERSION_LABEL "") -SET(MUSESCORE_VERSION "${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}") -SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}") -# -# Version schema x.x.x is hardcoded in source -# -SET(MUSESCORE_VERSION_FULL "${MUSESCORE_VERSION}.${MUSESCORE_VERSION_PATCH}") - -if (MUSESCORE_LABEL) - SET (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} ${MUSESCORE_LABEL}") -endif (MUSESCORE_LABEL) - -if (MSCORE_UNSTABLE) - SET (MUSESCORE_NAME_VERSION "${MUSESCORE_NAME_VERSION} (${MUSESCORE_VERSION_FULL} unstable)") -endif (MSCORE_UNSTABLE) - if (MINGW OR MSVC OR APPLE) if(MINGW OR MSVC) # Option for MINGW and MSVC diff --git a/Makefile b/Makefile index 9b2a3f47a319..f7d9013fab89 100644 --- a/Makefile +++ b/Makefile @@ -17,12 +17,10 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #============================================================================= -REVISION := `cat mscore/revision.h` CPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1) PREFIX = "/usr/local" -VERSION = "3.5b-${REVISION}" -#VERSION = 3.5.0 +VERSION = `cmake -P config.cmake | grep -oP "VERSION\s+\K.*"` BUILD_NUMBER="" TELEMETRY_TRACK_ID="" diff --git a/Makefile.mingw b/Makefile.mingw index 4a3a1a60f5b2..bbc35185989c 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -17,10 +17,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #============================================================================= - -REVISION = $(shell type mscore\revision.h) -VERSION = 3.5b-${REVISION} -#VERSION = 3.5.0 +VERSION = `cmake -P config.cmake | grep -oP "VERSION\s+\K.*"` BUILD_NUMBER="" CPUS = %NUMBER_OF_PROCESSORS% BUILD_FOR_WINSTORE="OFF" # Override with "ON" to enable. diff --git a/Makefile.osx b/Makefile.osx index b045b6c3f2e6..c5e01688c1dd 100644 --- a/Makefile.osx +++ b/Makefile.osx @@ -17,9 +17,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #============================================================================= -REVISION = `cat mscore/revision.h` -VERSION = "3.5b-${REVISION}" -#VERSION = 3.5.0 +VERSION = `cmake -P config.cmake | grep -oP "VERSION\s+\K.*"` BUILD_NUMBER = "" PREFIX=../applebuild TELEMETRY_TRACK_ID="" diff --git a/build/appveyor/after_build.bat b/build/appveyor/after_build.bat index 0dd2c339c734..d640fd724c66 100644 --- a/build/appveyor/after_build.bat +++ b/build/appveyor/after_build.bat @@ -4,11 +4,7 @@ ccache.exe -s CD C:\MuseScore REM the code is used to generate MS version for both nightly and stable releases -SET input=C:\MuseScore\CMakeLists.txt -FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_MAJOR" %input%') DO set VERSION_MAJOR=%%A -FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_MINOR" %input%') DO set VERSION_MINOR=%%A -FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_PATCH" %input%') DO set VERSION_PATCH=%%A -SET MUSESCORE_VERSION=%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_PATCH%.%APPVEYOR_BUILD_NUMBER% +SET MUSESCORE_VERSION=%MUSESCORE_VERSION_FULL%.%APPVEYOR_BUILD_NUMBER% SET DEBUG_SYMS_FILE=musescore_win%TARGET_PROCESSOR_BITS%.sym @echo on diff --git a/build/appveyor/before_build.bat b/build/appveyor/before_build.bat index 5b6cc1f010b4..85f351317e87 100644 --- a/build/appveyor/before_build.bat +++ b/build/appveyor/before_build.bat @@ -47,7 +47,8 @@ START " " /wait "7z" x -y %TOOLS_ARCHIVE% > nul CD C:\MuseScore :: is MuseScore stable? Check here, no grep in PATH later on -for /f "delims=" %%i in ('grep "^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)" C:\MuseScore\CMakeLists.txt') do set NIGHTLY_BUILD=%%i +for /f "delims=" %%i in ('bash -c "cmake -P config.cmake | grep -P 'MSCORE_UNSTABLE\s+TRUE'"') do set NIGHTLY_BUILD=%%i +for /f %%i in ('bash -c "cmake -P config.cmake | grep -oP 'MUSESCORE_VERSION_FULL\s+\K.*'"') do set MUSESCORE_VERSION_FULL=%%i :: get revision number SET "PATH=%QTDIR%\bin;%PATH%" diff --git a/build/appveyor/build_script.bat b/build/appveyor/build_script.bat index 5e4129c0b0e6..3dbc57fc9aef 100644 --- a/build/appveyor/build_script.bat +++ b/build/appveyor/build_script.bat @@ -1,2 +1,6 @@ +IF "%NIGHTLY_BUILD%" == "" ( + SET MSCORE_STABLE_BUILD="TRUE" +) + call C:\MuseScore\msvc_build.bat relwithdebinfo %TARGET_PROCESSOR_BITS% %APPVEYOR_BUILD_NUMBER% call C:\MuseScore\msvc_build.bat installrelwithdebinfo %TARGET_PROCESSOR_BITS% %APPVEYOR_BUILD_NUMBER% diff --git a/build/appveyor/winsparkle_appcast_generator.sh b/build/appveyor/winsparkle_appcast_generator.sh index d806a6a80da7..0f596a96696b 100644 --- a/build/appveyor/winsparkle_appcast_generator.sh +++ b/build/appveyor/winsparkle_appcast_generator.sh @@ -3,7 +3,7 @@ # $3 - MuseScore version # $4 - Revision hash -export MSCORE_RELEASE_CHANNEL=$(grep '^[[:blank:]]*set *( *MSCORE_RELEASE_CHANNEL' CMakeLists.txt | awk -F \" '{print $2}') +export MSCORE_RELEASE_CHANNEL=$(cmake -P config.cmake | grep -oP 'MSCORE_RELEASE_CHANNEL\s+\K.*') RSS_DATE="$(LANG=C date +'%a, %d %b %Y %H:%M:%S %z')" FILESIZE="$(wc -c $1 | awk '{print $1}')" APPCAST_URL="https://sparkle.musescore.org/$MSCORE_RELEASE_CHANNEL/3/win/appcast.xml" diff --git a/build/config/dev.cmake b/build/config/dev.cmake new file mode 100644 index 000000000000..0d35c483b3d5 --- /dev/null +++ b/build/config/dev.cmake @@ -0,0 +1,27 @@ +#============================================================================= +# MuseScore +# Music Composition & Notation +# +# Copyright (C) 2002-2020 MuseScore BVBA and others +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#============================================================================= + +set(MSCORE_UNSTABLE TRUE) # Mark as unstable +set(MSCORE_RELEASE_CHANNEL "devel") + +if (NOT MUSESCORE_VERSION_LABEL) + SET(MUSESCORE_VERSION_LABEL "Development") +endif (NOT MUSESCORE_VERSION_LABEL) + +SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}") diff --git a/build/config/release.cmake b/build/config/release.cmake new file mode 100644 index 000000000000..72479f31fd3e --- /dev/null +++ b/build/config/release.cmake @@ -0,0 +1,23 @@ +#============================================================================= +# MuseScore +# Music Composition & Notation +# +# Copyright (C) 2002-2020 MuseScore BVBA and others +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#============================================================================= + +set(MSCORE_UNSTABLE FALSE) +set(MSCORE_RELEASE_CHANNEL "stable") + +SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}") diff --git a/build/config/testing.cmake b/build/config/testing.cmake new file mode 100644 index 000000000000..95f882d7645e --- /dev/null +++ b/build/config/testing.cmake @@ -0,0 +1,27 @@ +#============================================================================= +# MuseScore +# Music Composition & Notation +# +# Copyright (C) 2002-2020 MuseScore BVBA and others +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#============================================================================= + +set(MSCORE_UNSTABLE FALSE) +set(MSCORE_RELEASE_CHANNEL "testing") + +if (NOT MUSESCORE_VERSION_LABEL) + SET(MUSESCORE_VERSION_LABEL "Testing") +endif (NOT MUSESCORE_VERSION_LABEL) + +SET(MUSESCORE_NAME_VERSION "${MUSESCORE_NAME} ${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR} ${MUSESCORE_VERSION_LABEL}") diff --git a/build/package_mac b/build/package_mac index 0acd857b794a..3cd4afba6d0a 100755 --- a/build/package_mac +++ b/build/package_mac @@ -11,7 +11,9 @@ then else LONG_NAME=MuseScore LONGER_NAME="MuseScore 3" - VERSION=3.5.0 + + SCRIPT_DIR=$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd) + VERSION=$(cmake -P "$SCRIPT_DIR/../config.cmake" | grep -oP 'VERSION\s+\K.*') fi diff --git a/build/travis/job1_Tests/run_tests.sh b/build/travis/job1_Tests/run_tests.sh index 4578967bf9cd..72f62aa1b7dd 100755 --- a/build/travis/job1_Tests/run_tests.sh +++ b/build/travis/job1_Tests/run_tests.sh @@ -52,8 +52,8 @@ cd - cd .. cd .. -if [ "$(grep '^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)' CMakeLists.txt)" ] -then # Build is marked UNSTABLE inside CMakeLists.txt +if [ "$(cmake -P config.cmake | grep -P 'MSCORE_UNSTABLE\s+TRUE')" ] +then # Build is marked UNSTABLE echo "Unstable version: do not upload source zip file" else make clean diff --git a/build/travis/job2_AppImage/build.sh b/build/travis/job2_AppImage/build.sh index acca72457471..cd65888a6923 100755 --- a/build/travis/job2_AppImage/build.sh +++ b/build/travis/job2_AppImage/build.sh @@ -43,8 +43,8 @@ function rebuild-docker-image() { # $1 is arch (e.g. x86_64) # Set AppImage name and automated update information according to # https://github.com/AppImage/AppImageSpec/blob/master/draft.md # Also set a label to distinguish when running multiple builds on one machine. -if [ "$(grep '^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)' CMakeLists.txt)" ] -then # Build is marked UNSTABLE inside CMakeLists.txt +if [ "$(cmake -P config.cmake | grep -P 'MSCORE_UNSTABLE\s+TRUE')" ] +then # Build is marked UNSTABLE if [ "${BINTRAY_REPO_OWNER}" == "musescore" ] then # This is a nightly build makefile_overrides="PREFIX='MuseScoreNightly-$date-$branch-$revision' \ diff --git a/build/travis/job_macos/before_install.sh b/build/travis/job_macos/before_install.sh index 5365048cb2f2..a3c09ab7e890 100644 --- a/build/travis/job_macos/before_install.sh +++ b/build/travis/job_macos/before_install.sh @@ -25,12 +25,12 @@ expect << EOF expect eof EOF -#set NIGHTLY_BUILD variable if MSCORE_UNSTABLE is TRUE in CMakeLists.txt -if [ "$(grep '^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)' CMakeLists.txt)" ] +# Set NIGHTLY_BUILD variable if MSCORE_UNSTABLE is TRUE +if [ "$(cmake -P config.cmake | grep -P 'MSCORE_UNSTABLE\s+TRUE')" ] then export NIGHTLY_BUILD=TRUE fi -export MSCORE_RELEASE_CHANNEL=$(grep '^[[:blank:]]*set *( *MSCORE_RELEASE_CHANNEL' CMakeLists.txt | awk -F \" '{print $2}') +export MSCORE_RELEASE_CHANNEL=$(cmake -P config.cmake | grep -oP 'MSCORE_RELEASE_CHANNEL\s+\K.*') fi diff --git a/build/travis/job_macos/script.sh b/build/travis/job_macos/script.sh index a319a59402a6..cb7b701253fa 100755 --- a/build/travis/job_macos/script.sh +++ b/build/travis/job_macos/script.sh @@ -35,7 +35,7 @@ mkdir -p applebuild/mscore.app/Contents/Frameworks cp -Rf ~/Library/Frameworks/Sparkle.framework applebuild/mscore.app/Contents/Frameworks if [[ "$NIGHTLY_BUILD" = "TRUE" ]] -then # Build is marked UNSTABLE inside CMakeLists.txt +then # Build is marked UNSTABLE build/package_mac $BRANCH-$REVISION PACKAGE_NAME=MuseScoreNightly DMGFILE=applebuild/$PACKAGE_NAME-$DATE-$BRANCH-$REVISION.dmg @@ -64,11 +64,9 @@ scp -C -i $SSH_INDENTITY build/travis/job_macos/web/nightly.xml musescore-nightl ssh -i $SSH_INDENTITY musescore-nightlies@ftp-osl.osuosl.org "~/trigger-musescore-nightlies" # send nightly update to S3 -VERSION_MAJOR=$(grep 'SET(MUSESCORE_VERSION_MAJOR' CMakeLists.txt | cut -d \" -f2) -VERSION_MINOR=$(grep 'SET(MUSESCORE_VERSION_MINOR' CMakeLists.txt | cut -d \" -f2) -VERSION_PATCH=$(grep 'SET(MUSESCORE_VERSION_PATCH' CMakeLists.txt | cut -d \" -f2) +MUSESCORE_VERSION_FULL=$(cmake -P config.cmake | grep -oP 'MUSESCORE_VERSION_FULL\s+\K.*') BUILD_NUMBER=${TRAVIS_BUILD_NUMBER} -MUSESCORE_VERSION=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${BUILD_NUMBER} +MUSESCORE_VERSION=${MUSESCORE_VERSION_FULL}.${BUILD_NUMBER} SHORT_DATE="$(date -u +%Y-%m-%d)" #date -R is not supported !? RSS_DATE="$(LANG=C date +'%a, %d %b %Y %H:%M:%S %z')" diff --git a/build/travis/job_macos_lupdate/before_install.sh b/build/travis/job_macos_lupdate/before_install.sh index 4f449a2ae2c4..482d300bf9ee 100644 --- a/build/travis/job_macos_lupdate/before_install.sh +++ b/build/travis/job_macos_lupdate/before_install.sh @@ -5,10 +5,10 @@ export QT_PATH=$HOME/qt export QT_MACOS=$QT_PATH/$QT_SHORT_VERSION/clang_64 export PATH=$PATH:$QT_MACOS/bin -#set NIGHTLY_BUILD variable if MSCORE_UNSTABLE is TRUE in CMakeLists.txt -if [ "$(grep '^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)' CMakeLists.txt)" ] +# Set NIGHTLY_BUILD variable if MSCORE_UNSTABLE is TRUE +if [ "$(cmake -P config.cmake | grep -P 'MSCORE_UNSTABLE\s+TRUE')" ] then export NIGHTLY_BUILD=TRUE fi -export MSCORE_RELEASE_CHANNEL=$(grep '^[[:blank:]]*set *( *MSCORE_RELEASE_CHANNEL' CMakeLists.txt | awk -F \" '{print $2}') +export MSCORE_RELEASE_CHANNEL=$(cmake -P config.cmake | grep -oP 'MSCORE_RELEASE_CHANNEL\s+\K.*') diff --git a/config.cmake b/config.cmake new file mode 100644 index 000000000000..4043b2970e85 --- /dev/null +++ b/config.cmake @@ -0,0 +1,48 @@ +#============================================================================= +# MuseScore +# Linux Music Score Editor +# +# Copyright (C) 2002-2020 MuseScore BVBA and others +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#============================================================================= + +# The MuseScore version number. +SET(MUSESCORE_NAME "MuseScore") +SET(MUSESCORE_VERSION_MAJOR "3") +SET(MUSESCORE_VERSION_MINOR "5") +SET(MUSESCORE_VERSION_PATCH "0") +SET(MUSESCORE_VERSION_LABEL "") +SET(MUSESCORE_BUILD_CONFIG "dev") +# Possible MUSESCORE_BUILD_CONFIG values: +# - dev - for development/nightly builds +# - testing - for testing versions (alpha, beta, RC) +# - release - for stable release builds + +include("${CMAKE_CURRENT_LIST_DIR}/build/config/${MUSESCORE_BUILD_CONFIG}.cmake") + +SET(MUSESCORE_VERSION "${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}") +# Version schema x.x.x is hardcoded in source +SET(MUSESCORE_VERSION_FULL "${MUSESCORE_VERSION}.${MUSESCORE_VERSION_PATCH}") + +# Print variables which are needed by CI build scripts. +# STATUS mode makes message() command use stdout for its output. +message(STATUS "MSCORE_UNSTABLE ${MSCORE_UNSTABLE}") +message(STATUS "MSCORE_RELEASE_CHANNEL ${MSCORE_RELEASE_CHANNEL}") +message(STATUS "MUSESCORE_VERSION_FULL ${MUSESCORE_VERSION_FULL}") +if (MSCORE_UNSTABLE) + file(READ "${CMAKE_CURRENT_LIST_DIR}/mscore/revision.h" MUSESCORE_REVISION) + message(STATUS "VERSION ${MUSESCORE_VERSION_MAJOR}.${MUSESCORE_VERSION_MINOR}b-${MUSESCORE_REVISION}") +else (MSCORE_UNSTABLE) + message(STATUS "VERSION ${MUSESCORE_VERSION_FULL}") +endif (MSCORE_UNSTABLE) diff --git a/msvc_build.bat b/msvc_build.bat index c6d5b9228c0c..f53898e0a8c6 100644 --- a/msvc_build.bat +++ b/msvc_build.bat @@ -123,14 +123,16 @@ IF /I "%1"=="clean" ( if not exist "%INSTALL_FOLDER%\nul" mkdir "%INSTALL_FOLDER%" echo Building CMake configuration... -IF NOT "%CRASH_LOG_SERVER_URL%" == "" ( - IF "%BUILD_FOR_WINSTORE%" == "OFF" ( - SET CRASH_REPORT_URL_OPT=-DCRASH_REPORT_URL=%CRASH_LOG_SERVER_URL% +IF NOT "%MSCORE_STABLE_BUILD%" == "" ( + IF NOT "%CRASH_LOG_SERVER_URL%" == "" ( + IF "%BUILD_FOR_WINSTORE%" == "OFF" ( + SET CRASH_REPORT_URL_OPT=-DCRASH_REPORT_URL=%CRASH_LOG_SERVER_URL% -DBUILD_CRASH_REPORTER=ON + ) ) - ) -IF NOT "%TELEMETRY_TRACK_ID%" == "" ( - SET TELEMETRY_TRACK_ID_OPT=-DTELEMETRY_TRACK_ID=%TELEMETRY_TRACK_ID% + IF NOT "%TELEMETRY_TRACK_ID%" == "" ( + SET TELEMETRY_TRACK_ID_OPT=-DTELEMETRY_TRACK_ID=%TELEMETRY_TRACK_ID% + ) ) REM -DCMAKE_BUILD_NUMBER=%BUILD_NUMBER% -DCMAKE_BUILD_AUTOUPDATE=%BUILD_AUTOUPDATE% %CRASH_REPORT_URL_OPT% are used for CI only