libcli/ldap pull LIBCLI_LDAP_MESSAGE and LIBCLI_LDAP_NDR into a library
[kai/samba.git] / libcli / ldap / wscript_build
index feab6510b94fa0eda9c1efa09170be1eab69a71e..63a2de17feaa9528329f8ea8a103c16867ef3935 100644 (file)
@@ -1,17 +1,9 @@
 #!/usr/bin/env python
 
-bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
-       source='ldap_message.c',
-       public_deps='errors talloc ldb',
-       public_headers='ldap_message.h ldap_errors.h',
-       deps='samba-util asn1util'
+bld.SAMBA_LIBRARY('cli-ldap-common',
+                  source='ldap_message.c ldap_ndr.c',
+                  public_deps='errors talloc ldb',
+                  public_headers='ldap_message.h ldap_errors.h',
+                  deps='samba-util asn1util NDR_SECURITY tevent',
+                  private_library=True
        )
-
-
-bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
-       source='ldap_ndr.c',
-       public_deps='errors talloc',
-       public_headers='ldap_ndr.h',
-       deps='samba-util ldb NDR_SECURITY tevent'
-       )
-