Subversion Repositories gelsvn

Rev

Rev 284 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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