From ec40f36592f6920de1093a680971b92fa687d5e3 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Thu, 14 Mar 2024 10:03:32 -0400 Subject: [PATCH] build: add native file for `ifarm` builds (#133) --- meson/ifarm/README.md | 25 +++++++++++++++++++++++++ meson/ifarm/ifarm.ini | 9 +++++++++ 2 files changed, 34 insertions(+) create mode 100644 meson/ifarm/README.md create mode 100644 meson/ifarm/ifarm.ini diff --git a/meson/ifarm/README.md b/meson/ifarm/README.md new file mode 100644 index 00000000..4e61f3c7 --- /dev/null +++ b/meson/ifarm/README.md @@ -0,0 +1,25 @@ +# Building for `ifarm` or `cvmfs` + +## Resolve dependencies + +Follow [the dependency resolution guide](/doc/dependency_resolution.md) or run the dependency resolution script +```bash +meson/resolve-dependencies.py --help # prints the usage guide +``` + +> [!TIP] +> Use `--ini` to generate an INI file, which may be combined with the INI file from the next step + +## Build + +Replace anything in `` with the appropriate string; you may run these commands from any directory, +preferably outside the source tree. The set of preferred options for `ifarm` builds is contained in [`ifarm.ini`](ifarm.ini), which may be passed to `meson` as a "native file". + +```bash +meson setup --native-file=/ifarm/ifarm.ini +meson configure --prefix= +meson install -C +``` + +> [!TIP] +> You may also add your prefix to the INI file, instead of calling `meson configure --prefix` diff --git a/meson/ifarm/ifarm.ini b/meson/ifarm/ifarm.ini new file mode 100644 index 00000000..db70ff5c --- /dev/null +++ b/meson/ifarm/ifarm.ini @@ -0,0 +1,9 @@ +; options set for ifarm or cvmfs builds +[built-in options] +; core +buildtype = 'release' +; project options +examples = True +documentation = False +require_ROOT = True +bind_python = True