Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleans up the root directory of the GitHub source tree and starts to separate platform-specific installing and packaging logic from the master CMakeLists.txt. Closes #2201
- Loading branch information
Showing
39 changed files
with
193 additions
and
307 deletions.
There are no files selected for viewing
Empty file.
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,2 +1,2 @@ | ||
export CMAKE_OPTS="-DUSE_WERROR=ON" | ||
../build_mingw32 || ../build_mingw32 | ||
../cmake/build_mingw32.sh || ../cmake/build_mingw32.sh |
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,2 +1,2 @@ | ||
export CMAKE_OPTS="-DUSE_WERROR=ON" | ||
../build_mingw64 || ../build_mingw64 | ||
../cmake/build_mingw64.sh || ../cmake/build_mingw64.sh |
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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}") | ||
SET(CPACK_PACKAGE_VENDOR "${PROJECT_AUTHOR}") | ||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt") | ||
SET(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}") | ||
SET(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}") | ||
SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}") | ||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME_UCASE}") | ||
SET(CPACK_SOURCE_GENERATOR "TBZ2") | ||
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}") | ||
IF(VERSION_SUFFIX) | ||
SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}-${VERSION_SUFFIX}") | ||
ENDIF() | ||
IF(NOT DEFINED WIN32) | ||
SET(CPACK_STRIP_FILES "bin/${CMAKE_PROJECT_NAME};${PLUGIN_DIR}/*.so") | ||
SET(CPACK_PACKAGE_EXECUTABLES "${CMAKE_PROJECT_NAME}" "${PROJECT_NAME_UCASE} binary") | ||
ENDIF() | ||
|
||
IF(LMMS_BUILD_WIN32) | ||
ADD_SUBDIRECTORY(nsis) | ||
ELSEIF(LMMS_BUILD_APPLE) | ||
ADD_SUBDIRECTORY(apple) | ||
ELSE() | ||
ADD_SUBDIRECTORY(linux) | ||
ENDIF() | ||
|
||
INCLUDE(CPack) |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SET(MACOSX_BUNDLE_ICON_FILE "lmms.icns") | ||
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "${PROJECT_NAME_UCASE}") | ||
SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${VERSION}") | ||
SET(MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME_UCASE}") | ||
SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${VERSION}") | ||
SET(MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION}") | ||
SET(MACOSX_BUNDLE_COPYRIGHT "${PROJECT_COPYRIGHT}") | ||
SET(MACOSX_BUNDLE_MIMETYPE "application/x-lmms-project") | ||
SET(MACOSX_BUNDLE_MIMETYPE_ICON "project.icns") | ||
SET(MACOSX_BUNDLE_MIMETYPE_ID "io.lmms") | ||
SET(MACOSX_BUNDLE_PROJECT_URL "${PROJECT_URL}") | ||
|
||
CONFIGURE_FILE("lmms.plist.in" "${CMAKE_INSTALL_PREFIX}/Info.plist") | ||
CONFIGURE_FILE("install_apple.sh.in" "${CMAKE_BINARY_DIR}/install_apple.sh" @ONLY) | ||
CONFIGURE_FILE("package_apple.sh.in" "${CMAKE_BINARY_DIR}/package_apple.sh" @ONLY) | ||
|
||
# Add execute permissions to install script | ||
EXECUTE_PROCESS(COMMAND chmod u+x ${CMAKE_BINARY_DIR}/install_apple.sh) | ||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_BINARY_DIR}/install_apple.sh)") | ||
|
||
# TODO: Add PACKAGE target using package_apple_dmg.sh | ||
|
||
|
||
|
File renamed without changes
Oops, something went wrong.