Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Toolchains:MinGW:latest:win64
mingw64-installer-base
CMakeLists.txt
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CMakeLists.txt of Package mingw64-installer-base
project(${PACKAGE_NAME} NONE) cmake_minimum_required(VERSION 2.8) # settings required to add to cmake call #set(PACKAGE_NAME "umbrello") #set(PACKAGE_VENDOR "kde.org") #set(PACKAGE_DISPLAY_NAME "Umbrello 2.17.0") #set(PACKAGE_VERSION "2.17.0") #set(PACKAGE_HELP_LINK "https://kmymoney.org/support.php") #set(PACKAGE_URL_INFO "https://kmymoney.org") #set(PACKAGE_INSTALL_DIR /usr/i686-w64-mingw32/sys-root/mingw/) #set(PACKAGE_FINISH_RUN "kmymoney.exe") #set(PACKAGE_INSTALLED_ICON_NAME "bin/${PACKAGE_FINISH_RUN}") #set(PACKAGE_LICENSE_FILE /usr/share/doc/packages/mingw32-umbrello/COPYING) #set(PACKAGE_LOCAL_INSTALL_DIR ...) set to dir from which local files are installed #set(CPACK_GENERATOR NSIS;7Z) if(EXISTS ${PACKAGE_INSTALL_DIR}/bin/kdeinit4.exe) set(PACKAGE_KDEINIT "bin/kdeinit4.exe") elseif(EXISTS ${PACKAGE_INSTALL_DIR}/bin/kdeinit5.exe) set(PACKAGE_KDEINIT "bin/kdeinit5.exe") endif() # local settings #set(SIDEBAR_IMAGE "${CMAKE_SOURCE_DIR}/hisc-apps-umbrello-installer.bmp") # install directory normally from system (read only) location install( DIRECTORY ${PACKAGE_INSTALL_DIR} DESTINATION . REGEX ".*var/lib/rpm-state$" EXCLUDE REGEX ".*bin/lib$" EXCLUDE REGEX ".*share/qt4/mkspecs.*" EXCLUDE # exclude debug dirs REGEX ".*src/" EXCLUDE REGEX ".*symbols/" EXCLUDE REGEX ".*.debug$" EXCLUDE ) # install local dirs if(PACKAGE_LOCAL_INSTALL_DIR) install( DIRECTORY ${PACKAGE_LOCAL_INSTALL_DIR} DESTINATION . ) endif() # remove empty dirs install(CODE "execute_process(COMMAND find ${CPACK_TEMPORARY_INSTALL_DIRECTORY} -type d -empty -delete)") # cpack settings if(NOT CPACK_GENERATOR) set(CPACK_GENERATOR NSIS;7Z) endif() set(CPACK_PACKAGE_NAME ${PACKAGE_NAME}) set(CPACK_PACKAGE_VENDOR ${PACKAGE_VENDOR}) set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PACKAGE_DESCRIPTION}) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_PACKAGE_INSTALL_DIRECTORY ${PACKAGE_NAME}) set(CPACK_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION}) set(CPACK_RESOURCE_FILE_LICENSE ${PACKAGE_LICENSE_FILE}) #cpack nsis settings set(CPACK_NSIS_COMPRESSOR lzma) SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64") set(CPACK_NSIS_DISPLAY_NAME "${PACKAGE_DISPLAY_NAME}") set(CPACK_NSIS_HELP_LINK "${PACKAGE_HELP_LINK}") set(CPACK_NSIS_URL_INFO_ABOUT "${PACKAGE_URL_INFO}") set(CPACK_NSIS_CONTACT "${PACKAGE_CONTACT}") set(CPACK_NSIS_INSTALLED_ICON_NAME "${PACKAGE_INSTALLED_ICON_NAME}") if(PACKAGE_FINISH_RUN) set(CPACK_NSIS_MUI_FINISHPAGE_RUN ${PACKAGE_FINISH_RUN}) endif() #set(CPACK_NSIS_MODIFY_PATH ON) set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON) if(PACKAGE_INSTALLED_ICON_NAME) list(APPEND CPACK_NSIS_MENU_LINKS ${PACKAGE_INSTALLED_ICON_NAME} "${PACKAGE_DISPLAY_NAME}") endif() if(PACKAGE_URL_INFO) list(APPEND CPACK_NSIS_MENU_LINKS ${PACKAGE_URL_INFO} "${PACKAGE_NAME} Web Site") endif() #set(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "!define MUI_WELCOMEFINISHPAGE_BITMAP \\\"${SIDEBAR_IMAGE}\\\"") if(PACKAGE_KDEINIT) # we need to stop kde background processes set(CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS "nsExec::Exec '\\\"$INSTDIR/${PACKAGE_KDEINIT}\\\" --terminate'") set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "nsExec::Exec '\\\"$INSTDIR/${PACKAGE_KDEINIT}\\\" --terminate'") endif() include(CPack)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor