mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-09 09:51:49 +08:00
protobuf source files are generated during release
Protobuf files are removed from the repository and are only auto-generated during dist. Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -44,6 +44,8 @@ src/ipc.pb-c.c
|
||||
src/ipc.pb-c.h
|
||||
src/ctl.pb-c.c
|
||||
src/ctl.pb-c.h
|
||||
src/cfg.pb-c.c
|
||||
src/cfg.pb-c.h
|
||||
src/libipc.a
|
||||
src/occtl/occtl
|
||||
.dirstamp
|
||||
|
||||
@@ -29,6 +29,9 @@ fi
|
||||
"$PROTOC" --c_out="$DISTROOT/src" \
|
||||
--proto_path="$DISTROOT/src" \
|
||||
"$DISTROOT/src/ctl.proto"
|
||||
"$PROTOC" --c_out="$DISTROOT/src" \
|
||||
--proto_path="$DISTROOT/src" \
|
||||
"$DISTROOT/src/cfg.proto"
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# ASN.1 (GSSAPI / KKDCP)
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ endif
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
gperf = find_program('gperf', required: false)
|
||||
protoc_c = find_program('protoc-c')
|
||||
protoc_c = find_program('protoc-c', required: false)
|
||||
ipcalc = find_program(['ipcalc', 'ipcalc-ng'], required: true)
|
||||
nft_prog = find_program('nft', required: false)
|
||||
|
||||
|
||||
+28
-22
@@ -55,28 +55,34 @@ version_inc = configure_file(
|
||||
)
|
||||
|
||||
# Protocol buffers
|
||||
ipc_proto = custom_target('ipc-proto',
|
||||
input: 'ipc.proto',
|
||||
output: ['ipc.pb-c.c', 'ipc.pb-c.h'],
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
|
||||
ctl_proto = custom_target('ctl-proto',
|
||||
input: 'ctl.proto',
|
||||
output: ['ctl.pb-c.c', 'ctl.pb-c.h'],
|
||||
depends: ipc_proto,
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
|
||||
cfg_proto = custom_target('cfg-proto',
|
||||
input: 'cfg.proto',
|
||||
output: ['cfg.pb-c.c', 'cfg.pb-c.h'],
|
||||
depends: ipc_proto,
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
if protoc_c.found()
|
||||
ipc_proto = custom_target('ipc-proto',
|
||||
input: 'ipc.proto',
|
||||
output: ['ipc.pb-c.c', 'ipc.pb-c.h'],
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
ctl_proto = custom_target('ctl-proto',
|
||||
input: 'ctl.proto',
|
||||
output: ['ctl.pb-c.c', 'ctl.pb-c.h'],
|
||||
depends: ipc_proto,
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
cfg_proto = custom_target('cfg-proto',
|
||||
input: 'cfg.proto',
|
||||
output: ['cfg.pb-c.c', 'cfg.pb-c.h'],
|
||||
depends: ipc_proto,
|
||||
command: [protoc_c, '--c_out=@OUTDIR@',
|
||||
'--proto_path=@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
elif fs.exists('ipc.pb-c.c') and fs.exists('ctl.pb-c.c') and fs.exists('cfg.pb-c.c')
|
||||
ipc_proto = files('ipc.pb-c.c', 'ipc.pb-c.h')
|
||||
ctl_proto = files('ctl.pb-c.c', 'ctl.pb-c.h')
|
||||
cfg_proto = files('cfg.pb-c.c', 'cfg.pb-c.h')
|
||||
else
|
||||
error('protoc-c not found and no pre-generated pb-c files present')
|
||||
endif
|
||||
|
||||
# gperf HTTP header table
|
||||
if gperf.found()
|
||||
|
||||
Reference in New Issue
Block a user