scons: Move MSVC specific away from Mingw builds.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 19:32:54 +0000 (19:32 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:01:49 +0000 (21:01 +0000)
scons/gallium.py
scons/generic.py

index ed4f49c1d89dff5c6d389691efdafaa9ab4bfc06..e2cd0546c1e4733dec8818f59baee9278a249e0e 100644 (file)
@@ -251,9 +251,12 @@ def generate(env):
             ('WINVER', '0x0501'),
             # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx,
             'WIN32_LEAN_AND_MEAN',
-            'VC_EXTRALEAN',
-            '_CRT_SECURE_NO_DEPRECATE',
         ]
+        if msvc:
+            cppdefines += [
+                'VC_EXTRALEAN',
+                '_CRT_SECURE_NO_DEPRECATE',
+            ]
         if debug:
             cppdefines += ['_DEBUG']
     if platform == 'winddk':
index 764b626e5888d8089d36aedc9ba454373c66c30e..03563e4c62021ff6bc9975754fc423fd6eabb544 100644 (file)
@@ -331,9 +331,12 @@ def generate(env):
             #'UNICODE',
             # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx,
             #'WIN32_LEAN_AND_MEAN',
-            'VC_EXTRALEAN',
-            '_CRT_SECURE_NO_DEPRECATE',
         ]
+        if msvc:
+            cppdefines += [
+                'VC_EXTRALEAN',
+                '_CRT_SECURE_NO_DEPRECATE',
+            ]
         if debug:
             cppdefines += ['_DEBUG']
     if platform == 'winddk':