mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +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.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ]
|
||||
|
||||
#help(self.libsafetyhook)
|
||||
for task in self.libsafetyhook:
|
||||
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
|
||||
raise Exception('No suitable build of safetyhook was found.')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user