add option for external sconscript (#19821)

pull/19822/head
robbederks 4 years ago committed by GitHub
parent 53b9d35fda
commit 88e8b8394e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      SConstruct

@ -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])

Loading…
Cancel
Save