diff --git a/src/copy.py b/src/copy.py
new file mode 100755
index 0000000000000000000000000000000000000000..fd6c586c0284ff66a03d1527db86eda9b2a928db
--- /dev/null
+++ b/src/copy.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3 
+
+import os, sys, shutil
+
+# get absolute input and output paths
+input_path = os.path.join(
+    os.getenv('MESON_SOURCE_ROOT'), 
+    os.getenv('MESON_SUBDIR'),
+    sys.argv[1])
+
+output_path = os.path.join(
+    os.getenv('MESON_BUILD_ROOT'), 
+    os.getenv('MESON_SUBDIR'),
+    sys.argv[2])
+
+# make sure destination directory exists
+os.makedirs(os.path.dirname(output_path), exist_ok=True)
+
+# and finally copy the file
+shutil.copyfile(input_path, output_path)