From 65974b4dad6796e6cf390a297634b0f457d8ae8a Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 11 Oct 2014 20:41:57 +0300 Subject: [PATCH] Renamed headers() to install_headers(). --- interpreter.py | 5 +++++ test cases/common/51 pkgconfig-gen/meson.build | 2 +- test cases/common/52 custom install dirs/meson.build | 2 +- test cases/common/9 header install/meson.build | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/interpreter.py b/interpreter.py index 0bf8797d6..af4b9c091 100644 --- a/interpreter.py +++ b/interpreter.py @@ -689,6 +689,7 @@ class Interpreter(): 'run_target' : self.func_run_target, 'generator' : self.func_generator, 'test' : self.func_test, + 'install_headers' : self.func_install_headers, 'headers' : self.func_headers, 'man' : self.func_man, 'subdir' : self.func_subdir, @@ -1146,6 +1147,10 @@ class Interpreter(): mlog.debug('Adding test "', mlog.bold(args[0]), '".', sep='') def func_headers(self, node, args, kwargs): + mlog.log(mlog.bold('Warning! '), 'Function headers() is deprecated, please use install_headers() instead.') + return self.func_install_headers(node, args, kwargs) + + def func_install_headers(self, node, args, kwargs): args = self.flatten(args) for a in args: if not isinstance(a, str): diff --git a/test cases/common/51 pkgconfig-gen/meson.build b/test cases/common/51 pkgconfig-gen/meson.build index f0f907c85..860f2b7e9 100644 --- a/test cases/common/51 pkgconfig-gen/meson.build +++ b/test cases/common/51 pkgconfig-gen/meson.build @@ -2,7 +2,7 @@ project('pkgconfig-gen', 'c') lib = shared_library('simple', 'simple.c', install : true) libver = '1.0' -h = headers('simple.h') +h = install_headers('simple.h') pkgconfig_gen(libraries : lib, subdirs : '.', version : libver, name : 'libsimple', filebase : 'simple', description : 'A simple demo library.') diff --git a/test cases/common/52 custom install dirs/meson.build b/test cases/common/52 custom install dirs/meson.build index 4a222bac3..4a5372467 100644 --- a/test cases/common/52 custom install dirs/meson.build +++ b/test cases/common/52 custom install dirs/meson.build @@ -1,6 +1,6 @@ project('custom install dirs', 'c') executable('prog', 'prog.c', install : true, install_dir : 'dib/dab/dub') -headers('sample.h', install_dir : 'some/dir') +install_headers('sample.h', install_dir : 'some/dir') man('prog.1', install_dir : 'woman') data('foobar', 'datafile.cat', install_dir : 'meow') diff --git a/test cases/common/9 header install/meson.build b/test cases/common/9 header install/meson.build index b5388ae57..6564a5d19 100644 --- a/test cases/common/9 header install/meson.build +++ b/test cases/common/9 header install/meson.build @@ -2,5 +2,5 @@ project('header install', 'c') as_array = ['subdir.h'] -h1 = headers('rootdir.h') -h2 = headers(as_array, subdir : 'subdir') +h1 = install_headers('rootdir.h') +h2 = install_headers(as_array, subdir : 'subdir')