|
@@ -41,6 +41,9 @@
|
|
|
|
|
|
|
|
pushd
|
|
pushd
|
|
|
|
|
|
|
|
|
|
+rem Convert %OBJEST% to absolute.
|
|
|
|
|
+call :relative %OBJDEST%
|
|
|
|
|
+
|
|
|
if [%BUILD_DEBUG%] == [optimize] (
|
|
if [%BUILD_DEBUG%] == [optimize] (
|
|
|
set LIBROOT=..\..\..\..\dist\WINNT5.0_OPT.OBJ
|
|
set LIBROOT=..\..\..\..\dist\WINNT5.0_OPT.OBJ
|
|
|
) else (
|
|
) else (
|
|
@@ -49,6 +52,8 @@ if [%BUILD_DEBUG%] == [optimize] (
|
|
|
|
|
|
|
|
echo %LIBROOT%
|
|
echo %LIBROOT%
|
|
|
|
|
|
|
|
|
|
+set WXSDIR=%CD%\wix
|
|
|
|
|
+
|
|
|
set INCLUDE=%INCLUDE%;%CD%\%LIBROOT%\ldapsdk\include;%CD%\%LIBROOT%\nspr\include;%CD%\%LIBROOT%\nss\include
|
|
set INCLUDE=%INCLUDE%;%CD%\%LIBROOT%\ldapsdk\include;%CD%\%LIBROOT%\nspr\include;%CD%\%LIBROOT%\nss\include
|
|
|
set LIB=%LIB%;%CD%\%LIBROOT%\ldapsdk\lib;%CD%\%LIBROOT%\nspr\lib;%CD%\%LIBROOT%\nss\lib
|
|
set LIB=%LIB%;%CD%\%LIBROOT%\ldapsdk\lib;%CD%\%LIBROOT%\nspr\lib;%CD%\%LIBROOT%\nss\lib
|
|
|
set PATH=%PATH%;%CD%\%LIBROOT%\wix
|
|
set PATH=%PATH%;%CD%\%LIBROOT%\wix
|
|
@@ -56,67 +61,68 @@ set PATH=%PATH%;%CD%\%LIBROOT%\wix
|
|
|
set OK=0
|
|
set OK=0
|
|
|
|
|
|
|
|
cd passsync
|
|
cd passsync
|
|
|
|
|
+echo Entering %CD%
|
|
|
|
|
|
|
|
:BUILD
|
|
:BUILD
|
|
|
nmake passsync.mak
|
|
nmake passsync.mak
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
-copy /Y Debug\passsync.exe ..\Wix
|
|
|
|
|
|
|
+copy /Y %OBJDEST%\passsync\passsync.exe %OBJDEST%\
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
cd ..\passhook
|
|
cd ..\passhook
|
|
|
|
|
+echo Entering %CD%
|
|
|
|
|
|
|
|
nmake passhook.mak
|
|
nmake passhook.mak
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
-copy /Y Debug\passhook.dll ..\Wix
|
|
|
|
|
|
|
+copy /Y %OBJDEST%\passhook\passhook.dll %OBJDEST%\
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
:PKG
|
|
:PKG
|
|
|
-if NOT EXIST ..\Wix (
|
|
|
|
|
- echo ERROR: Cannot find Wix folder.
|
|
|
|
|
- set OK=1
|
|
|
|
|
- goto :END )
|
|
|
|
|
-
|
|
|
|
|
-cd ..\Wix
|
|
|
|
|
|
|
|
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldap32v50.dll (
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldap32v50.dll (
|
|
|
- copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldap32v50.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldap32v50.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldapssl32v50.dll (
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldapssl32v50.dll (
|
|
|
- copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldapssl32v50.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldapssl32v50.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldappr32v50.dll (
|
|
if EXIST ..\%LIBROOT%\ldapsdk\lib\nsldappr32v50.dll (
|
|
|
- copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldappr32v50.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\ldapsdk\lib\nsldappr32v50.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libnspr4.dll (
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libnspr4.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nspr\lib\libnspr4.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nspr\lib\libnspr4.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libplds4.dll (
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libplds4.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nspr\lib\libplds4.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nspr\lib\libplds4.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libplc4.dll (
|
|
if EXIST ..\%LIBROOT%\nspr\lib\libplc4.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nspr\lib\libplc4.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nspr\lib\libplc4.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nss\lib\nss3.dll (
|
|
if EXIST ..\%LIBROOT%\nss\lib\nss3.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nss\lib\nss3.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nss\lib\nss3.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nss\lib\ssl3.dll (
|
|
if EXIST ..\%LIBROOT%\nss\lib\ssl3.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nss\lib\ssl3.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nss\lib\ssl3.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
if EXIST ..\%LIBROOT%\nss\lib\softokn3.dll (
|
|
if EXIST ..\%LIBROOT%\nss\lib\softokn3.dll (
|
|
|
- copy /Y ..\%LIBROOT%\nss\lib\softokn3.dll
|
|
|
|
|
|
|
+ copy /Y ..\%LIBROOT%\nss\lib\softokn3.dll %OBJDEST%\
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-candle PassSync.wxs
|
|
|
|
|
|
|
+xcopy /E /Y /I %WXSDIR%\Binary %OBJDEST%\Binary
|
|
|
|
|
+
|
|
|
|
|
+cd %OBJDEST%
|
|
|
|
|
+echo Entering %CD%
|
|
|
|
|
+
|
|
|
|
|
+candle %WXSDIR%\PassSync.wxs
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
light PassSync.wixobj
|
|
light PassSync.wixobj
|
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
set /a OK=%OK% + %ERRORLEVEL%
|
|
|
|
|
|
|
|
-if NOT [%BUILD_DEBUG%] == [] (
|
|
|
|
|
- if EXIST PassSync.msi (move /Y PassSync.msi PassSync-%BUILD_DEBUG%.msi)
|
|
|
|
|
-)
|
|
|
|
|
|
|
+:relative
|
|
|
|
|
+set OBJDEST=%~f1
|
|
|
|
|
+goto :EOF
|
|
|
|
|
|
|
|
:END
|
|
:END
|
|
|
popd
|
|
popd
|