1 project('agl-shell-activator',
9 meson_version: '>= 0.60',
13 pkgconfig = import('pkgconfig')
14 cpp = meson.get_compiler('cpp')
16 grpcpp_reflection_dep = cpp.find_library('grpc++_reflection')
17 protoc = find_program('protoc')
18 grpc_cpp = find_program('grpc_cpp_plugin')
21 add_project_arguments([
22 '-DPACKAGE_STRING="agl-shell-activator @0@"'.format(meson.project_version()),
29 protoc_gen = generator(protoc, \
30 output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
31 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/src',
32 '--cpp_out=@BUILD_DIR@',
35 generated_protoc_sources = protoc_gen.process('src/agl_shell.proto')
37 grpc_gen = generator(protoc, \
38 output : ['@BASENAME@.grpc.pb.cc', '@BASENAME@.grpc.pb.h'],
39 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/src',
40 '--grpc_out=@BUILD_DIR@',
41 '--plugin=protoc-gen-grpc=' + grpc_cpp.path(),
43 generated_grpc_sources = grpc_gen.process('src/agl_shell.proto')
46 dependency('protobuf'),
49 grpcpp_reflection_dep,
53 prefix_path = get_option('prefix')
54 binplugin_dir = join_paths(prefix_path, get_option('bindir'))
55 common_inc = include_directories('include')
57 deps_agl_activator = [
61 srcs_agl_activator = [
63 'src/AglShellGrpcClient.cpp',
64 'src/AglShellGrpcClient.h',
65 generated_protoc_sources,
66 generated_grpc_sources,
69 exe_wth_receiver = executable(
70 'agl-shell-activator',
72 include_directories: common_inc,
73 dependencies: deps_agl_activator,
74 install_rpath: binplugin_dir,