Browse Source

Added missing import BoolVariable

Didn't like the missing BoolVariable :)
Bastiaan Olij 7 years ago
parent
commit
cc9e8aa732
2 changed files with 3 additions and 2 deletions
  1. 2 1
      platform/uwp/detect.py
  2. 1 1
      platform/windows/detect.py

+ 2 - 1
platform/uwp/detect.py

@@ -25,10 +25,11 @@ def can_build():
 
 
 
 
 def get_opts():
 def get_opts():
+    from SCons.Variables import BoolVariable
 
 
     return [
     return [
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
-        (BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False)),
+        BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False),
     ]
     ]
 
 
 
 

+ 1 - 1
platform/windows/detect.py

@@ -65,7 +65,7 @@ def get_opts():
         EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')),
         EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')),
         BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False),
         BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False),
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
-        (BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False)),
+        BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False),
     ]
     ]