aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/scintilla.mak
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-07-17 19:38:23 +1000
committernyamatongwe <unknown>2012-07-17 19:38:23 +1000
commite281ed8bacd81de0ff49340ba817fa5a2908d71b (patch)
tree9a80595e3ff9fb9fd3364a443a7a758a9d91d584 /win32/scintilla.mak
parentc2de152d26b99e2858618a2cd5394f2a0ea3796a (diff)
downloadscintilla-mirror-e281ed8bacd81de0ff49340ba817fa5a2908d71b.tar.gz
Refine checking for Direct2D and DirectWrite by using NTDDI_WIN7 to indicate
a recent SDK and allow disabling Direct2D by defining DISABLE_D2D. Run a test compile of a file that includes these headers and use compilation failure to disable Direct2D.
Diffstat (limited to 'win32/scintilla.mak')
-rw-r--r--win32/scintilla.mak5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/scintilla.mak b/win32/scintilla.mak
index b4ca7204a..e57da3c71 100644
--- a/win32/scintilla.mak
+++ b/win32/scintilla.mak
@@ -36,6 +36,11 @@ CXXFLAGS=$(CXXFLAGS) $(NOLOGO)
LDFLAGS=$(LDFLAGS) $(NOLOGO)
!ENDIF
+!IF [cl -c -nologo CheckD2D.cxx >NUL:]
+CXXFLAGS=$(CXXFLAGS) -DDISABLE_D2D
+!MESSAGE Direct2D is not available
+!ENDIF
+
!IFDEF DEBUG
CXXFLAGS=$(CXXFLAGS) $(CXXDEBUG)
LDFLAGS=$(LDDEBUG) $(LDFLAGS)