node version check in build system

This commit is contained in:
Florian Dold 2020-03-30 12:54:52 +05:30
parent c9012cbd4c
commit 680d61dfde
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 11 additions and 6 deletions

@ -1 +1 @@
Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2 Subproject commit b2604317980b9cb26f1445dfb6ff82c84f9cbe65

View File

@ -4,12 +4,17 @@
# This file is invoked by './configure' and should usually not be invoked # This file is invoked by './configure' and should usually not be invoked
# manually. # manually.
from talerbuildconfig import * import talerbuildconfig as tbc
import sys
b = BuildConfig() if getattr(tbc, "serialversion", 0) < 2:
print("talerbuildconfig outdated, please update the build-common submodule and/or bootstrap")
sys.exit(1)
b = tbc.BuildConfig()
b.enable_prefix() b.enable_prefix()
b.enable_configmk() b.enable_configmk()
b.add_tool(PosixTool("find")) b.add_tool(tbc.PosixTool("find"))
b.add_tool(NodeJsTool()) b.add_tool(tbc.NodeJsTool(version_spec=">=12"))
b.add_tool(YarnTool()) b.add_tool(tbc.YarnTool())
b.run() b.run()