summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-11-02 18:05:59 +0100
committerGünther Deschner <gd@samba.org>2011-11-03 18:35:09 +0100
commit6e670739003fc522b02327d033dc03fec13d3c29 (patch)
tree7fa890638e7057f2a44b92b34b7da3617f2ee640 /librpc
parent3978422fe1cb2ac1736d7b991bf57418a4837cd1 (diff)
downloadsamba-6e670739003fc522b02327d033dc03fec13d3c29.tar.gz
samba-6e670739003fc522b02327d033dc03fec13d3c29.tar.bz2
samba-6e670739003fc522b02327d033dc03fec13d3c29.zip
waf: convert NDR_NBT into shared library.
Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr_nbt.pc.in11
-rw-r--r--librpc/wscript_build16
2 files changed, 20 insertions, 7 deletions
diff --git a/librpc/ndr_nbt.pc.in b/librpc/ndr_nbt.pc.in
new file mode 100644
index 0000000000..5b69699d09
--- /dev/null
+++ b/librpc/ndr_nbt.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: ndr-nbt
+Description: NDR marshallers for nbt formats
+Requires: ndr
+Version: 0.0.1
+Libs: @LIB_RPATH@ -L${libdir} -lndr-nbt
+Cflags: -I${includedir} -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1
diff --git a/librpc/wscript_build b/librpc/wscript_build
index e6fde1558f..f0b461d8c8 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -251,7 +251,7 @@ bld.SAMBA_SUBSYSTEM('NDR_SRVSVC',
bld.SAMBA_SUBSYSTEM('NDR_NETLOGON',
source='gen_ndr/ndr_netlogon.c ndr/ndr_netlogon.c',
- public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR NDR_NBT'
+ public_deps='ndr NDR_SECURITY NDR_LSA NDR_SAMR ndr_nbt'
)
bld.SAMBA_SUBSYSTEM('NDR_EVENTLOG',
@@ -331,14 +331,16 @@ bld.SAMBA_SUBSYSTEM('NDR_XATTR',
bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
source='ndr/ndr_schannel.c gen_ndr/ndr_schannel.c',
- public_deps='ndr NDR_NBT'
+ public_deps='ndr ndr_nbt'
)
-bld.SAMBA_SUBSYSTEM('NDR_NBT',
+bld.SAMBA_LIBRARY('ndr_nbt',
source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
- public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard',
- public_headers='gen_ndr/nbt.h',
- header_path='gen_ndr'
+ public_deps='ndr NDR_NBT_BUF NDR_SECURITY',
+ public_headers='gen_ndr/nbt.h gen_ndr/ndr_nbt.h ndr/ndr_nbt.h',
+ header_path=[ ('gen_ndr*', 'gen_ndr'), ('ndr*', 'ndr')],
+ pc_files='ndr_nbt.pc',
+ vnum='0.0.1'
)
bld.SAMBA_SUBSYSTEM('NDR_BACKUPKEY',
@@ -443,7 +445,7 @@ bld.SAMBA_SUBSYSTEM('RPC_NDR_SPOOLSS',
bld.SAMBA_SUBSYSTEM('RPC_NDR_NBT',
source='gen_ndr/ndr_nbt_c.c',
- public_deps='dcerpc-binding NDR_NBT'
+ public_deps='dcerpc-binding ndr_nbt'
)
bld.SAMBA_SUBSYSTEM('RPC_NDR_WKSSVC',