Merge branch '164-crash-on-patching-and-possibly-right-after-login' into 'main/atys...
[ryzomcore.git] / nelns / CMakePackaging.txt
blob34a766ebcfc0128d62c2a72a7e6a58087cd00d39
1 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "NeL MMORPG Framework - Networking Services")
2 SET(CPACK_PACKAGE_VENDOR "NeL")
3 SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README)
4 SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)
5 SET(CPACK_PACKAGE_VERSION_MAJOR "${NL_VERSION_MAJOR}")
6 SET(CPACK_PACKAGE_VERSION_MINOR "${NL_VERSION_MINOR}")
7 SET(CPACK_PACKAGE_VERSION_PATCH "${NL_VERSION_PATCH}")
8 SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};NeLNS;ALL;/")
9 SET(CPACK_PACKAGE_EXECUTABLES "nelns-${NL_VERSION}" "nelns")
11 # NSIS Specific Packing Setup
12 SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "NeLNS")
13 SET(CPACK_NSIS_MODIFY_PATH "ON")
14 SET(CPACK_NSIS_MUI_ICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
15 SET(CPACK_NSIS_MUI_UNIICON ${CMAKE_SOURCE_DIR}/resources/nevraxpill.ico)
16 SET(CPACK_PACKAGE_ICON ${CMAKE_SOURCE_DIR}/resources\\\\nel.bmp)
17 SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} NeLNS")
18 SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\dev.ryzom.com")
19 SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\dev.ryzom.com\\\\projects\\\\nel\\\\wiki")
20 SET(CPACK_NSIS_CONTACT "matt.raykowski@gmail.com")
21 SET(CPACK_NSIS_MENU_LINKS 
22         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\sbin\\\\naming_service.exe" "Naming Service"
23         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\sbin\\\\login_service.exe" "Login Service"
24         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\sbin\\\\welcome_service.exe" "Welcome Service"
25         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\sbin\\\\admin_executor_service.exe" "Admin Executor Service"
26         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\sbin\\\\admin_service.exe" "Admin Service"
27         "${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\etc\\\\nel\\\\nelns\\\\naming_service.cfg" "Configs\\\\Naming Service Config"
28         "http://dev.ryzom.com/projects/nel" "NeL Web Site"
31 ## Source Packages
32 SET(CPACK_PACKAGE_FILE_NAME "nelns-${NL_VERSION}")
33 SET(CPACK_SOURCE_PACKAGE_FILE_NAME "nelns-${NL_VERSION}")
34 IF(WIN32)
35   SET(CPACK_GENERATOR "NSIS")
36   SET(CPACK_SOURCE_GENERATOR "ZIP")
37 ELSE()
38   SET(CPACK_GENERATOR "TGZ")
39   SET(CPACK_SOURCE_GENERATOR "TGZ")
40 ENDIF()
41 set(CPACK_SOURCE_IGNORE_FILES
42         "~$"
43         "\\\\.cvsignore$"
44         "^${CMAKE_SOURCE_DIR}.*/CVS/"
45         "^${CMAKE_SOURCE_DIR}.*/\\\\.svn/"
46         "^${CMAKE_SOURCE_DIR}/debian/"
47         "^${CMAKE_SOURCE_DIR}/old/")
48         
49 IF(WIN32)
50   IF(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
51     SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
52   ENDIF()
54   IF(WITH_QT)
55     INCLUDE(${QT_USE_FILE})
56     INSTALL(FILES 
57       "${QT_LIBRARY_DIR}/QtGui4.dll"        
58       "${QT_LIBRARY_DIR}/QtXml4.dll"
59       "${QT_LIBRARY_DIR}/QtCore4.dll"
60       DESTINATION bin)
61   ENDIF()
62         
63   # Only the tools require MFC.
64   IF(BUILD_RYZOM_LAUNCHER)
65     SET(CMAKE_INSTALL_MFC_LIBRARIES TRUE)
66   ENDIF()
67   
68   INCLUDE(InstallRequiredSystemLibraries)
69 ENDIF()
71 INCLUDE(CPack)
73 cpack_add_install_type(Full DISPLAY_NAME "Full Install")
74 cpack_add_install_type(Simple DISPLAY_NAME "Essential Services Install")
76 cpack_add_component_group("Admin Services" 
77   EXPANDED 
78   DESCRPTION "The services necessary for shard administration.")
79 cpack_add_component_group("Shard Servces"
80   EXPANDED 
81   DESCRPTION "The services necessary for running a shard.")
82 cpack_add_component_group("Client Tools"
83   EXPANDED 
84   DESCRPTION "Client tools, such as launchers.")
85     
86 cpack_add_component(aes
87   DISPLAY_NAME "Admin Executor Service"
88   DESCRIPTION "Admin Executor Service - starts shard servers on a machine."
89   GROUP "Admin Services"
90   INSTALL_TYPES Full)
91 cpack_add_component(as
92   DISPLAY_NAME "Admin Service"
93   DESCRIPTION "Admin Service - performs high level shard management."
94   GROUP "Admin Services"
95   INSTALL_TYPES Full)
97 cpack_add_component(ls
98   DISPLAY_NAME "Login Service"
99   DESCRIPTION "Login Service - performs player/client login authentication."
100   GROUP "Shard Services"
101   INSTALL_TYPES Full Simple)
102 cpack_add_component(ns
103   DISPLAY_NAME "Naming Service"
104   DESCRIPTION "Naming Service - performs naming lookup for unified networking."
105   GROUP "Shard Services"
106   INSTALL_TYPES Full Simple)
107 cpack_add_component(ws
108   DISPLAY_NAME "Welcome Service"
109   DESCRIPTION "Welcome Service - performs the task of identifying available front-ends for a given shard."
110   GROUP "Shard Services"
111   INSTALL_TYPES Full Simple)
113 cpack_add_component(launcher
114   DISPLAY_NAME "Client Launcher"
115   DESCRIPTION "Client Launcher - connects to the web service and login service to find a shard."
116   GROUP "Client Tools"
117   INSTALL_TYPES Full Simple)