Skip to content

Commit ec40f36

Browse files
authored
build: add native file for ifarm builds (#133)
1 parent b428204 commit ec40f36

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

meson/ifarm/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Building for `ifarm` or `cvmfs`
2+
3+
## Resolve dependencies
4+
5+
Follow [the dependency resolution guide](/doc/dependency_resolution.md) or run the dependency resolution script
6+
```bash
7+
meson/resolve-dependencies.py --help # prints the usage guide
8+
```
9+
10+
> [!TIP]
11+
> Use `--ini` to generate an INI file, which may be combined with the INI file from the next step
12+
13+
## Build
14+
15+
Replace anything in `<angle brackets>` with the appropriate string; you may run these commands from any directory,
16+
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".
17+
18+
```bash
19+
meson setup <build_directory> <source_directory> <build_options_from_resolve_dependencies> --native-file=<source_directory>/ifarm/ifarm.ini
20+
meson configure <build_directory> --prefix=<absolute_path_to_installation_destination>
21+
meson install -C <build_directory>
22+
```
23+
24+
> [!TIP]
25+
> You may also add your prefix to the INI file, instead of calling `meson configure --prefix`

meson/ifarm/ifarm.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
; options set for ifarm or cvmfs builds
2+
[built-in options]
3+
; core
4+
buildtype = 'release'
5+
; project options
6+
examples = True
7+
documentation = False
8+
require_ROOT = True
9+
bind_python = True

0 commit comments

Comments
 (0)