NEXTCLOUD.cmake 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. set( APPLICATION_NAME "Nextcloud" )
  2. set( APPLICATION_SHORTNAME "Nextcloud" )
  3. set( APPLICATION_EXECUTABLE "nextcloud" )
  4. set( APPLICATION_DOMAIN "nextcloud.com" )
  5. set( APPLICATION_VENDOR "Nextcloud GmbH" )
  6. set( APPLICATION_UPDATE_URL "https://updates.nextcloud.org/client/" CACHE STRING "URL for updater" )
  7. set( APPLICATION_HELP_URL "" CACHE STRING "URL for the help menu" )
  8. set( APPLICATION_ICON_NAME "Nextcloud" )
  9. set( APPLICATION_ICON_SET "SVG" )
  10. set( APPLICATION_SERVER_URL "" CACHE STRING "URL for the server to use. If entered, the UI field will be pre-filled with it" )
  11. set( APPLICATION_SERVER_URL_ENFORCE ON ) # If set and APPLICATION_SERVER_URL is defined, the server can only connect to the pre-defined URL
  12. set( APPLICATION_REV_DOMAIN "com.nextcloud.desktopclient" )
  13. set( APPLICATION_VIRTUALFILE_SUFFIX "nextcloud" CACHE STRING "Virtual file suffix (not including the .)")
  14. set( APPLICATION_OCSP_STAPLING_ENABLED OFF )
  15. set( APPLICATION_FORBID_BAD_SSL OFF )
  16. set( LINUX_PACKAGE_SHORTNAME "nextcloud" )
  17. set( LINUX_APPLICATION_ID "${APPLICATION_REV_DOMAIN}.${LINUX_PACKAGE_SHORTNAME}")
  18. set( THEME_CLASS "NextcloudTheme" )
  19. set( WIN_SETUP_BITMAP_PATH "${CMAKE_SOURCE_DIR}/admin/win/nsi" )
  20. set( MAC_INSTALLER_BACKGROUND_FILE "${CMAKE_SOURCE_DIR}/admin/osx/installer-background.png" CACHE STRING "The MacOSX installer background image")
  21. # set( THEME_INCLUDE "${OEM_THEME_DIR}/mytheme.h" )
  22. # set( APPLICATION_LICENSE "${OEM_THEME_DIR}/license.txt )
  23. option( WITH_CRASHREPORTER "Build crashreporter" OFF )
  24. #set( CRASHREPORTER_SUBMIT_URL "https://crash-reports.owncloud.com/submit" CACHE STRING "URL for crash reporter" )
  25. #set( CRASHREPORTER_ICON ":/owncloud-icon.png" )
  26. ## Updater options
  27. option( BUILD_UPDATER "Build updater" OFF )
  28. option( WITH_PROVIDERS "Build with providers list" ON )
  29. ## Theming options
  30. set(NEXTCLOUD_BACKGROUND_COLOR "#0082c9" CACHE STRING "Default Nextcloud background color")
  31. set( APPLICATION_WIZARD_HEADER_BACKGROUND_COLOR ${NEXTCLOUD_BACKGROUND_COLOR} CACHE STRING "Hex color of the wizard header background")
  32. set( APPLICATION_WIZARD_HEADER_TITLE_COLOR "#ffffff" CACHE STRING "Hex color of the text in the wizard header")
  33. option( APPLICATION_WIZARD_USE_CUSTOM_LOGO "Use the logo from ':/client/theme/colored/wizard_logo.(png|svg)' else the default application icon is used" ON )
  34. #
  35. ## Windows Shell Extensions & MSI - IMPORTANT: Generate new GUIDs for custom builds with "guidgen" or "uuidgen"
  36. #
  37. if(WIN32)
  38. # Context Menu
  39. set( WIN_SHELLEXT_CONTEXT_MENU_GUID "{BC6988AB-ACE2-4B81-84DC-DC34F9B24401}" )
  40. # Overlays
  41. set( WIN_SHELLEXT_OVERLAY_GUID_ERROR "{E0342B74-7593-4C70-9D61-22F294AAFE05}" )
  42. set( WIN_SHELLEXT_OVERLAY_GUID_OK "{E1094E94-BE93-4EA2-9639-8475C68F3886}" )
  43. set( WIN_SHELLEXT_OVERLAY_GUID_OK_SHARED "{E243AD85-F71B-496B-B17E-B8091CBE93D2}" )
  44. set( WIN_SHELLEXT_OVERLAY_GUID_SYNC "{E3D6DB20-1D83-4829-B5C9-941B31C0C35A}" )
  45. set( WIN_SHELLEXT_OVERLAY_GUID_WARNING "{E4977F33-F93A-4A0A-9D3C-83DEA0EE8483}" )
  46. # MSI Upgrade Code (without brackets)
  47. set( WIN_MSI_UPGRADE_CODE "FD2FCCA9-BB8F-4485-8F70-A0621B84A7F4" )
  48. # Windows build options
  49. option( BUILD_WIN_MSI "Build MSI scripts and helper DLL" OFF )
  50. option( BUILD_WIN_TOOLS "Build Win32 migration tools" OFF )
  51. endif()