summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-10-13 10:02:17 +1100
committerAndrew Tridgell <tridge@samba.org>2011-10-18 11:24:55 +1100
commitd226acd97a2aa79cd1710c2b07d00a2ed3c93d6e (patch)
treef48a4a94299c79d22cd5fe30cdbd440bbe42dc00 /source3
parentc52b571506874987ba626c25e9692fbe2251b7e2 (diff)
downloadsamba-d226acd97a2aa79cd1710c2b07d00a2ed3c93d6e.tar.gz
samba-d226acd97a2aa79cd1710c2b07d00a2ed3c93d6e.tar.bz2
samba-d226acd97a2aa79cd1710c2b07d00a2ed3c93d6e.zip
libsmbclient: add ABI checking and pc file
this gives us ABI checking for libsmbclient so that the waf build will prevent ABI breakage, and a public version number. The addition of the pc file makes this library available via pkgconfig, including querying of the version number Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smbclient.pc.in11
-rwxr-xr-xsource3/wscript_build6
2 files changed, 15 insertions, 2 deletions
diff --git a/source3/libsmb/smbclient.pc.in b/source3/libsmb/smbclient.pc.in
new file mode 100644
index 0000000000..bcef2f2c81
--- /dev/null
+++ b/source3/libsmb/smbclient.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: smbclient
+Description: A SMB library interface
+Version: @PACKAGE_VERSION@
+Libs: @LIB_RPATH@ -L${libdir} -lsmbclient
+Cflags: -I${includedir}
+URL: http://www.samba.org/
diff --git a/source3/wscript_build b/source3/wscript_build
index 6c27ecde19..c9e60c043e 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -659,8 +659,10 @@ bld.SAMBA3_LIBRARY('smbclient',
public_deps='''talloc tdb_compat wbclient cap param smbd_shim libsmb KRBCLIENT pdb
LIBMSRPC_GEN msrpc3 libcli_lsa3 RPC_NDR_SRVSVC popt_samba3''',
public_headers='include/libsmbclient.h',
- vnum='0',
- pc_files=[],
+ abi_directory='libsmb/ABI',
+ abi_match='smbc_*',
+ vnum='0.1.0',
+ pc_files='libsmb/smbclient.pc',
vars=locals())
bld.SAMBA3_LIBRARY('smbsharemodes',