-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.ini
More file actions
98 lines (86 loc) · 3.35 KB
/
meson.ini
File metadata and controls
98 lines (86 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Read https://mesonbuild.com/Machine-files.html for an in-depth description of
# the syntax and sections of this file.
[binaries]
# NOTE: In this section, all values refer to an executable installed by a
# dependency, NOT the install prefix of the dependency package.
# For example, do this:
# python = '/opt/python-3.12/bin/python'
# Not this:
# python = '/opt/python-3.12/'
#
# NOTE: In this section, the command to run can be specified in multiple ways
# and is perfectly valid. Acceptable syntaxes are an absolute path:
# python = '/opt/python-3.12/bin/python'
# The name of a binary on the PATH:
# python = 'python3.12'
# Or a list with wrapper commands and/or initial arguments:
# python = ['python3.12', '-O']
# python = ['time', '/usr/bin/python3.12', '-O']
# The examples below only show the most common syntaxes, but any of the syntaxes
# listed above will work for any option in this section.
# C compiler
# c = 'gcc-9'
# c = '/usr/bin/gcc'
# c = ['ccache', '/usr/bin/gcc']
# C++ compiler
# cxx = 'g++-9'
# cxx = '/usr/bin/gcc'
# cxx = ['ccache', '/usr/bin/gcc']
# CUDA compiler (nvcc)
# cuda = 'nvcc'
# cuda = '/usr/local/cuda-11.7/bin/nvcc'
# cuda = ['ccache', '/usr/local/cuda-11.7/bin/nvcc']
# MPI C++ compiler
# mpicxx = '/…/path/to/mpi/bin/mpicxx'
# Python
# python = '/…/path/to/python/bin/python'
[built-in options]
# NOTE: These options can also be configured for an individual build directory
# by passing `meson (setup|configure) -D<key>=<value>` flags to Meson. The
# syntax differs slightly in that case, quotes ('') and brackets ([]) are not
# used on the command line.
#
# Due to a Meson bug (https://github.com/mesonbuild/meson/issues/11930), it is
# highly recommended to use either `-D` flags or this section BUT NOT BOTH.
# Additional paths to search for pkg-config (*.pc) files.
# pkg_config_path = [
# '/…/bzip2/install/lib/pkgconfig',
# '/…/elfutils/install/lib/pkgconfig',
# # ...
# ]
# Additional paths to search for CMake dependencies.
# cmake_prefix_path = [
# '/…/bzip2/install',
# '/…/elfutils/install',
# # ...
# ]
# Meson <1.4 has a bug (https://github.com/mesonbuild/meson/issues/12338)
# where built binaries are unable to automatically load their dependency
# libraries if they are not on the system search paths and were found by CMake.
# If using an older Meson, a convenient solution is to add `-Wl,-rpath`
# arguments for the missing search directories:
# c_link_args = [
# '-Wl,-rpath=/…/boost/install/lib/',
# '-Wl,-rpath=/…/bzip2/install/lib/',
# '-Wl,-rpath=/…/dyninst/install/lib/',
# '-Wl,-rpath=/…/elfutils/install/lib/',
# '-Wl,-rpath=/…/tbb/install/lib/',
# '-Wl,-rpath=/…/libunwind/install/lib/',
# '-Wl,-rpath=/…/xerces-c/install/lib/',
# '-Wl,-rpath=/…/xz/install/lib/',
# '-Wl,-rpath=/…/zlib/install/lib/',
# '-Wl,-rpath=/…/libiberty/install/lib/',
# '-Wl,-rpath=/…/xed/install/lib/',
# '-Wl,-rpath=/…/yaml-cpp/install/lib/',
# '-Wl,-rpath=/…/perfmon/install/lib/',
# '-Wl,-rpath=/…/papi/install/lib/',
# '-Wl,-rpath=/…/opencl-headers/install/lib/',
# '-Wl,-rpath=/usr/local/cuda/lib/',
# '-Wl,-rpath=/opt/rocm-5.4.3/lib/',
# '-Wl,-rpath=/…/path/to/gtpin/Profilers/Lib/',
# # '-Wl,-rpath=/usr/lib',
# ]
# cpp_link_args = ... # Same as above
[properties]
# Path where Boost is installed.
# boost_root = '/…/path/to/boost/install'