diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-10-11 20:41:57 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-10-11 20:41:57 +0300 |
commit | 65974b4dad6796e6cf390a297634b0f457d8ae8a (patch) | |
tree | aec37babd1f86d579c71cfd60040e01c99d924c2 | |
parent | 56fba5313065afc0de478b6db924e50367864c32 (diff) | |
download | meson-65974b4dad6796e6cf390a297634b0f457d8ae8a.zip meson-65974b4dad6796e6cf390a297634b0f457d8ae8a.tar.gz meson-65974b4dad6796e6cf390a297634b0f457d8ae8a.tar.bz2 |
Renamed headers() to install_headers().
-rw-r--r-- | interpreter.py | 5 | ||||
-rw-r--r-- | test cases/common/51 pkgconfig-gen/meson.build | 2 | ||||
-rw-r--r-- | test cases/common/52 custom install dirs/meson.build | 2 | ||||
-rw-r--r-- | 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 0bf8797..af4b9c0 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 f0f907c..860f2b7 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 4a222ba..4a53724 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 b5388ae..6564a5d 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') |