mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
S2 sample: Add --hl2sdk-manifests
configure arg
This commit is contained in:
parent
bde97a6dff
commit
fb6638d10e
@ -52,7 +52,11 @@ def ResolveMMSRoot():
|
||||
|
||||
mms_root = ResolveMMSRoot()
|
||||
|
||||
SdkHelpers = builder.Eval('hl2sdk-manifests/SdkHelpers.ambuild', {
|
||||
if not builder.options.hl2sdk_manifests:
|
||||
raise Exception('Could not find a source copy of HL2SDK manifests')
|
||||
hl2sdk_manifests = builder.options.hl2sdk_manifests
|
||||
|
||||
SdkHelpers = builder.Eval(os.path.join(hl2sdk_manifests, 'SdkHelpers.ambuild'), {
|
||||
'Project': 'metamod'
|
||||
})
|
||||
|
||||
|
@ -25,6 +25,8 @@ parser.options.add_argument('-a', '--plugin-alias', type=str, dest='plugin_alias
|
||||
help='Plugin alias')
|
||||
parser.options.add_argument('--hl2sdk-root', type=str, dest='hl2sdk_root', default=None,
|
||||
help='Root search folder for HL2SDKs')
|
||||
parser.options.add_argument('--hl2sdk-manifests', type=str, dest='hl2sdk_manifests', default=None,
|
||||
help='HL2SDK manifests source tree folder')
|
||||
parser.options.add_argument('--mms_path', type=str, dest='mms_path', default=None,
|
||||
help='Metamod:Source source tree folder')
|
||||
parser.options.add_argument('--enable-debug', action='store_const', const='1', dest='debug',
|
||||
|
Loading…
x
Reference in New Issue
Block a user