Define PLATFORM_WINDOWS and COMPILER_MINGW when dist target is set to mingw
This commit is contained in:
parent
e39bf4d82c
commit
1e9301a713
4
wscript
4
wscript
@ -618,6 +618,10 @@ def configure(conf):
|
||||
|
||||
if Options.options.dist_target == 'mingw':
|
||||
Options.options.fpu_optimization = False
|
||||
conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS')
|
||||
conf.env.append_value('CFLAGS', '-DCOMPILER_MINGW')
|
||||
conf.env.append_value('CXXFLAGS', '-DPLATFORM_WINDOWS')
|
||||
conf.env.append_value('CXXFLAGS', '-DCOMPILER_MINGW')
|
||||
conf.env.append_value('LIB', 'pthreadGC2')
|
||||
# needed for at least libsmf
|
||||
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')
|
||||
|
Loading…
Reference in New Issue
Block a user