Fixes build for Windows cross-compilation
Fixes #28299
(cherry picked from commit 5c5c3a590a
)
This commit is contained in:
parent
2e5fa9f043
commit
aa36c0c56c
|
@ -328,7 +328,7 @@ def configure_mingw(env):
|
||||||
env.Append(CCFLAGS=['-DWASAPI_ENABLED'])
|
env.Append(CCFLAGS=['-DWASAPI_ENABLED'])
|
||||||
env.Append(CCFLAGS=['-DWINMIDI_ENABLED'])
|
env.Append(CCFLAGS=['-DWINMIDI_ENABLED'])
|
||||||
env.Append(CCFLAGS=['-DWINVER=%s' % env['target_win_version'], '-D_WIN32_WINNT=%s' % env['target_win_version']])
|
env.Append(CCFLAGS=['-DWINVER=%s' % env['target_win_version'], '-D_WIN32_WINNT=%s' % env['target_win_version']])
|
||||||
env.Append(LIBS=['mingw32', 'opengl32', 'dsound', 'ole32', 'd3d9', 'winmm', 'gdi32', 'iphlpapi', 'shlwapi', 'wsock32', 'ws2_32', 'kernel32', 'oleaut32', 'dinput8', 'dxguid', 'ksuser', 'imm32', 'bcrypt','avrt'])
|
env.Append(LIBS=['mingw32', 'opengl32', 'dsound', 'ole32', 'd3d9', 'winmm', 'gdi32', 'iphlpapi', 'shlwapi', 'wsock32', 'ws2_32', 'kernel32', 'oleaut32', 'dinput8', 'dxguid', 'ksuser', 'imm32', 'bcrypt', 'avrt', 'uuid'])
|
||||||
|
|
||||||
env.Append(CPPFLAGS=['-DMINGW_ENABLED'])
|
env.Append(CPPFLAGS=['-DMINGW_ENABLED'])
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
|
|
||||||
#include <avrt.h>
|
#include <avrt.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
#include <knownfolders.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <regstr.h>
|
#include <regstr.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
Loading…
Reference in New Issue