Subversion Repositories gelsvn

Rev

Rev 284 | Blame | Compare with Previous | Last modification | View Log | RSS feed

!include "LogicLib.nsh" 
!include "WinMessages.NSH"

; The name of the installer
Name "GEL Externals"

; The file to write
OutFile "GELsrc.exe"

; The default installation directory
InstallDir $DOCUMENTS\GEL

;--------------------------------

; Pages

Page directory
Page components

InstType "Full"
InstType "Custom"

Section "CGLA" CGLA_flag
SectionIn 1
SectionEnd


Section "Geometry" Geometry_flag
SectionIn 1
SectionEnd

Section "GLGraphics" GLGraphics_flag
SectionIn 1
SectionEnd

Section "HMesh" HMesh_flag
SectionIn 1
SectionEnd

Section "LinAlg" LinAlg_flag
SectionIn 1
SectionEnd

Section "Util" Util_flag
SectionIn 1
SectionEnd

Page instfiles

;--------------------------------

Section ""

  Var /GLOBAL CGLA
  Var /GLOBAL Geometry 
  Var /GLOBAL GLGraphics 
  Var /GLOBAL HMesh 
  Var /GLOBAL LinAlg
  Var /GLOBAL Util 
 
  # Get flags of each section into appropriate variables
  SectionGetFlags ${CGLA_flag} $CGLA
  SectionGetFlags ${Geometry_flag} $Geometry
  SectionGetFlags ${GLGraphics_flag} $GLGraphics
  SectionGetFlags ${HMesh_flag} $HMesh
  SectionGetFlags ${LinAlg_flag} $LinAlg
  SectionGetFlags ${Util_flag} $Util
  
  ;MessageBox MB_OK "Externals: $0 $\r$\n GEL: $1 $\r$\n "

  CreateDirectory $INSTDIR\apps
  CreateDirectory $INSTDIR\test
  SetOutPath $INSTDIR\src
  File GEL\src\gel.doxygen

  SetOutPath $INSTDIR
  File /r GEL\data
  File /r GEL\makefiles
  File GEL\*.*
  
  
  ${If} $CGLA = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\CGLA
    SetOutPath $INSTDIR\test
    File /r GEL\test\CGLA-covariance
    File /r GEL\test\CGLA-mat
    File /r GEL\test\CGLA-ogl
    File /r GEL\test\CGLA-vec
    File /r GEL\test\CGLA-simple
  ${EndIf}
  ${If} $Geometry = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\Geometry
    SetOutPath $INSTDIR\test
    File /r GEL\test\Geometry-kdtree
  ${EndIf}
  ${If} $LinAlg = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\LinAlg
    SetOutPath $INSTDIR\test
    File /r GEL\test\LinAlg-leastsq
  ${EndIf}
  ${If} $Geometry = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\Util
    SetOutPath $INSTDIR\test
    File /r GEL\test\Util-resman
  ${EndIf}
  ${If} $GLGraphics = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\GLGraphics
    SetOutPath $INSTDIR\apps
    File /r GEL\apps\OBJViewer
  ${EndIf}
  ${If} $HMesh = 1
    SetOutPath $INSTDIR\src
    File /r GEL\src\HMesh
    SetOutPath $INSTDIR\apps
    File /r GEL\apps\BloomenthalPolygonize
    File /r GEL\apps\BoundaryCollapse
    File /r GEL\apps\Decimator
    File /r GEL\apps\VolumePolygonize
  ${EndIf}
  
  ;ExecWait '"$INSTDIR\build_solution.bat" $INSTDIR' $0
  ; DetailPrint "some program returned $0"
  ;RMDir /r $INSTDIR\makefiles
  Delete $INSTDIR\Makefile
  ;Delete $INSTDIR\*.mwc
  ;Delete $INSTDIR\*.mpc
  ;Delete /REBOOTOK $INSTDIR\build_solutions.bat


SectionEnd ; end the section