mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
temporary fix for windows
This commit is contained in:
parent
2a1bb88e90
commit
6dd35916ff
@ -534,9 +534,13 @@ class SMConfig(object):
|
|||||||
binary.sources += [ os.path.join(public_path, 'CDetour', 'detours.cpp') ]
|
binary.sources += [ os.path.join(public_path, 'CDetour', 'detours.cpp') ]
|
||||||
binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ]
|
binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ]
|
||||||
|
|
||||||
|
#help(self.libsafetyhook)
|
||||||
for task in self.libsafetyhook:
|
for task in self.libsafetyhook:
|
||||||
if task.target.arch == binary.compiler.target.arch:
|
if task.target.arch == binary.compiler.target.arch:
|
||||||
binary.compiler.linkflags += [task.binary]
|
if task.target.platform == 'windows':
|
||||||
|
binary.compiler.linkflags += [task.binary.path.removesuffix('.dll') + '.lib']
|
||||||
|
else:
|
||||||
|
binary.compiler.linkflags += [task.binary]
|
||||||
return
|
return
|
||||||
raise Exception('No suitable build of safetyhook was found.')
|
raise Exception('No suitable build of safetyhook was found.')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user