]> git.lyx.org Git - features.git/commitdiff
Scons: check for windows.h under msvc.
authorBo Peng <bpeng@lyx.org>
Wed, 4 Jul 2007 05:06:44 +0000 (05:06 +0000)
committerBo Peng <bpeng@lyx.org>
Wed, 4 Jul 2007 05:06:44 +0000 (05:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18981 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index b95dc0ed27fbd3e950cc5c5b5b8b858ece7a3c1f..687366f2607ffcf09f7a56778a128346034463ee 100644 (file)
@@ -607,6 +607,11 @@ conf = Configure(env,
     }
 )
 
+# When using msvc, windows.h is required
+if use_vc and not conf.CheckCHeader('windows.h'):
+    print 'Windows.h is not found. Please install Windows Platform SDK.'
+    Exit(1)
+
 # pkg-config? (if not, we use hard-coded options)
 if conf.CheckPkgConfig('0.15.0'):
     env['HAS_PKG_CONFIG'] = True