Subversion Repositories gelsvn

Rev

Rev 244 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 244 Rev 245
Line 10... Line 10...
10
; The default installation directory
10
; The default installation directory
11
InstallDir $DESKTOP\test
11
InstallDir $DESKTOP\test
12
 
12
 
13
;--------------------------------
13
;--------------------------------
14
 
14
 
15
!macro GELModule mvar mstring
-
 
16
  ${If} ${mvar} = 1
-
 
17
    SetOutPath $INSTDIR\lib
-
 
18
    File current\lib\${mstring}.lib 
-
 
19
 
-
 
20
    SetOutPath $INSTDIR\include
-
 
21
    File /r current\include\${mstring}
-
 
22
  ${EndIf}
-
 
23
!macroend
-
 
24
 
-
 
25
; Pages
15
; Pages
26
 
16
 
27
Page directory
17
Page directory
28
Page components
18
Page components
29
 
19
 
Line 99... Line 89...
99
 
89
 
100
    SetOutPath $INSTDIR
90
    SetOutPath $INSTDIR
101
    File /r externals\include
91
    File /r externals\include
102
  ${EndIf}
92
  ${EndIf}
103
 
93
 
-
 
94
  !macro GELModule mvar mstring
-
 
95
    ${If} ${mvar} = 1
-
 
96
      SetOutPath $INSTDIR\lib
-
 
97
      File current\lib\${mstring}.lib 
-
 
98
 
-
 
99
      SetOutPath $INSTDIR\include
-
 
100
      File /r current\include\${mstring}
-
 
101
    ${EndIf}
-
 
102
  !macroend
-
 
103
 
104
  !insertmacro GELModule $CGLA "CGLA"
104
  !insertmacro GELModule $CGLA "CGLA"
105
  !insertmacro GELModule $Geometry "Geometry"
105
  !insertmacro GELModule $Geometry "Geometry"
106
  !insertmacro GELModule $GLGraphics "GLGraphics"
106
  !insertmacro GELModule $GLGraphics "GLGraphics"
107
  !insertmacro GELModule $HMesh "HMesh"
107
  !insertmacro GELModule $HMesh "HMesh"
108
  !insertmacro GELModule $LinAlg "LinAlg"
108
  !insertmacro GELModule $LinAlg "LinAlg"
Line 119... Line 119...
119
  StrCmp $2 ";" 0 +2 # if last char == ;
119
  StrCmp $2 ";" 0 +2 # if last char == ;
120
    StrCpy $1 $1 -1 # remove last char
120
    StrCpy $1 $1 -1 # remove last char
121
  StrCmp $1 "" AddToPath_NTdoIt
121
  StrCmp $1 "" AddToPath_NTdoIt
122
    StrCpy $0 "$1;%GEL_BIN%"
122
    StrCpy $0 "$1;%GEL_BIN%"
123
  AddToPath_NTdoIt:
123
  AddToPath_NTdoIt:
124
;    WriteRegExpandStr HKCU "Environment" "PATH" $0
124
    WriteRegExpandStr HKCU "Environment" "PATH" $0
125
    SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
125
    SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
126
 
126
 
127
 
127
 
128
SectionEnd ; end the section
128
SectionEnd ; end the section