aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-02 16:29:59 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-06-02 17:43:50 +0300
commitdaa058e90793e6ff8c8e1a3fa14a88c0167d8561 (patch)
tree8e7f2d8436a263db5f5f3fdf90b2fb8b998bd83e /mesonbuild
parente5aed6ac8f4758f636d81e0374c0658238b90eb5 (diff)
downloadmeson-daa058e90793e6ff8c8e1a3fa14a88c0167d8561.zip
meson-daa058e90793e6ff8c8e1a3fa14a88c0167d8561.tar.gz
meson-daa058e90793e6ff8c8e1a3fa14a88c0167d8561.tar.bz2
Start moving machine files to their own store.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/machinefile.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mesonbuild/machinefile.py b/mesonbuild/machinefile.py
new file mode 100644
index 0000000..18162ef
--- /dev/null
+++ b/mesonbuild/machinefile.py
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: Apache-2.0
+# Copyright 2013-2024 Contributors to the The Meson project
+
+from . import mlog
+
+class MachineFile:
+ def __init__(self, fname):
+ with open(fname, encoding='utf-8') as f:
+ pass
+ self.stuff = None
+
+class MachineFileStore:
+ def __init__(self, native_files, cross_files):
+ self.native = [MachineFile(x) for x in native_files]
+ self.cross = [MachineFile(x) for x in cross_files]