Can set headers() with variables.

pull/15/head
Jussi Pakkanen 11 years ago
parent 8f5a51f0c7
commit ef788a31ce
  1. 1
      interpreter.py
  2. 4
      test cases/common/9 header install/meson.build

@ -1136,6 +1136,7 @@ class Interpreter():
mlog.debug('Adding test "', mlog.bold(args[0]), '".', sep='')
def func_headers(self, node, args, kwargs):
args = self.flatten(args)
for a in args:
if not isinstance(a, str):
raise InvalidArguments('Argument %s is not a string.' % str(a))

@ -1,4 +1,6 @@
project('header install', 'c')
as_array = ['subdir.h']
h1 = headers('rootdir.h')
h2 = headers('subdir.h', subdir : 'subdir')
h2 = headers(as_array, subdir : 'subdir')

Loading…
Cancel
Save