22# encoding: utf-8
33# a1batross, mittorn, 2018
44
5- from waflib import Build , Configure , Context , Logs
5+ from waflib import Build , Configure , Context , Logs , TaskGen
66import sys
77import os
88import re
@@ -20,6 +20,12 @@ def get_taskgen_count(self):
2020 except : idx = 0 # don't set tg_idx_count to not increase counter
2121 return idx
2222
23+ @TaskGen .feature ('cshlib' , 'cxxshlib' , 'fcshlib' )
24+ @TaskGen .before_method ('apply_implib' )
25+ def remove_implib_install (self ):
26+ if not getattr (self , 'install_path_implib' , None ):
27+ self .install_path_implib = None
28+
2329def options (opt ):
2430 opt .load ('reconfigure compiler_optimizations xcompile compiler_cxx compiler_c clang_compilation_database strip_on_install msdev msvs subproject' )
2531
@@ -41,12 +47,6 @@ def configure(conf):
4147 conf .load ('fwgslib reconfigure compiler_optimizations' )
4248 conf .env .MSVC_TARGETS = ['x86' if not conf .options .ALLOW64 else 'x64' ]
4349
44- # Force XP compatibility, all build targets should add subsystem=bld.env.MSVC_SUBSYSTEM
45- if conf .env .MSVC_TARGETS [0 ] == 'x86' :
46- conf .env .MSVC_SUBSYSTEM = 'WINDOWS,5.01'
47- else :
48- conf .env .MSVC_SUBSYSTEM = 'WINDOWS'
49-
5050 # Load compilers early
5151 conf .load ('xcompile compiler_c compiler_cxx gccdeps' )
5252
0 commit comments