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()
|
2020-03-30 09:24:52 +02:00
|
|
|
b.add_tool(tbc.PosixTool("find"))
|
|
|
|
b.add_tool(tbc.NodeJsTool(version_spec=">=12"))
|
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()
|
2020-08-03 10:02:20 +02:00
|
|
|
|
|
|
|
print("copying Makefile")
|
|
|
|
shutil.copyfile("build-system/Makefile", "Makefile")
|