summaryrefslogtreecommitdiff
path: root/test cases/frameworks/5 protocol buffers
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-17 22:42:20 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-17 22:42:20 +0200
commitb949c4792d5893dabbc0cb3dcc2f58aa173d8efc (patch)
treea10c2f7879efe16b3df655cfe21f386a557a44be /test cases/frameworks/5 protocol buffers
parentee9832cdb180aad535a37f973148149df5ef3a1c (diff)
downloadmeson-b949c4792d5893dabbc0cb3dcc2f58aa173d8efc.tar.gz
Preserve_path_from should be a kwarg of process(), not generator().
Diffstat (limited to 'test cases/frameworks/5 protocol buffers')
-rw-r--r--test cases/frameworks/5 protocol buffers/withpath/meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/test cases/frameworks/5 protocol buffers/withpath/meson.build b/test cases/frameworks/5 protocol buffers/withpath/meson.build
index f5b453ecd..a269c9710 100644
--- a/test cases/frameworks/5 protocol buffers/withpath/meson.build
+++ b/test cases/frameworks/5 protocol buffers/withpath/meson.build
@@ -4,11 +4,12 @@
gen = generator(protoc, \
output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
- preserve_path_from : meson.current_source_dir(),
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@', '@INPUT@'])
generated = gen.process('com/mesonbuild/simple.proto',
- 'com/mesonbuild/subsite/complex.proto')
+ 'com/mesonbuild/subsite/complex.proto',
+ preserve_path_from : meson.current_source_dir(),
+ )
e = executable('pathprog', 'pathprog.cpp', generated,
dependencies : dep)
test('pathprog', e)