1 dep_wayland_client = dependency('wayland-client', version: '>= 1.17.0')
3 grpcpp_reflection_dep = cxx.find_library('grpc++_reflection')
4 protoc = find_program('protoc')
5 grpc_cpp = find_program('grpc_cpp_plugin')
7 protoc_gen = generator(protoc, \
8 output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
9 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/',
10 '--cpp_out=@BUILD_DIR@',
13 generated_protoc_sources = protoc_gen.process('agl_shell.proto')
15 grpc_gen = generator(protoc, \
16 output : ['@BASENAME@.grpc.pb.cc', '@BASENAME@.grpc.pb.h'],
17 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/',
18 '--grpc_out=@BUILD_DIR@',
19 '--plugin=protoc-gen-grpc=' + grpc_cpp.path(),
21 generated_grpc_sources = grpc_gen.process('agl_shell.proto')
24 dependency('protobuf'),
27 grpcpp_reflection_dep,
34 generated_protoc_sources,
35 generated_grpc_sources,
36 agl_shell_client_protocol_h,
41 'agl-shell-grpc-server', srcs,
42 include_directories: [ common_inc ],
43 dependencies: [ grpc_deps, dep_wayland_client, libweston_dep ],
45 install_dir: dir_module_agl_compositor,