Statically link SourcePawn. (#2459)

This removes the SourcePawn shared library from the distrubtion, and
statically links the VM to sourcemod.logic instead. This means we can
stop designing public APIs that only SourceMod will ever use, since now
SourceMod can just peek directly inside the VM.

We still need a public API for extensions (and the "core" binary). But
that API surface is a lot smaller than what the logic binary needs.

Remove unused DebugReporter::GenerateCodeError function while we're
here, since this will allow removing IPluginDebugInfo.
This commit is contained in:
David Anderson
2026-05-13 21:09:15 -07:00
committed by GitHub
parent 5288927964
commit fba9d713b7
13 changed files with 51 additions and 140 deletions
+1 -8
View File
@@ -42,7 +42,6 @@ class SMConfig(object):
self.sdks = {}
self.sdk_targets = []
self.binaries = []
self.spvm = []
self.extensions = []
self.generated_headers = None
self.mms_root = None
@@ -647,12 +646,6 @@ for spcomp in SP.spcomp:
if SM.spcomp.target.arch == 'universal':
SM.spcomp_bins = [SM.spcomp]
if not getattr(builder.options, 'scripting_only', False):
for cxx in SM.all_targets:
SM.spvm += [
SP.libsourcepawn[cxx.target.arch]
]
if getattr(builder.options, 'scripting_only', False):
BuildScripts = [
'tools/buildbot/PackageHelpers',
@@ -687,7 +680,7 @@ else:
'tools/buildbot/PackageScript',
]
builder.Build(BuildScripts, { 'SM': SM })
builder.Build(BuildScripts, { 'SM': SM, 'SP': SP })
if builder.options.breakpad_dump:
builder.Build('tools/buildbot/BreakpadSymbols', { 'SM': SM })