NSIS/Contrib/NSIS Menu/wx/wxbuild.bat
kichik 0a2692fb22 check for setup.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5155 212acab6-be3b-0410-9dea-997c60f758d6
2007-05-23 23:32:42 +00:00

18 lines
651 B
Batchfile

if not exist setup.h goto setup_error
if not exist "%WXWIN%\build\msw\makefile.vc" goto error
set OLDCD=%CD%
cd /D "%WXWIN%\build\msw"
copy /y "%WXWIN%\include\wx\msw\setup.h" "%OLDCD%\old_setup.h"
copy /y "%OLDCD%\setup.h" "%WXWIN%\include\wx\msw\setup.h"
rd /S ..\..\lib\vc_libnsis
rd /S vc_mswnsis
nmake -f makefile.vc CFG=nsis BUILD=release RUNTIME_LIBS=dynamic SHARED=0 UNICODE=0 WXUNIV=0 USE_OPENGL=0 USE_ODBC=0 USE_HTML=1 USE_XRC=0
copy /y "%OLDCD%\old_setup.h" "%WXWIN%\include\wx\msw\setup.h"
cd /D "%OLDCD%"
goto done
:error
echo WXWIN is not properly set
goto done
:setup_error
echo setup.h cannot be found, wrong working directory?
:done