summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorng0 <ng0@taler.net>2019-10-28 15:16:51 +0000
committerng0 <ng0@taler.net>2019-10-28 15:16:51 +0000
commitbddc04cb137959eae9349a3c36156b21637092c8 (patch)
tree5b9e7b09d1aeff5f535e93d1cace740a65501819 /configure.py
parent0e9e0f082918191bc514599c6605a5e59cb1eecc (diff)
downloadwww-bddc04cb137959eae9349a3c36156b21637092c8.tar.gz
www-bddc04cb137959eae9349a3c36156b21637092c8.tar.bz2
www-bddc04cb137959eae9349a3c36156b21637092c8.zip
rewrite build mechanism to use build-script.
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.py b/configure.py
new file mode 100644
index 0000000..beea0c2
--- /dev/null
+++ b/configure.py
@@ -0,0 +1,31 @@
+import sys
+from pathlib import Path
+
+base_dir = Path(__file__, "../build-system/taler-build-scripts").resolve()
+
+if not base_dir.exists():
+ print(f"build system directory (${base_dir}) missing", file=sys.stderr)
+ sys.exit(1)
+
+sys.path.insert(0, str(base_dir))
+
+from talerbuildconfig import *
+
+b = BuildConfig()
+b.enable_prefix()
+b.enable_configmk()
+b.add_tool(PythonTool())
+b.add_tool(PyBabelTool())
+b.add_tool(PosixTool("cp"))
+b.add_tool(PosixTool("echo"))
+b.add_tool(PosixTool("env"))
+b.add_tool(PosixTool("printf"))
+b.add_tool(PosixTool("grep"))
+b.add_tool(PosixTool("mkdir"))
+b.add_tool(PosixTool("rm"))
+b.add_tool(PosixTool("sh"))
+b.add_tool(PosixTool("msgmerge"))
+b.add_tool(PosixTool("tsc"))
+b.add_tool(PosixTool("git"))
+b.add_tool(BrowserTool())
+b.run()