mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-27 23:24:29 +00:00
Revert breaking changes.
This commit is contained in:
parent
d5d8895b8c
commit
5e06370a95
@ -113,7 +113,7 @@ set LIBS=user32.lib
|
|||||||
set OUTNAME=hl.dll
|
set OUTNAME=hl.dll
|
||||||
set DEBUG=/debug
|
set DEBUG=/debug
|
||||||
|
|
||||||
cl %DEFINES% %LIBS% %SOURCES% %INCLUDES% -o %OUTNAME% /link /dll /out:%OUTNAME% %DEBUG%
|
cl %DEFINES% %LIBS% %SOURCES% %INCLUDES% -o %OUTNAME% /link /dll /out:%OUTNAME% %DEBUG% /def:".\hl.def"
|
||||||
|
|
||||||
echo -- Compile done. Cleaning...
|
echo -- Compile done. Cleaning...
|
||||||
|
|
||||||
|
@ -43,8 +43,8 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// cdecl for win32
|
// stdcall for win32
|
||||||
#define EXPORT2 WINAPIV
|
#define EXPORT2 WINAPI
|
||||||
#else
|
#else
|
||||||
#define EXPORT2
|
#define EXPORT2
|
||||||
#endif
|
#endif
|
||||||
|
5
dlls/hl.def
Normal file
5
dlls/hl.def
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
LIBRARY hl
|
||||||
|
EXPORTS
|
||||||
|
GiveFnptrsToDll @1
|
||||||
|
SECTIONS
|
||||||
|
.data READ WRITE
|
11
dlls/wscript
11
dlls/wscript
@ -10,8 +10,15 @@ def options(opt):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
# stub
|
if conf.env.COMPILER_CC == 'msvc':
|
||||||
return
|
# 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")
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
source = bld.path.parent.ant_glob([
|
source = bld.path.parent.ant_glob([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user