meson build: implement new copy option with configure_file
authorJohn Marshall <jtm.home@gmail.com>
Fri, 29 Mar 2019 09:08:07 +0000 (09:08 +0000)
committerØyvind Kolås <pippin@gimp.org>
Sat, 25 May 2019 16:13:31 +0000 (18:13 +0200)
docs/graphics/meson.build
docs/meson.build
meson.build

index fad8d10d2938bc8c8f465a3e101477c945c5a1cb..607a0c60d0a8cb3a09b32b23e32a121a22f1bee5 100644 (file)
@@ -7,20 +7,19 @@ graphic_files = [
 
 graphic_files_install = []
 
-# Dummy config to copy index.html to build
+# Copy index.html to build
 graphic_files_install += configure_file(
   input:  'index.html',
   output: '@PLAINNAME@',
-  configuration: configuration_data()
+  copy: true
 )
 
-
 foreach file : graphic_files
-  # Dummy config to copy svg files to build
+  # Copy svg files to build
   graphic_files_install += configure_file(
     input:  file,
     output: '@PLAINNAME@',
-    configuration: configuration_data()
+    copy: true
   )
 endforeach
 
index 11d517e065ceb92e688aba2bbba012ea0e52e897..b63e767cad41a4fb3d0d7a610dc548e10b853531 100644 (file)
@@ -13,9 +13,11 @@ index_static_html = configure_file(
   configuration: conf,
 )
 
-babl_css = configure_file(input : 'babl.css',
+babl_css = configure_file(
+  input : 'babl.css',
   output : 'babl.css',
-  configuration : configuration_data())
+  copy: true
+)
 
 index_html_tmp_env = [
   'BABL_PATH='+ join_paths(meson.build_root(), 'extensions'),
index 142a203d5471ac525945dc7ab91731860d3583b5..fe8511de85b5e83ac6f176be072b8291a7a31d3a 100644 (file)
@@ -1,7 +1,7 @@
 project('babl', 'c',
   license: 'LGPL3+',
   version: '0.1.63',
-  meson_version: '>=0.40.0',
+  meson_version: '>=0.47.0',
   default_options: [
     'libdir=lib',
     'sysconfdir=/etc',