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@/../protocol',
10 '--cpp_out=@BUILD_DIR@',
13 generated_protoc_sources = protoc_gen.process('../protocol/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@/../protocol',
18 '--grpc_out=@BUILD_DIR@',
19 '--plugin=protoc-gen-grpc=' + grpc_cpp.path(),
21 generated_grpc_sources = grpc_gen.process('../protocol/agl_shell.proto')
24 dependency('protobuf'),
27 grpcpp_reflection_dep,
32 'basename': 'agl-screenshooter',
35 '../shared/file-util.c',
36 '../shared/os-compatibility.c',
38 agl_screenshooter_client_protocol_h,
39 agl_screenshooter_protocol_c,
40 xdg_output_unstable_v1_client_protocol_h,
41 xdg_output_unstable_v1_protocol_c,
43 'deps_objs' : [ dep_wayland_client ],
47 'basename': 'agl-shell-grpc-server',
50 generated_protoc_sources,
51 generated_grpc_sources,
52 agl_shell_client_protocol_h,
55 'deps_objs' : [ grpc_deps, dep_wayland_client ],
61 t_name = t.get('basename')
62 t_deps = t.get('deps_objs', [])
64 foreach xdep: t.get('deps', [])
65 dep = dependency(xdep, required: false)
71 if t_name == 'agl-shell-grpc-server'
73 t_name, t.get('sources'),
74 include_directories: [ common_inc ],
75 dependencies: [ t_deps, libweston_dep ],
77 install_dir: dir_module_agl_compositor,
81 t_name, t.get('sources'),
82 include_directories: [ common_inc ],
83 dependencies: [ t_deps, libweston_dep ],
88 message('Building client ' + t_name)