-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
74 additions
and
134 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,28 +1,25 @@ | ||
include(GetPlatformInfo) | ||
if (OS_IS_MAC) | ||
find_package(Sparkle) # needed for SPARKLE_FOUND and SPARKLE_LIBRARY variables | ||
if (SPARKLE_FOUND) | ||
set(SPARKLE_ENABLED 1) | ||
set(SPARKLE_APPCAST_URL "https://sparkle.musescore.org/${MSCORE_RELEASE_CHANNEL}/3/macos/appcast.xml") | ||
endif() | ||
elseif (OS_IS_WIN) | ||
if (BUILD_64) | ||
set(ARCH_TYPE "_x64") | ||
else () | ||
set(ARCH_TYPE "_x86") | ||
endif () | ||
|
||
|
||
if (BUILD_64) | ||
set(ARCH_TYPE "_x64") | ||
else (BUILD_64) | ||
set(ARCH_TYPE "_x86") | ||
endif (BUILD_64) | ||
|
||
if (APPLE) | ||
find_package(Sparkle) #needed for SPARKLE_FOUND variable | ||
if(SPARKLE_FOUND) | ||
set(MAC_SPARKLE_ENABLED 1) | ||
set(OsxFrameworks ${OsxFrameworks} ${SPARKLE_LIBRARY}) | ||
message("Current OSX version is ${CURRENT_OSX_VERSION}") | ||
set(MAC_APPCAST_URL "https://sparkle.musescore.org/${MSCORE_RELEASE_CHANNEL}/3/macos/appcast.xml") | ||
endif(SPARKLE_FOUND) | ||
elseif (MSVC) | ||
if ((NOT MSCORE_UNSTABLE) AND (NOT DEFINED WIN_PORTABLE)) # do not include WinSparkle in unstable and portable builds | ||
include(FindWinSparkle) | ||
add_library(winsparkledll SHARED IMPORTED) | ||
set_target_properties(winsparkledll PROPERTIES IMPORTED_IMPLIB ${WINSPARKLE_LIBRARY}) | ||
set(WIN_SPARKLE_ENABLED 1) | ||
set(WIN_SPARKLE_APPCAST_URL "https://sparkle.musescore.org/${MSCORE_RELEASE_CHANNEL}/4/win/appcast${ARCH_TYPE}.xml") | ||
message("Win Sparkle Url: " ${WIN_SPARKLE_APPCAST_URL}) | ||
endif ((NOT MSCORE_UNSTABLE) AND (NOT DEFINED WIN_PORTABLE)) | ||
else (APPLE) | ||
message("Sparkle is not supported on your system.") | ||
endif (APPLE) | ||
if ((NOT MSCORE_UNSTABLE) AND (NOT DEFINED WIN_PORTABLE)) # do not include WinSparkle in unstable and portable builds | ||
include(FindWinSparkle) | ||
add_library(winsparkledll SHARED IMPORTED) | ||
set_target_properties(winsparkledll PROPERTIES IMPORTED_IMPLIB ${WINSPARKLE_LIBRARY}) | ||
set(SPARKLE_ENABLED 1) | ||
set(SPARKLE_APPCAST_URL "https://sparkle.musescore.org/${MSCORE_RELEASE_CHANNEL}/4/win/appcast${ARCH_TYPE}.xml") | ||
message("Win Sparkle Url: " ${WIN_SPARKLE_APPCAST_URL}) | ||
endif() | ||
else () | ||
message("Sparkle is not supported on your system.") | ||
endif () |
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
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
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
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
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
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
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
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
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
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