diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-11 22:14:10 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-12 00:02:37 +0200 |
| commit | 4af4145d09d14bcf142714b3dd8c25ee00fcbe68 (patch) | |
| tree | a289c0d6b5960733bd16d9ecab41fbd9a391ceb2 /test cases/frameworks/5 protocol buffers/withpath/meson.build | |
| parent | 19cd60205db049a0aac274afad910281e9011ff7 (diff) | |
| download | meson-4af4145d09d14bcf142714b3dd8c25ee00fcbe68.tar.gz | |
Files created with generator can have path segments.
This is OK, because they are written in the private directory
of each target and its layout can be anything.
Diffstat (limited to 'test cases/frameworks/5 protocol buffers/withpath/meson.build')
| -rw-r--r-- | test cases/frameworks/5 protocol buffers/withpath/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/frameworks/5 protocol buffers/withpath/meson.build b/test cases/frameworks/5 protocol buffers/withpath/meson.build new file mode 100644 index 000000000..f5b453ecd --- /dev/null +++ b/test cases/frameworks/5 protocol buffers/withpath/meson.build @@ -0,0 +1,14 @@ +# Testing protobuf files that are deeply hierarchical +# and must preserve their path segments in output files +# because protoc will always put it in there. + +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') +e = executable('pathprog', 'pathprog.cpp', generated, + dependencies : dep) +test('pathprog', e) |
