Subversion Repositories gelsvn

Rev

Rev 284 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
273 bj 1
!include "LogicLib.nsh" 
2
!include "WinMessages.NSH"
3
 
4
; The name of the installer
5
Name "GEL Externals"
6
 
7
; The file to write
8
OutFile "GELsrc.exe"
9
 
10
; The default installation directory
11
InstallDir $DOCUMENTS\GEL
12
 
13
;--------------------------------
14
 
15
; Pages
16
 
17
Page directory
18
Page components
19
 
20
InstType "Full"
21
InstType "Custom"
22
 
23
Section "CGLA" CGLA_flag
24
SectionIn 1
25
SectionEnd
26
 
27
 
28
Section "Geometry" Geometry_flag
29
SectionIn 1
30
SectionEnd
31
 
32
Section "GLGraphics" GLGraphics_flag
33
SectionIn 1
34
SectionEnd
35
 
36
Section "HMesh" HMesh_flag
37
SectionIn 1
38
SectionEnd
39
 
40
Section "LinAlg" LinAlg_flag
41
SectionIn 1
42
SectionEnd
43
 
44
Section "Util" Util_flag
45
SectionIn 1
46
SectionEnd
47
 
48
Page instfiles
49
 
50
;--------------------------------
51
 
52
Section ""
53
 
54
  Var /GLOBAL CGLA
55
  Var /GLOBAL Geometry 
56
  Var /GLOBAL GLGraphics 
57
  Var /GLOBAL HMesh 
58
  Var /GLOBAL LinAlg
59
  Var /GLOBAL Util 
60
 
61
  # Get flags of each section into appropriate variables
62
  SectionGetFlags ${CGLA_flag} $CGLA
63
  SectionGetFlags ${Geometry_flag} $Geometry
64
  SectionGetFlags ${GLGraphics_flag} $GLGraphics
65
  SectionGetFlags ${HMesh_flag} $HMesh
66
  SectionGetFlags ${LinAlg_flag} $LinAlg
67
  SectionGetFlags ${Util_flag} $Util
68
 
69
  ;MessageBox MB_OK "Externals: $0 $\r$\n GEL: $1 $\r$\n "
70
 
71
  CreateDirectory $INSTDIR\apps
72
  CreateDirectory $INSTDIR\test
73
  SetOutPath $INSTDIR\src
74
  File GEL\src\gel.doxygen
75
 
76
  SetOutPath $INSTDIR
77
  File /r GEL\data
78
  File /r GEL\makefiles
79
  File GEL\*.*
80
 
81
 
82
  ${If} $CGLA = 1
83
    SetOutPath $INSTDIR\src
84
    File /r GEL\src\CGLA
85
    SetOutPath $INSTDIR\test
86
    File /r GEL\test\CGLA-covariance
87
    File /r GEL\test\CGLA-mat
88
    File /r GEL\test\CGLA-ogl
89
    File /r GEL\test\CGLA-vec
90
    File /r GEL\test\CGLA-simple
91
  ${EndIf}
92
  ${If} $Geometry = 1
93
    SetOutPath $INSTDIR\src
94
    File /r GEL\src\Geometry
95
    SetOutPath $INSTDIR\test
96
    File /r GEL\test\Geometry-kdtree
97
  ${EndIf}
98
  ${If} $LinAlg = 1
99
    SetOutPath $INSTDIR\src
100
    File /r GEL\src\LinAlg
101
    SetOutPath $INSTDIR\test
102
    File /r GEL\test\LinAlg-leastsq
103
  ${EndIf}
104
  ${If} $Geometry = 1
105
    SetOutPath $INSTDIR\src
106
    File /r GEL\src\Util
107
    SetOutPath $INSTDIR\test
108
    File /r GEL\test\Util-resman
109
  ${EndIf}
110
  ${If} $GLGraphics = 1
111
    SetOutPath $INSTDIR\src
112
    File /r GEL\src\GLGraphics
113
    SetOutPath $INSTDIR\apps
114
    File /r GEL\apps\OBJViewer
115
  ${EndIf}
116
  ${If} $HMesh = 1
117
    SetOutPath $INSTDIR\src
118
    File /r GEL\src\HMesh
119
    SetOutPath $INSTDIR\apps
120
    File /r GEL\apps\BloomenthalPolygonize
121
    File /r GEL\apps\BoundaryCollapse
122
    File /r GEL\apps\Decimator
123
    File /r GEL\apps\VolumePolygonize
124
  ${EndIf}
125
 
287 bj 126
  ;ExecWait '"$INSTDIR\build_solution.bat" $INSTDIR' $0
273 bj 127
  ; DetailPrint "some program returned $0"
284 bj 128
  ;RMDir /r $INSTDIR\makefiles
273 bj 129
  Delete $INSTDIR\Makefile
284 bj 130
  ;Delete $INSTDIR\*.mwc
131
  ;Delete $INSTDIR\*.mpc
132
  ;Delete /REBOOTOK $INSTDIR\build_solutions.bat
273 bj 133
 
134
 
135
SectionEnd ; end the section
136
 
137
 
138