2010-03-24 17:22:56 +00:00
|
|
|
@echo off
|
2007-05-23 23:32:42 +00:00
|
|
|
if not exist setup.h goto setup_error
|
2007-03-09 18:11:53 +00:00
|
|
|
if not exist "%WXWIN%\build\msw\makefile.vc" goto error
|
2007-02-24 18:57:55 +00:00
|
|
|
set OLDCD=%CD%
|
2007-03-27 19:14:35 +00:00
|
|
|
cd /D "%WXWIN%\build\msw"
|
2010-03-24 17:22:56 +00:00
|
|
|
rem Save the old setup.h as old_setup.h in the starting dir.
|
2007-03-09 18:11:53 +00:00
|
|
|
copy /y "%WXWIN%\include\wx\msw\setup.h" "%OLDCD%\old_setup.h"
|
2010-03-24 17:22:56 +00:00
|
|
|
|
|
|
|
if "%1" == "unicode" goto unicode
|
|
|
|
if "%1" == "ansi" goto ansi
|
|
|
|
:ansi
|
|
|
|
rem Ask if we want to delete this dir.
|
|
|
|
echo Deleting...
|
2007-03-09 18:13:24 +00:00
|
|
|
rd /S ..\..\lib\vc_libnsis
|
2010-03-24 17:22:56 +00:00
|
|
|
|
|
|
|
echo ### building ANSI version ###
|
|
|
|
rem Copy the ANSI version of setup.h to WXWIN setup.
|
|
|
|
copy /y "%OLDCD%\setup.h" "%WXWIN%\include\wx\msw\setup.h"
|
|
|
|
echo Deleting...
|
2007-03-09 18:13:24 +00:00
|
|
|
rd /S vc_mswnsis
|
2010-03-24 17:22:56 +00:00
|
|
|
nmake -f makefile.vc CFG=nsis BUILD=release RUNTIME_LIBS=static SHARED=0 UNICODE=0 WXUNIV=0 USE_OPENGL=0 USE_ODBC=0 USE_HTML=1 USE_XRC=0
|
|
|
|
if "%1" == "" goto unicode
|
|
|
|
if "%1" == "all" goto unicode
|
|
|
|
goto finish
|
|
|
|
|
|
|
|
:unicode
|
|
|
|
rem Ask if we want to delete this dir.
|
|
|
|
echo Deleting...
|
|
|
|
rd /S ..\..\lib\vc_libunsis
|
|
|
|
|
|
|
|
echo ### building UNICODE version ###
|
|
|
|
rem Copy the UNICODE version of setup.h to WXWIN setup.
|
|
|
|
copy /y "%OLDCD%\setup_unicode.h" "%WXWIN%\include\wx\msw\setup.h"
|
|
|
|
echo Deleting...
|
|
|
|
rd /S vc_mswunsis
|
|
|
|
nmake -f makefile.vc CFG=unsis BUILD=release RUNTIME_LIBS=static SHARED=0 UNICODE=1 WXUNIV=0 USE_OPENGL=0 USE_ODBC=0 USE_HTML=1 USE_XRC=0
|
|
|
|
|
|
|
|
:finish
|
|
|
|
rem Restore the setup.h
|
2007-03-09 18:11:53 +00:00
|
|
|
copy /y "%OLDCD%\old_setup.h" "%WXWIN%\include\wx\msw\setup.h"
|
2007-03-27 19:14:35 +00:00
|
|
|
cd /D "%OLDCD%"
|
2007-02-24 18:57:55 +00:00
|
|
|
goto done
|
|
|
|
:error
|
|
|
|
echo WXWIN is not properly set
|
2007-05-23 23:32:42 +00:00
|
|
|
goto done
|
|
|
|
:setup_error
|
|
|
|
echo setup.h cannot be found, wrong working directory?
|
2007-02-24 18:57:55 +00:00
|
|
|
:done
|