[gnome-bluetooth: 5/14] build: Define meson information early
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth: 5/14] build: Define meson information early
- Date: Fri, 11 Jan 2019 11:23:14 +0000 (UTC)
commit 9b6fcc3f59ad0be53faabb8c84fefaf24dacc475
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Thu Dec 20 13:36:38 2018 +0100
build: Define meson information early
The used meson modules, default directories and includes have been
moved to the start of the build file, just after project related
information, so they are available early.
The way `po` directory path is defined has also been changed to
avoid the use of the `source_root` function.
meson.build | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8e380bb4..3cc6eaa7 100644
--- a/meson.build
+++ b/meson.build
@@ -42,6 +42,14 @@ age = 0
libversion = '@0@.@1@.@2@'.format(current, age, revision)
+gnome = import('gnome')
+i18n = import('i18n')
+pkg = import('pkgconfig')
+
+po_dir = join_paths(meson.current_source_dir(), 'po')
+
+top_inc = include_directories('.')
+
cc = meson.get_compiler('c')
config_h = configuration_data()
@@ -97,14 +105,6 @@ libgbt_dep = [ dependency('gio-unix-2.0'),
dependency('libudev'),
]
-gnome = import('gnome')
-i18n = import('i18n')
-pkg = import('pkgconfig')
-
-po_dir = join_paths(meson.source_root(), 'po')
-
-top_inc = include_directories('.')
-
subdir('icons')
subdir('lib')
subdir('sendto')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]