wallet-core/build-system/configure.py

26 lines
774 B
Python
Raw Normal View History

2019-11-01 12:19:59 +01:00
# This configure.py file is places in the public domain.
2019-10-14 19:09:12 +02:00
2019-11-01 12:19:59 +01:00
# Configure the build directory.
# This file is invoked by './configure' and should usually not be invoked
# manually.
2019-10-14 19:09:12 +02:00
2020-03-30 09:24:52 +02:00
import talerbuildconfig as tbc
import sys
2020-08-03 10:02:20 +02:00
import shutil
2019-10-14 19:09:12 +02:00
2020-03-30 09:24:52 +02:00
if getattr(tbc, "serialversion", 0) < 2:
print("talerbuildconfig outdated, please update the build-common submodule and/or bootstrap")
sys.exit(1)
b = tbc.BuildConfig()
2019-10-14 19:09:12 +02:00
b.enable_prefix()
b.enable_configmk(dotfile=True)
2020-11-16 16:56:56 +01:00
b.add_tool(tbc.PosixTool("make"))
b.add_tool(tbc.PosixTool("zip"))
2020-11-13 22:19:07 +01:00
b.add_tool(tbc.PosixTool("find"))
b.add_tool(tbc.PosixTool("jq"))
b.add_tool(tbc.NodeJsTool(version_spec=">=18"))
2020-08-03 10:08:21 +02:00
b.add_tool(tbc.GenericTool("npm"))
2020-08-05 21:13:29 +02:00
b.add_tool(tbc.GenericTool("pnpm", hint="Use 'sudo npm install -g pnpm' to install."))
2019-10-14 19:09:12 +02:00
b.run()