Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add the masterslave forwarder example in win32 installer.
authorunknown <pierre@.(none)>
Mon, 1 Aug 2011 13:14:50 +0000 (15:14 +0200)
committerunknown <pierre@.(none)>
Mon, 1 Aug 2011 13:14:50 +0000 (15:14 +0200)
buildtools/Cmake/simgrid.nsi.in

index 2191dec..a9f0609 100644 (file)
@@ -168,14 +168,29 @@ Section "Documentation" DocSection
        \r
 SectionEnd\r
 Section "Examples" ExamplesSection     \r
-       \r
-       # install examples\r
+\r
        CreateDirectory $INSTDIR\examples\r
        setOutPath $INSTDIR\examples\r
+       \r
+       #install examples for platforms\r
        file /r @CMAKE_HOME_DIRECTORY@\examples\platforms\r
+       \r
+       # install example HelloWorld\r
        file /r @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\r
-       # create a shortcut in the start menu programs directory\r
-       createShortCut  "$SMPROGRAMS\SimGrid\HelloWorld project.lnk"    "$INSTDIR\examples\HelloWorld"  \r
+               \r
+       # install example MasterSlave\r
+       CreateDirectory $INSTDIR\examples\MasterSlave\r
+       setOutPath $INSTDIR\examples\MasterSlave\r
+       file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\masterslave_forwarder.c\r
+       file @CMAKE_HOME_DIRECTORY@\examples\msg\masterslave\deployment_masterslave_forwarder.xml\r
+       file @CMAKE_HOME_DIRECTORY@\examples\msg\msg_platform.xml\r
+       file @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\CMakeLists.txt\r
+       file @CMAKE_HOME_DIRECTORY@\doc\HelloWorld\FindPCRE.cmake\r
+       \r
+       # create shortcuts in the start menu programs directory\r
+       CreateDirectory "$SMPROGRAMS\SimGrid\Examples\"\r
+       createShortCut  "$SMPROGRAMS\SimGrid\Examples\HelloWorld project.lnk"   "$INSTDIR\examples\HelloWorld"\r
+       createShortCut  "$SMPROGRAMS\SimGrid\Examples\MasterSlave project.lnk"  "$INSTDIR\examples\MasterSlave"\r
        \r
 SectionEnd\r
 Section "Pcre library" PCRESection     \r
@@ -335,7 +350,8 @@ section "Uninstall"
        # delete link\r
        delete "$SMPROGRAMS\SimGrid\Uninstall simgrid.lnk"\r
        delete "$SMPROGRAMS\SimGrid\Documentation.lnk"\r
-       delete "$SMPROGRAMS\SimGrid\HelloWorld project.lnk"\r
+       delete "$SMPROGRAMS\SimGrid\Examples\HelloWorld project.lnk"\r
+       delete "$SMPROGRAMS\SimGrid\Examples\MasterSlave project.lnk"\r
        \r
        # now delete directories\r
        RMDir  "$INSTDIR\bin"\r
@@ -353,6 +369,7 @@ section "Uninstall"
        RMDir  "$INSTDIR\include"\r
        RMDir  /r "$INSTDIR\doc"\r
        RMDir  /r "$INSTDIR\examples"\r
+       RMDir  "$SMPROGRAMS\SimGrid\Examples"\r
        RMDir  "$SMPROGRAMS\SimGrid"\r
        \r
        # delete PCRE\r
@@ -363,7 +380,7 @@ section "Uninstall"
        DeleteRegValue ${env_hklm} SIMGRID_VERSION\r
        DeleteRegValue ${env_hklm} SIMGRID_PCRE_LIBRARY_PATH\r
        DeleteRegValue ${env_hklm} SIMGRID_PCRE_LIBRARY_VERSION\r
-      DeleteRegKey HKCU "SOFTWARE\SimGrid"\r
+    DeleteRegKey HKCU "SOFTWARE\SimGrid"\r
     \r
 # uninstall section end\r
 sectionEnd
\ No newline at end of file