summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/5 protocol buffers/asubdir/meson.build
blob: 97271659059969a2cb34c09c134209badb48e2f1 (plain)
1
2
3
4
5
6
7
8
subdirgen = generator(protoc, \
  output    : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
  arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@', '@INPUT@'])

generated = subdirgen.process('defs.proto')
e = executable('subdir-prog', 'main.cpp', generated,
 dependencies : dep)
test('subdir-prototest', e)