Neil Hodgson
2013-08-24 04:42:59 UTC
The main MingW system has been updated recently with a different installer and newer headers (1). Headers for Direct2D and DirectWrite are still not included although they are by the MingW64 project. Scintilla has relied on the symbol NTDDI_WIN7 as an indication that a sufficiently recent SDK was in use to enable Direct2D code but the new version of MingW has defined NTDDI_WIN7.
I'd like to update the make file to check whether the headers are available by trying to compile the CheckD2D.cxx file as is done by the nmake file but haven't been able to work out how to do that in GNU make. In nmake its
!IF [cl -c -nologo CheckD2D.cxx >NUL:]
CXXFLAGS=$(CXXFLAGS) -DDISABLE_D2D
!MESSAGE Direct2D is not available
!ENDIF
To ensure that Scintilla can still be built with new downloads from MingW, the -DDISABLE_D2D can be hard-coded into the compile flags. This means that Direct2D will be disabled even with MingW64.
(1) http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0.0/tree/NEWS
Neil
I'd like to update the make file to check whether the headers are available by trying to compile the CheckD2D.cxx file as is done by the nmake file but haven't been able to work out how to do that in GNU make. In nmake its
!IF [cl -c -nologo CheckD2D.cxx >NUL:]
CXXFLAGS=$(CXXFLAGS) -DDISABLE_D2D
!MESSAGE Direct2D is not available
!ENDIF
To ensure that Scintilla can still be built with new downloads from MingW, the -DDISABLE_D2D can be hard-coded into the compile flags. This means that Direct2D will be disabled even with MingW64.
(1) http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0.0/tree/NEWS
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.