mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Avoid .def-file usage.
This commit is contained in:
parent
3f6ab0b2fd
commit
6055d3d3eb
@ -113,7 +113,7 @@ set LIBS=user32.lib
|
||||
set OUTNAME=hl.dll
|
||||
set DEBUG=/debug
|
||||
|
||||
cl %DEFINES% %LIBS% %SOURCES% %INCLUDES% -o %OUTNAME% /link /dll /out:%OUTNAME% %DEBUG% /def:".\hl.def"
|
||||
cl %DEFINES% %LIBS% %SOURCES% %INCLUDES% -o %OUTNAME% /link /dll /out:%OUTNAME% %DEBUG%
|
||||
|
||||
echo -- Compile done. Cleaning...
|
||||
|
||||
|
@ -43,8 +43,8 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// stdcall for win32
|
||||
#define EXPORT2 WINAPI
|
||||
// cdecl for win32
|
||||
#define EXPORT2 WINAPIV
|
||||
#else
|
||||
#define EXPORT2
|
||||
#endif
|
||||
|
11
dlls/wscript
11
dlls/wscript
@ -10,15 +10,8 @@ def options(opt):
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
if conf.env.COMPILER_CC == 'msvc':
|
||||
# hl.def removes MSVC function name decoration from GiveFnptrsToDll on Windows.
|
||||
# Without this, the lookup for this function fails.
|
||||
hlDefNode = conf.path.find_resource("./hl.def")
|
||||
|
||||
if hlDefNode is not None:
|
||||
conf.env.append_unique('LINKFLAGS', '/def:%s' % hlDefNode.abspath())
|
||||
else:
|
||||
conf.fatal("Could not find hl.def")
|
||||
# stub
|
||||
return
|
||||
|
||||
def build(bld):
|
||||
source = bld.path.parent.ant_glob([
|
||||
|
Loading…
Reference in New Issue
Block a user