DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 1 | # This file is included from the top-level CMakeLists.txt. We just store it |
| 2 | # here to avoid cluttering up that file. |
| 3 | |
| 4 | |
| 5 | # |
| 6 | # Windows installer (Inno Setup) |
| 7 | # |
| 8 | |
| 9 | if(WIN32) |
| 10 | |
| 11 | if(CMAKE_SIZEOF_VOID_P MATCHES 8) |
| 12 | set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION}) |
| 13 | set(INST_DEFS -DWIN64) |
| 14 | else() |
| 15 | set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION}) |
| 16 | endif() |
| 17 | |
DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 18 | set(INST_DEPS vncviewer) |
| 19 | |
| 20 | if(BUILD_WINVNC) |
| 21 | set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC) |
DRC | e4f7c77 | 2011-11-08 08:58:19 +0000 | [diff] [blame] | 22 | if(BUILD_JAVA) |
| 23 | set(INST_DEPS ${INST_DEPS} java) |
| 24 | endif() |
DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 25 | set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig) |
| 26 | endif() |
| 27 | |
DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 28 | configure_file(release/tigervnc.iss.in release/tigervnc.iss) |
| 29 | |
| 30 | add_custom_target(installer |
DRC | c67db65 | 2011-11-08 08:51:04 +0000 | [diff] [blame] | 31 | iscc -o. ${INST_DEFS} -F${INST_NAME} release/tigervnc.iss |
DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 32 | DEPENDS ${INST_DEPS} |
| 33 | SOURCES release/tigervnc.iss) |
| 34 | |
| 35 | endif() # WIN32 |
| 36 | |
| 37 | |
| 38 | # |
| 39 | # Mac DMG |
| 40 | # |
| 41 | |
| 42 | if(APPLE) |
| 43 | |
| 44 | set(DEFAULT_OSX_X86_BUILD ${CMAKE_SOURCE_DIR}/osxx86) |
| 45 | set(OSX_X86_BUILD ${DEFAULT_OSX_X86_BUILD} CACHE PATH |
| 46 | "Directory containing 32-bit OS X build to include in universal binaries (default: ${DEFAULT_OSX_X86_BUILD})") |
| 47 | |
| 48 | configure_file(release/makemacapp.in release/makemacapp) |
| 49 | configure_file(release/Info.plist.in release/Info.plist) |
| 50 | |
| 51 | add_custom_target(dmg sh release/makemacapp |
| 52 | DEPENDS vncviewer |
| 53 | SOURCES release/makemacapp) |
| 54 | |
| 55 | add_custom_target(udmg sh release/makemacapp universal |
| 56 | DEPENDS vncviewer |
| 57 | SOURCES release/makemacapp) |
| 58 | |
| 59 | endif() # APPLE |
| 60 | |
| 61 | |
| 62 | # |
DRC | c377ebd | 2011-06-25 08:48:19 +0000 | [diff] [blame] | 63 | # Binary tarball |
| 64 | # |
| 65 | |
| 66 | if(UNIX) |
| 67 | |
| 68 | configure_file(release/maketarball.in release/maketarball) |
| 69 | |
DRC | 7636ad0 | 2011-10-04 04:03:34 +0000 | [diff] [blame] | 70 | set(TARBALL_DEPENDS vncviewer vncpasswd vncconfig) |
| 71 | if(BUILD_JAVA) |
| 72 | set(TARBALL_DEPENDS ${TARBALL_DEPENDS} java) |
| 73 | endif() |
| 74 | |
DRC | c377ebd | 2011-06-25 08:48:19 +0000 | [diff] [blame] | 75 | add_custom_target(tarball sh release/maketarball |
DRC | 7636ad0 | 2011-10-04 04:03:34 +0000 | [diff] [blame] | 76 | DEPENDS ${TARBALL_DEPENDS} |
DRC | c377ebd | 2011-06-25 08:48:19 +0000 | [diff] [blame] | 77 | SOURCES release/maketarball) |
| 78 | |
| 79 | add_custom_target(servertarball sh release/maketarball server |
DRC | 7636ad0 | 2011-10-04 04:03:34 +0000 | [diff] [blame] | 80 | DEPENDS ${TARBALL_DEPENDS} |
DRC | c377ebd | 2011-06-25 08:48:19 +0000 | [diff] [blame] | 81 | SOURCES release/maketarball) |
| 82 | |
| 83 | endif() #UNIX |
| 84 | |
| 85 | # |
DRC | 1a18407 | 2011-06-24 06:55:18 +0000 | [diff] [blame] | 86 | # Common |
| 87 | # |
| 88 | |
Pierre Ossman | 95e28f7 | 2012-03-27 10:24:53 +0000 | [diff] [blame] | 89 | install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION ${DOC_DIR}) |
Peter Åstrand (astrand) | 6011f96 | 2017-11-29 09:11:29 +0100 | [diff] [blame] | 90 | install(FILES ${CMAKE_SOURCE_DIR}/README.rst DESTINATION ${DOC_DIR}) |