X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a571515b08248b4824959bf03de34cdac0d5d1d5..13333d25e7025f0903f45d33581243f3643dbbe2:/buildtools/Cmake/simgrid.nsi.in diff --git a/buildtools/Cmake/simgrid.nsi.in b/buildtools/Cmake/simgrid.nsi.in index c6b2f4d882..b57b18a95d 100644 --- a/buildtools/Cmake/simgrid.nsi.in +++ b/buildtools/Cmake/simgrid.nsi.in @@ -4,7 +4,7 @@ ;Interface Configuration !define MUI_HEADERIMAGE - !define MUI_HEADERIMAGE_BITMAP "@CMAKE_HOME_DIRECTORY@\doc\webcruft\simgrid_logo_win.bmp" ; optional + !define MUI_HEADERIMAGE_BITMAP "@CMAKE_HOME_DIRECTORY@\doc\webcruft\simgrid_logo_win_2011.bmp" ; optional !define MUI_ABORTWARNING ;-------------------------------- @@ -27,7 +27,7 @@ ;-------------------------------- Name "Simgrid" -outFile "SimGrid@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@_@CMAKE_SYSTEM_PROCESSOR@@BIN_EXE@" +outFile "SimGrid@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@_@NSIS_WIN_VERSION@@BIN_EXE@" Icon "@CMAKE_HOME_DIRECTORY@\doc\webcruft\SimGrid.ico" # set the default installation directory @@ -35,11 +35,21 @@ InstallDir c:\SimGrid@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VE Section "Libraries and Headers" LibSection + setOutPath $INSTDIR + file @CMAKE_HOME_DIRECTORY@\AUTHORS + file @CMAKE_HOME_DIRECTORY@\Changelog + file @CMAKE_HOME_DIRECTORY@\COPYING + file @CMAKE_HOME_DIRECTORY@\LICENSE-LGPL-2.1 + file @CMAKE_HOME_DIRECTORY@\NEWS + # install lib CreateDirectory $INSTDIR\lib setOutPath $INSTDIR\lib file lib\libgras.@LIB_EXE@ file lib\libsimgrid.@LIB_EXE@ + file /nonfatal lib\libsimgrid.dll + file /nonfatal lib\libsimgrid.dll.a + file /nonfatal lib\libsimgrid.ref #install headers CreateDirectory $INSTDIR\include @@ -84,10 +94,14 @@ Section "Libraries and Headers" LibSection file @CMAKE_HOME_DIRECTORY@\include\xbt\mmalloc.h file @CMAKE_HOME_DIRECTORY@\include\xbt\replay_trace_reader.h file @CMAKE_HOME_DIRECTORY@\include\xbt\parmap.h - - CreateDirectory $INSTDIR\include\mc - setOutPath $INSTDIR\include\mc - file @CMAKE_HOME_DIRECTORY@\include\mc\modelchecker.h + file @CMAKE_HOME_DIRECTORY@\include\xbt\automaton.h + file @CMAKE_HOME_DIRECTORY@\include\xbt\automatonparse_promela.h + file @CMAKE_HOME_DIRECTORY@\include\xbt\datadesc.h + + CreateDirectory $INSTDIR\include\simgrid + setOutPath $INSTDIR\include\simgrid + file @CMAKE_HOME_DIRECTORY@\include\simgrid\platf.h + file @CMAKE_HOME_DIRECTORY@\include\simgrid\modelchecker.h CreateDirectory $INSTDIR\include\msg setOutPath $INSTDIR\include\msg @@ -115,7 +129,6 @@ Section "Libraries and Headers" LibSection CreateDirectory $INSTDIR\include\gras setOutPath $INSTDIR\include\gras - file @CMAKE_HOME_DIRECTORY@\include\gras\datadesc.h file @CMAKE_HOME_DIRECTORY@\include\gras\transport.h file @CMAKE_HOME_DIRECTORY@\include\gras\virtu.h file @CMAKE_HOME_DIRECTORY@\include\gras\emul.h @@ -149,11 +162,6 @@ Section "Binaries" BinSection file bin\graphicator@BIN_EXE@ file bin\gras_stub_generator@BIN_EXE@ file bin\simgrid_update_xml - file bin\smpicc - file bin\smpif2c - file bin\smpiff - file bin\smpirun - file bin\tesh SectionEnd Section "Documentation" DocSection @@ -165,19 +173,45 @@ Section "Documentation" DocSection # create a shortcut in the start menu programs directory CreateDirectory "$SMPROGRAMS\SimGrid" createShortCut "$SMPROGRAMS\SimGrid\Documentation.lnk" "$INSTDIR\doc\html\index.html" + createShortCut "$SMPROGRAMS\SimGrid\Website.lnk" "http://simgrid.gforge.inria.fr/" SectionEnd Section "Examples" ExamplesSection - - # install examples + CreateDirectory $INSTDIR\examples setOutPath $INSTDIR\examples + + #install examples for platforms file /r @CMAKE_HOME_DIRECTORY@\examples\platforms + + # install example HelloWorld file /r @CMAKE_HOME_DIRECTORY@\doc\HelloWorld - # create a shortcut in the start menu programs directory - createShortCut "$SMPROGRAMS\SimGrid\HelloWorld project.lnk" "$INSTDIR\examples\HelloWorld" + + # install example MasterSlave + CreateDirectory $INSTDIR\examples\MasterSlave + setOutPath $INSTDIR\examples\MasterSlave + file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\masterslave_forwarder.c + file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\deployment_masterslave_forwarder.xml + file @CMAKE_HOME_DIRECTORY@\examples\msg\msg_platform.xml + file @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\CMakeLists.txt + file @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\FindPCRE.cmake + + # create shortcuts in the start menu programs directory + CreateDirectory "$SMPROGRAMS\SimGrid\Examples\" + createShortCut "$SMPROGRAMS\SimGrid\Examples\HelloWorld project.lnk" "$INSTDIR\examples\HelloWorld" + createShortCut "$SMPROGRAMS\SimGrid\Examples\MasterSlave project.lnk" "$INSTDIR\examples\MasterSlave" SectionEnd +Section "Pcre library" PCRESection + # install pcre library + CreateDirectory $INSTDIR\GnuWin32 + setOutPath $INSTDIR\GnuWin32 + file /r "@PCRE_LIBRARY_PATH@\lib" + file /r "@PCRE_LIBRARY_PATH@\include" + file /nonfatal /r "@PCRE_LIBRARY_PATH@\bin" + file /nonfatal /r "@PCRE_LIBRARY_PATH@\man" + file /nonfatal /r "@PCRE_LIBRARY_PATH@\share" +SectionEnd # default section start section @@ -194,8 +228,11 @@ section !define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"' !define env_hkcu 'HKCU "Environment"' # Set Variables - WriteRegExpandStr ${env_hklm} SIMGRID_ROOT $INSTDIR - WriteRegExpandStr ${env_hklm} SIMGRID_VERSION @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@ + WriteRegExpandStr ${env_hkcu} SIMGRID_ROOT $INSTDIR + WriteRegExpandStr ${env_hkcu} SIMGRID_VERSION @SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@ + + WriteRegExpandStr ${env_hkcu} SIMGRID_PCRE_LIBRARY_PATH $INSTDIR\GnuWin32 + WriteRegExpandStr ${env_hkcu} SIMGRID_PCRE_LIBRARY_VERSION "8.21" WriteRegStr HKCU "SOFTWARE\SimGrid" "Version" "@SIMGRID_VERSION_MAJOR@.@SIMGRID_VERSION_MINOR@.@SIMGRID_VERSION_PATCH@" WriteRegStr HKCU "SOFTWARE\SimGrid" "InstallPath" "$INSTDIR" @@ -209,17 +246,20 @@ LangString DESC_LibSection ${LANG_ENGLISH} "Install Simgrid and gras libraries LangString DESC_BinSection ${LANG_ENGLISH} "Install some useful tools for Simgrid." LangString DESC_DocSection ${LANG_ENGLISH} "Generated (doxygen) documentation." LangString DESC_ExamplesSection ${LANG_ENGLISH} "Simgrid's HelloWorld example and some classical platforms." +LangString DESC_PCRESection ${LANG_ENGLISH} "Install the PCRE and PCREPOSIX libraries for SimGrid." LangString DESC_LibSection ${LANG_FRENCH} "Installer les librairies Simgrid et Gras et leurs EntĂȘtes." LangString DESC_BinSection ${LANG_FRENCH} "Installer les outils optionnels." LangString DESC_DocSection ${LANG_FRENCH} "Installer la documentation." LangString DESC_ExamplesSection ${LANG_FRENCH} "Installer un exemple 'HelloWorld' et des fichiers de plate-formes types." +LangString DESC_PCRESection ${LANG_FRENCH} "Installer les librairies PCRE et PCREPOSIX for SimGrid." !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${LibSection} $(DESC_LibSection) !insertmacro MUI_DESCRIPTION_TEXT ${BinSection} $(DESC_BinSection) !insertmacro MUI_DESCRIPTION_TEXT ${DocSection} $(DESC_DocSection) !insertmacro MUI_DESCRIPTION_TEXT ${ExamplesSection} $(DESC_ExamplesSection) + !insertmacro MUI_DESCRIPTION_TEXT ${PCRESection} $(DESC_PCRESection) !insertmacro MUI_FUNCTION_DESCRIPTION_END # create a section to define what the uninstaller does. @@ -313,7 +353,16 @@ section "Uninstall" # delete link delete "$SMPROGRAMS\SimGrid\Uninstall simgrid.lnk" delete "$SMPROGRAMS\SimGrid\Documentation.lnk" - delete "$SMPROGRAMS\SimGrid\HelloWorld project.lnk" + delete "$SMPROGRAMS\SimGrid\Website.lnk" + delete "$SMPROGRAMS\SimGrid\Examples\HelloWorld project.lnk" + delete "$SMPROGRAMS\SimGrid\Examples\MasterSlave project.lnk" + + # delete EXTRA FILES + delete $INSTDIR\AUTHORS + delete $INSTDIR\Changelog + delete $INSTDIR\COPYING + delete $INSTDIR\LICENSE-LGPL-2.1 + delete $INSTDIR\NEWS # now delete directories RMDir "$INSTDIR\bin" @@ -331,12 +380,21 @@ section "Uninstall" RMDir "$INSTDIR\include" RMDir /r "$INSTDIR\doc" RMDir /r "$INSTDIR\examples" + RMDir "$SMPROGRAMS\SimGrid\Examples" RMDir "$SMPROGRAMS\SimGrid" + # delete PCRE + RMDir /r "$INSTDIR\GnuWin32" + # Delete variable - DeleteRegValue ${env_hklm} SIMGRID_ROOT - DeleteRegValue ${env_hklm} SIMGRID_VERSION - DeleteRegKey HKCU "SOFTWARE\SimGrid" + DeleteRegValue ${env_hkcu} SIMGRID_ROOT + DeleteRegValue ${env_hkcu} SIMGRID_VERSION + DeleteRegValue ${env_hkcu} SIMGRID_PCRE_LIBRARY_PATH + DeleteRegValue ${env_hkcu} SIMGRID_PCRE_LIBRARY_VERSION + DeleteRegKey HKCU "SOFTWARE\SimGrid" + + # delete INSTDIR + RMDir /r "$INSTDIR" # uninstall section end sectionEnd \ No newline at end of file