meson: use / instead of join_paths() for readability
authorTim-Philipp Müller <tim@centricular.com>
Tue, 21 Jul 2020 09:20:03 +0000 (10:20 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 21 Jul 2020 09:20:03 +0000 (10:20 +0100)
doc/meson.build
meson.build
testsuite/benchmorc/meson.build

index 7e2b700..5306ad1 100644 (file)
@@ -29,6 +29,6 @@ endif
 # FIXME: there should be a way to specify the gtk-doc requirement
 # html_args : '--path=' + meson.current_build_dir() + ':' + meson.current_source_dir(),
 gnome.gtkdoc('orc',
-  src_dir : join_paths(meson.current_source_dir(), '..', 'orc'),
+  src_dir : meson.current_source_dir() / '..' / 'orc',
   main_sgml : 'orc-docs.sgml',
   install : true)
index eeb3f17..84af0a0 100644 (file)
@@ -1,5 +1,5 @@
 project ('orc', 'c', version : '0.4.31',
-                     meson_version : '>= 0.47.0',
+                     meson_version : '>= 0.49.0',
                      default_options : ['buildtype=debugoptimized',
                                         'warning_level=1',
                                         'c_std=gnu99'] )
@@ -192,13 +192,13 @@ endif
 # FIXME: use pkg-config module
 pc_conf.set('prefix', get_option('prefix'))
 pc_conf.set('exec_prefix', get_option('prefix'))
-pc_conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
-pc_conf.set('includedir', join_paths(get_option('prefix'), 'include'))
+pc_conf.set('libdir', get_option('prefix') / get_option('libdir'))
+pc_conf.set('includedir', get_option('prefix') / 'include')
 pc_conf.set('VERSION', meson.project_version())
 pc_conf.set('ORC_MAJORMINOR', orc_api)
 pc_conf.set('LIBM', libm.found() ? '-lm' : '')
 
-pkgconfigdir = join_paths (get_option('libdir'), 'pkgconfig')
+pkgconfigdir = get_option('libdir') / 'pkgconfig'
 configure_file(input : 'orc.pc.in',
   output : 'orc-' + orc_api + '.pc',
   configuration : pc_conf,
index 7474fa1..2fee43e 100644 (file)
@@ -1,4 +1,4 @@
-bench10_orc_path = join_paths(meson.current_source_dir(), 'bench10.orc')
+bench10_orc_path = meson.current_source_dir() / 'bench10.orc'
 
 exe = executable ('benchmorc', 'benchmorc.c',
             c_args : ['-DORC_TEST_FILENAME="' + bench10_orc_path + '"'],