define wxUSE_GUI as 0 when --disable-gui is used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
9
configure
vendored
9
configure
vendored
@@ -33543,12 +33543,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if test "$wxUSE_GUI" = "yes"; then
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define wxUSE_GUI 1
|
#define wxUSE_GUI 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
fi
|
else
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define wxUSE_GUI 0
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$wxUSE_UNIX" = "yes"; then
|
if test "$wxUSE_UNIX" = "yes"; then
|
||||||
|
26
configure.in
26
configure.in
@@ -4496,19 +4496,21 @@ dnl the library may be built without GUI classes at all
|
|||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
if test "$wxUSE_GUI" = "yes"; then
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
AC_DEFINE(wxUSE_GUI)
|
AC_DEFINE(wxUSE_GUI)
|
||||||
|
|
||||||
dnl the things we always pull in the GUI version of the library:
|
dnl the things we always pull in the GUI version of the library:
|
||||||
dnl 1. basic things like wxApp, wxWindow, wxControl, wxFrame, wxDialog (the
|
dnl 1. basic things like wxApp, wxWindow, wxControl, wxFrame, wxDialog (the
|
||||||
dnl library really can't be built without those)
|
dnl library really can't be built without those)
|
||||||
dnl 2. basic controls: wxButton, wxStaticText, wxTextCtrl (these are used in
|
dnl 2. basic controls: wxButton, wxStaticText, wxTextCtrl (these are used in
|
||||||
dnl almost any program and the first 2 are needed to show a message box
|
dnl almost any program and the first 2 are needed to show a message box
|
||||||
dnl which want to be always able to do)
|
dnl which want to be always able to do)
|
||||||
dnl 3. GDI stuff: icon, cursors and all that. Although it would be very nice
|
dnl 3. GDI stuff: icon, cursors and all that. Although it would be very nice
|
||||||
dnl to compile without them (if the app doesn't do any drawing, it doesn't
|
dnl to compile without them (if the app doesn't do any drawing, it doesn't
|
||||||
dnl need the dcs, pens, brushes, ...), this just can't be done now
|
dnl need the dcs, pens, brushes, ...), this just can't be done now
|
||||||
dnl 4. menu stuff: wxMenu, wxMenuBar, wxMenuItem
|
dnl 4. menu stuff: wxMenu, wxMenuBar, wxMenuItem
|
||||||
dnl 5. misc stuff: timers, settings, message box
|
dnl 5. misc stuff: timers, settings, message box
|
||||||
|
else
|
||||||
|
AC_DEFINE(wxUSE_GUI, 0)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user