add option for external sconscript (#19821)

old-commit-hash: 88e8b8394e53d3421acc499f0a629ca3b66bf6d1
This commit is contained in:
robbederks
2021-01-18 14:32:29 +01:00
committed by GitHub
parent 0e1c994980
commit a7b279ecf7
+10
View File
@@ -33,6 +33,12 @@ AddOption('--mpc-generate',
action='store_true',
help='regenerates the mpc sources')
AddOption('--external-sconscript',
action='store',
metavar='FILE',
dest='external_sconscript',
help='add an external SConscript to the build')
real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
if platform.system() == "Darwin":
arch = "Darwin"
@@ -375,3 +381,7 @@ if arch != "Darwin":
if real_arch == "x86_64":
SConscript(['tools/nui/SConscript'])
SConscript(['tools/lib/index_log/SConscript'])
external_sconscript = GetOption('external_sconscript')
if external_sconscript:
SConscript([external_sconscript])