-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
83 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,27 @@ INCLUDE(AddFileDependencies) | |
INCLUDE(CheckIncludeFiles) | ||
INCLUDE(FindPkgConfig) | ||
|
||
SET(VERSION_MAJOR "1") | ||
SET(VERSION_MINOR "1") | ||
SET(VERSION_PATCH "3") | ||
#SET(VERSION_SUFFIX "") | ||
SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") | ||
STRING(TOUPPER "${CMAKE_PROJECT_NAME}" PROJECT_NAME_UCASE) | ||
|
||
# Timestamp available since cmake 2.8.11 | ||
IF(CMAKE_VERSION VERSION_LESS "2.8.11") | ||
SET(PROJECT_YEAR "2015") | ||
ELSE() | ||
STRING(TIMESTAMP PROJECT_YEAR "%Y") | ||
ENDIF() | ||
|
||
SET(PROJECT_AUTHOR "LMMS Developers") | ||
SET(PROJECT_URL "http://lmms.io") | ||
SET(PROJECT_EMAIL "[email protected]") | ||
SET(PROJECT_DESCRIPTION "${PROJECT_NAME_UCASE} - Free music production software") | ||
SET(PROJECT_COPYRIGHT "${PROJECT_AUTHOR}, 2008-${PROJECT_YEAR}") | ||
SET(VERSION_MAJOR "1") | ||
SET(VERSION_MINOR "1") | ||
SET(VERSION_PATCH "3") | ||
#SET(VERSION_SUFFIX "") | ||
SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") | ||
IF(VERSION_SUFFIX) | ||
SET(VERSION "${VERSION}-${VERSION_SUFFIX}") | ||
SET(VERSION "${VERSION}-${VERSION_SUFFIX}") | ||
ENDIF(VERSION_SUFFIX) | ||
|
||
INCLUDE(DetectMachine) | ||
|
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,34 +1,34 @@ | ||
SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/nsis_branding.bmp") | ||
SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lmms.ico") | ||
SET(CPACK_NSIS_INSTALLED_ICON_NAME "lmms.exe") | ||
SET(CPACK_NSIS_DISPLAY_NAME "LMMS ${VERSION}") | ||
SET(CPACK_NSIS_HELP_LINK "http://lmms.io") | ||
SET(CPACK_NSIS_URL_INFO_ABOUT "http://lmms.io") | ||
SET(CPACK_NSIS_CONTACT "[email protected]") | ||
SET(CPACK_PACKAGE_EXECUTABLES "lmms.exe;LMMS") | ||
SET(CPACK_NSIS_MENU_LINKS "lmms.exe;LMMS") | ||
SET(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_PROJECT_NAME}.exe") | ||
SET(CPACK_NSIS_DISPLAY_NAME "${PROJECT_NAME_UCASE} ${VERSION}") | ||
SET(CPACK_NSIS_HELP_LINK "${PROJECT_URL}") | ||
SET(CPACK_NSIS_URL_INFO_ABOUT "${PROJECT_URL}") | ||
SET(CPACK_NSIS_CONTACT "${PROJECT_EMAIL}") | ||
SET(CPACK_PACKAGE_EXECUTABLES "${CMAKE_PROJECT_NAME}.exe;${PROJECT_NAME_UCASE}") | ||
SET(CPACK_NSIS_MENU_LINKS "${CMAKE_PROJECT_NAME}.exe;${PROJECT_NAME_UCASE}") | ||
SET(CPACK_NSIS_DEFINES "!include ${CMAKE_SOURCE_DIR}/cmake/nsis/FileAssociation.nsh") | ||
SET(CPACK_PACKAGE_FILE_NAME "lmms-${VERSION}-win32") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-win32") | ||
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS " | ||
\\\${registerExtension} \\\"$INSTDIR\\\\lmms.exe\\\" \\\".mmp\\\" \\\"LMMS Project\\\" | ||
\\\${registerExtension} \\\"$INSTDIR\\\\lmms.exe\\\" \\\".mmpz\\\" \\\"LMMS Project (compressed)\\\" | ||
\\\${registerExtension} \\\"$INSTDIR\\\\${CMAKE_PROJECT_NAME}.exe\\\" \\\".mmp\\\" \\\"${PROJECT_NAME_UCASE} Project\\\" | ||
\\\${registerExtension} \\\"$INSTDIR\\\\${CMAKE_PROJECT_NAME}.exe\\\" \\\".mmpz\\\" \\\"${PROJECT_NAME_UCASE} Project (compressed)\\\" | ||
") | ||
SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS " | ||
\\\${unregisterExtension} \\\".mmp\\\" \\\"LMMS Project\\\" | ||
\\\${unregisterExtension} \\\".mmpz\\\" \\\"LMMS Project (compressed)\\\" | ||
DeleteRegKey HKCR \\\"LMMS Project\\\" | ||
DeleteRegKey HKCR \\\"LMMS Project (compressed)\\\" | ||
\\\${unregisterExtension} \\\".mmp\\\" \\\"${PROJECT_NAME_UCASE} Project\\\" | ||
\\\${unregisterExtension} \\\".mmpz\\\" \\\"${PROJECT_NAME_UCASE} Project (compressed)\\\" | ||
DeleteRegKey HKCR \\\"${PROJECT_NAME_UCASE} Project\\\" | ||
DeleteRegKey HKCR \\\"${PROJECT_NAME_UCASE} Project (compressed)\\\" | ||
") | ||
|
||
IF(WIN64) | ||
SET(CPACK_PACKAGE_FILE_NAME "lmms-${VERSION}-win64") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-win64") | ||
SET(CPACK_NSIS_DEFINES "${CPACK_NSIS_DEFINES} | ||
InstallDir \\\"\\\$PROGRAMFILES64\\\\${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\"") | ||
ENDIF() | ||
|
||
# Windows resource compilers | ||
CONFIGURE_FILE("lmms.rc.in" "${CMAKE_BINARY_DIR}/lmms.rc") | ||
CONFIGURE_FILE("zynaddsubfx.rc.in" "${CMAKE_BINARY_DIR}/plugins/zynaddsubfx/zynaddsubfx.rc") | ||
CONFIGURE_FILE("zynaddsubfx.rc.in" "${CMAKE_BINARY_DIR}/plugins/zynaddsubfx/zynaddsubfx.rc") | ||
|
||
FILE(GLOB RAWWAVES "${CMAKE_INSTALL_PREFIX}/share/stk/rawwaves/*.raw") | ||
INSTALL(FILES ${RAWWAVES} DESTINATION "${DATA_DIR}/stk/rawwaves") | ||
|
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,26 +1,26 @@ | ||
lmmsicon ICON cmake/nsis/lmms.ico | ||
#include <windows.h> | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_PATCH@,0 | ||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_PATCH@,0 | ||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
FILEOS VOS_NT_WINDOWS32 | ||
FILETYPE VFT_APP | ||
FILESUBTYPE VFT2_UNKNOWN | ||
FILEOS VOS_NT_WINDOWS32 | ||
FILETYPE VFT_APP | ||
FILESUBTYPE VFT2_UNKNOWN | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904E4" | ||
//language ID = U.S. English, charset = Windows, Multilingual | ||
BEGIN | ||
VALUE "Comments", "https://lmms.io\0" | ||
VALUE "CompanyName", "LMMS Developers\0" | ||
VALUE "FileDescription", "LMMS\0" | ||
VALUE "FileVersion", "@VERSION@\0" | ||
VALUE "LegalCopyright", "Copyright (c) 2004-2015 LMMS Developers\0" | ||
VALUE "OriginalFilename", "lmms.exe\0" | ||
VALUE "ProductName", "LMMS\0" | ||
VALUE "ProductVersion", "@VERSION@\0" | ||
VALUE "Comments", "${PROJECT_URL}\0" | ||
VALUE "CompanyName", "${PROJECT_AUTHOR}\0" | ||
VALUE "FileDescription", "${PROJECT_NAME_UCASE}\0" | ||
VALUE "FileVersion", "@VERSION@\0" | ||
VALUE "LegalCopyright", "Copyright (c) ${PROJECT_COPYRIGHT}\0" | ||
VALUE "OriginalFilename", "${CMAKE_PROJECT_NAME}.exe\0" | ||
VALUE "ProductName", "${PROJECT_NAME_UCASE}\0" | ||
VALUE "ProductVersion", "@VERSION@\0" | ||
END | ||
END | ||
END |
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