libstore: prepare meson for more rpc definitions
Change-Id: I4c495d574acdaa976bdd4ab51bf543aae63903af
This commit is contained in:
+24
-20
@@ -11,28 +11,32 @@ endforeach
|
||||
|
||||
libstore_rpc = []
|
||||
|
||||
libstore_rpc += custom_target(
|
||||
command : [
|
||||
capnpc_wrapper,
|
||||
'--language=c++',
|
||||
'--src-prefix=@CURRENT_SOURCE_DIR@',
|
||||
'--outdir=@OUTDIR@',
|
||||
'--depfile=@DEPFILE@',
|
||||
'-I@SOURCE_ROOT@',
|
||||
'@INPUT@',
|
||||
],
|
||||
input : files(
|
||||
# keep-sorted start
|
||||
'types.capnp',
|
||||
# keep-sorted end
|
||||
),
|
||||
output : [
|
||||
'@PLAINNAME@.h',
|
||||
'@PLAINNAME@.c++',
|
||||
],
|
||||
depfile : '@PLAINNAME@.d',
|
||||
libstore_rpc_files = files(
|
||||
# keep-sorted start
|
||||
'types.capnp',
|
||||
# keep-sorted end
|
||||
)
|
||||
|
||||
foreach rpc_file : libstore_rpc_files
|
||||
libstore_rpc += custom_target(
|
||||
command : [
|
||||
capnpc_wrapper,
|
||||
'--language=c++',
|
||||
'--src-prefix=@CURRENT_SOURCE_DIR@',
|
||||
'--outdir=@OUTDIR@',
|
||||
'--depfile=@DEPFILE@',
|
||||
'-I@SOURCE_ROOT@',
|
||||
'@INPUT@',
|
||||
],
|
||||
input : rpc_file,
|
||||
output : [
|
||||
'@PLAINNAME@.h',
|
||||
'@PLAINNAME@.c++',
|
||||
],
|
||||
depfile : '@PLAINNAME@.d',
|
||||
)
|
||||
endforeach
|
||||
|
||||
# rpc definitions only here to get relative paths of generated files right
|
||||
subdir('build')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user