view packaging/CMakeLists.txt @ 1248:9f5893faa60b

(issue143) Only show warning when multiple users exist. This enumerates the ProfileList registry key and looks for SID's starting with S-1-5-21- (like the certificate installer does) and count the users. Only when more then one users are found the warning is shown. Otherwise the nss-installer will be removed.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 25 Sep 2014 12:04:54 +0200
parents a72d59f8c3ea
children
line wrap: on
line source
# Configure packaging script for testing
configure_file (win-createpackage.sh.in win-createpackage.sh @ONLY)
configure_file (create-dist-package.sh.in create-dist-package.sh @ONLY)
configure_file (linux-createpackage.sh.in linux-createpackage.sh @ONLY)
configure_file (linux-installer.inc linux-installer.inc COPYONLY)
configure_file (linux-uninstaller.inc linux-uninstaller.inc COPYONLY)
configure_file (linux-installer-common.inc.in linux-installer-common.inc @ONLY)
configure_file (linux-installer-uninstall.inc linux-installer-uninstall.inc COPYONLY)
configure_file (linux-installer.l10n-de linux-installer.l10n-de COPYONLY)
configure_file (linux-uninstaller.l10n-de linux-uninstaller.l10n-de COPYONLY)
configure_file (linux-installer-common.l10n-de linux-installer-common.l10n-de COPYONLY)
configure_file (linux-installer-uninstall.l10n-de linux-installer-uninstall.l10n-de COPYONLY)

if (WIN32)
   # Build the nss safer plugin.
   include_directories(${CMAKE_SOURCE_DIR}/common)

   add_library(desktopshellrun SHARED desktopshellrun.cpp)
   target_link_libraries(desktopshellrun
      trustbridge_common
      -luserenv
      -lshell32
      -lcrypt32
      -lssp
      -lshlwapi
      ${POLARSSL_LIBRARIES}) # trustbridge_common pulls it in.
   set_target_properties(desktopshellrun PROPERTIES PREFIX "")
   set_target_properties(desktopshellrun PROPERTIES OUTPUT_NAME "DesktopShellRun")
endif()

http://wald.intevation.org/projects/trustbridge/