Skip to contentSkip to conversation

meson: Collect all prefix get_option at one place

PATCH Applied Sedat Dilek 2 participants 2 messages Oct 23, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Collect all prefix get_option at one place

---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 58acf2eac8e9..2ed33c28471f 100644
@@ -187,6 +187,7 @@ sysconfdir = get_option('sysconfdir')
 cdata.set_quoted('SYSCONFDIR', sysconfdir)
 
 bindir = join_paths(get_option('prefix'), get_option('bindir'))
+includedir = join_paths(get_option('prefix'), get_option('includedir'))
 libdir = join_paths(get_option('prefix'), get_option('libdir'))
 
 distconfdir = get_option('distconfdir')
@@ -493,7 +494,7 @@ summary({
   'sysconfdir'  : sysconfdir,
   'distconfdir' : distconfdir,
   'libdir'      : libdir,
-  'includedir'  : join_paths(get_option('prefix'), get_option('includedir')),
+  'includedir'  : includedir,
   'bindir'      : bindir
 }, section : 'Directories')
 
Signature · 1 line
2.45.2
#1 lore raw
Quoted 2 lines · Sedat Dilek

---

applied, thanks
Lucas De Marchi

Quoted 27 lines

meson.build | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 58acf2eac8e9..2ed33c28471f 100644
@@ -187,6 +187,7 @@ sysconfdir = get_option('sysconfdir')
 cdata.set_quoted('SYSCONFDIR', sysconfdir)
 
 bindir = join_paths(get_option('prefix'), get_option('bindir'))
+includedir = join_paths(get_option('prefix'), get_option('includedir'))
 libdir = join_paths(get_option('prefix'), get_option('libdir'))
 
 distconfdir = get_option('distconfdir')
@@ -493,7 +494,7 @@ summary({
  'sysconfdir'  : sysconfdir,
  'distconfdir' : distconfdir,
  'libdir'      : libdir,
-  'includedir'  : join_paths(get_option('prefix'), get_option('includedir')),
+  'includedir'  : includedir,
  'bindir'      : bindir
 }, section : 'Directories')
 
Signature · 1 line
2.45.2