# HG changeset patch # User jld # Date 1051182583 0 # Node ID 0db7ff500f453c3bdf35104770ed7a57b7cecc72 # Parent 7d416c5f88a7db9d61f4b7ec4b23c8b521749ad6 * standalone/wxwin/mainwin.cpp: Fix behaviour of user tools warning message box. * standalone/wxwin/makefile.gnu: Deduce OS type using uname tool. diff --git a/host/tools/configtool/ChangeLog b/host/tools/configtool/ChangeLog --- a/host/tools/configtool/ChangeLog +++ b/host/tools/configtool/ChangeLog @@ -1,3 +1,10 @@ +2003-04-24 John Dallaway + + * standalone/wxwin/mainwin.cpp: Fix behaviour of user tools warning + message box. + + * standalone/wxwin/makefile.gnu: Deduce OS type using uname tool. + 2003-04-17 John Dallaway * standalone/wxwin/appsettings.cpp, standalone/wxwin/mainwin.cpp: diff --git a/host/tools/configtool/standalone/wxwin/mainwin.cpp b/host/tools/configtool/standalone/wxwin/mainwin.cpp --- a/host/tools/configtool/standalone/wxwin/mainwin.cpp +++ b/host/tools/configtool/standalone/wxwin/mainwin.cpp @@ -1234,9 +1234,8 @@ void ecMainFrame::OnBuildToolsPath(wxCom wxString msg; msg.Printf(_("Enter the location of the %s build tools\n" - "folder. You can\n" - "type in a path or use the Browse button to\n" - "navigate to a folder."), + "folder. You can type in a path or use the\n" + "Browse button to navigate to a folder."), (const wxChar*) (strPrefix.IsEmpty() ? wxString(wxT("native")) : strPrefix)); wxString caption(_("Build Tools Path")); @@ -1319,7 +1318,7 @@ void ecMainFrame::OnUserToolsPath(wxComm msg.Printf(wxT("%s does not appear to contain the user tools - use this folder anyway?"), (const wxChar*) path); if(strFile.Exists() || - (wxID_YES == wxMessageBox(msg, wxGetApp().GetSettings().GetAppName(), wxICON_QUESTION|wxYES_NO))) + (wxYES == wxMessageBox(msg, wxGetApp().GetSettings().GetAppName(), wxICON_QUESTION|wxYES_NO))) { wxGetApp().GetSettings().m_userToolsDir = path; } diff --git a/host/tools/configtool/standalone/wxwin/makefile.gnu b/host/tools/configtool/standalone/wxwin/makefile.gnu --- a/host/tools/configtool/standalone/wxwin/makefile.gnu +++ b/host/tools/configtool/standalone/wxwin/makefile.gnu @@ -4,7 +4,7 @@ # Usage: # cd emptydir -# make -f /path/to/this/makefile WXDIR=/path/to/wx/installation INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ TCLDIR=/path/to/tcl/installation ] [ OSTYPE=cygwin ] [ DEBUG=1 ] +# make -f /path/to/this/makefile WXDIR=/path/to/wx/installation INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ TCLDIR=/path/to/tcl/installation ] [ DEBUG=1 ] INSTALLDIR=INSTALLDIR_not_defined WXDIR=WXDIR_not_defined @@ -24,7 +24,7 @@ EXTRACPPFLAGS=\ -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE) EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl -ifeq "$(OSTYPE)" "cygwin" +ifneq (,$(findstring CYGWIN, $(shell uname))) PROGRAM=configtool.exe CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags` -D_WIN32 -D__WIN32__ -DSTRICT LDFLAGS=`$(WXDIR)/bin/wx-config --libs` -lshlwapi -Wl,--subsystem,windows