[gedit] build: do not assign get_option('prefix') to a variable
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] build: do not assign get_option('prefix') to a variable
- Date: Wed, 4 Dec 2019 13:58:11 +0000 (UTC)
commit 6c958076bcf759b2421fc5cd860f8e0200c86527
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Dec 4 14:22:19 2019 +0100
build: do not assign get_option('prefix') to a variable
get_option('prefix') is short enough and is clearer (otherwise we need
to look where the variable is defined).
meson.build | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index 97a26dccb..26bf3558b 100644
--- a/meson.build
+++ b/meson.build
@@ -19,13 +19,11 @@ root_include_dir = include_directories('.')
srcdir = meson.current_source_dir()
builddir = meson.current_build_dir()
-prefix = get_option('prefix')
-
-bindir = join_paths(prefix, get_option('bindir'))
-includedir = join_paths(prefix, get_option('includedir'))
-libdir = join_paths(prefix, get_option('libdir'))
-libexecdir = join_paths(prefix, get_option('libexecdir'))
-datadir = join_paths(prefix, get_option('datadir'))
+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'))
+libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
+datadir = join_paths(get_option('prefix'), get_option('datadir'))
pkgincludedir = join_paths(includedir, package_string)
pkgconfigdir = join_paths(libdir, 'pkgconfig')
pkglibdir = join_paths(libdir, meson.project_name())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]