1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdb-build: Fix handling of public headers

Add the header munging, add/package ctdb_version.h, create
directory include/public.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Oct  6 14:56:07 CEST 2014 on sn-devel-104
This commit is contained in:
Martin Schwenke 2014-08-29 21:17:30 +10:00 committed by Volker Lendecke
parent 59c3025706
commit 88b24858d8
3 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,6 @@
DO NOT REMOVE
This is a placeholder to allow for build rules putting public headers
in this directory. Using this directory allows us to ensure that our
public headers will work with external applications that make use of
Samba libraries

View File

@ -225,6 +225,7 @@ development libraries for ctdb
%{_includedir}/ctdb_protocol.h
%{_includedir}/ctdb_private.h
%{_includedir}/ctdb_typesafe_cb.h
%{_includedir}/ctdb_version.h
%package tests
Summary: CTDB test suite

View File

@ -218,6 +218,9 @@ def configure(conf):
def build(bld):
# enable building of public headers in the build tree
bld.env.build_public_headers = 'include/public'
t = bld.SAMBA_GENERATOR('ctdb-version-header',
target='include/ctdb_version.h',
rule='../packaging/mkversion.sh ${TGT} %s' % (VERSION),
@ -326,7 +329,8 @@ def build(bld):
ctdb_update_record.c
ctdb_lock.c'''),
includes='include include/internal',
public_headers='''include/ctdb.h
public_headers='''include/ctdb_version.h
include/ctdb.h
include/ctdb_private.h
include/ctdb_protocol.h
include/ctdb_typesafe_cb.h''',