1 pkgconfig = import('pkgconfig')
2 cpp = meson.get_compiler('cpp')
4 qt5_dep = dependency('qt5', modules: ['Qml', 'Quick', 'Gui'])
6 grpcpp_reflection_dep = cpp.find_library('grpc++_reflection')
7 protoc = find_program('protoc')
8 grpc_cpp = find_program('grpc_cpp_plugin')
10 protoc_gen = generator(protoc, \
11 output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
12 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/',
13 '--cpp_out=@BUILD_DIR@',
16 generated_protoc_sources = protoc_gen.process('agl_shell.proto')
18 grpc_gen = generator(protoc, \
19 output : ['@BASENAME@.grpc.pb.cc', '@BASENAME@.grpc.pb.h'],
20 arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/',
21 '--grpc_out=@BUILD_DIR@',
22 '--plugin=protoc-gen-grpc=' + grpc_cpp.path(),
24 generated_grpc_sources = grpc_gen.process('agl_shell.proto')
27 dependency('protobuf'),
30 grpcpp_reflection_dep,
38 window_mgnt_resources = [
39 'qml/images/images.qrc',
43 resource_files = qt5.compile_resources(sources: window_mgnt_resources)
45 window_mgnt_src_headers = [
46 'AglShellGrpcClient.h',
49 moc_files = qt5.compile_moc(headers: window_mgnt_src_headers,
50 dependencies: qt5_dep)
52 'AglShellGrpcClient.cpp',
54 generated_protoc_sources,
55 generated_grpc_sources,
58 prefix_path = get_option('prefix')
59 binplugin_dir = join_paths(prefix_path, get_option('bindir'))
61 executable('window-management-rpc', window_mgnt_src, resource_files, moc_files,
62 dependencies : window_mgnt_dep,
63 install_rpath: binplugin_dir,