Debian Codegraph @

Contrib/NSIS Menu/wx/wxbuild.bat

raw
1 @echo off
2 if not exist setup.h goto setup_error
3 if not exist "%WXWIN%\build\msw\makefile.vc" goto error
4 set OLDCD=%CD%
5 cd /D "%WXWIN%\build\msw"
6 rem Save the old setup.h as old_setup.h in the starting dir.
7 copy /y "%WXWIN%\include\wx\msw\setup.h" "%OLDCD%\old_setup.h"
8
9 if "%1"=="unicode" goto unicode
10 if "%1"=="ansi" goto ansi
11
12 :ansi
13 rem Ask if we want to delete this dir.
14 echo Deleting...
15 rd /S ..\..\lib\vc_libnsis
16
17 echo ### building ANSI version ###
18 rem Copy the ANSI version of setup.h to WXWIN setup.
19 copy /y "%OLDCD%\setup.h" "%WXWIN%\include\wx\msw\setup.h"
20 echo Deleting...
21 rd /S vc_mswnsis
22 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
23 if "%1"=="" goto unicode
24 if "%1"=="all" goto unicode
25 goto finish
26
27 :unicode
28 rem Ask if we want to delete this dir.
29 echo Deleting...
30 rd /S ..\..\lib\vc_libunsis
31
32 echo ### building UNICODE version ###
33 rem Copy the UNICODE version of setup.h to WXWIN setup.
34 copy /y "%OLDCD%\setup.h" "%WXWIN%\include\wx\msw\setup.h"
35 echo Deleting...
36 rd /S vc_mswuunsis
37 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
38
39 :finish
40 rem Restore the setup.h
41 copy /y "%OLDCD%\old_setup.h" "%WXWIN%\include\wx\msw\setup.h"
42 cd /D "%OLDCD%"
43 goto done
44 :error
45 echo WXWIN is not properly set
46 goto done
47 :setup_error
48 echo setup.h cannot be found, wrong working directory?
49 :done