utils:libgpo: re-add libgpo as library, it should not be part of gpext
authorGünther Deschner <gd@samba.org>
Fri, 8 Jun 2018 14:13:22 +0000 (16:13 +0200)
committerBjoern Jacke <bjacke@samba.org>
Mon, 28 Jan 2019 14:44:18 +0000 (15:44 +0100)
It was initially removed in 78fd02cf31dfe72d596030f342aebefba1e72263 but
is needed by the inf file parsing.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
libgpo/wscript_build
source3/utils/wscript_build

index 9fbff9d0974e62ac522144459497d9b52f928026..6c4122759580b2010b4ce28097c810d6acc9e25e 100644 (file)
@@ -1,10 +1,17 @@
 #!/usr/bin/env python
 
-bld.SAMBA3_LIBRARY('gpext',
-                   source='''gpext/gpext.c gpo_util.c gpo_ldap.c gpo_ini.c
-                           gpo_fetch.c gpo_filesync.c
-                           gpo_sec.c gpo_reg.c''',
+LIBGPO_SRC = '''gpo_ldap.c gpo_ini.c gpo_util.c gpo_fetch.c gpo_filesync.c
+                gpo_sec.c gpo_reg.c gpext/gpext.c'''
+
+bld.SAMBA3_LIBRARY('gpo',
+                   source='${LIBGPO_SRC}',
                    deps='talloc ads TOKEN_UTIL auth',
+                   vars=locals(),
+                   private_library=True)
+
+bld.SAMBA3_LIBRARY('gpext',
+                   source='''gpext/gpext.c''',
+                   deps='talloc ads TOKEN_UTIL auth gpo',
                    private_library=True)
 
 for env in bld.gen_python_environments():
index c6d1c29b3101cee94665848b3a554a1098d16a89..b254073358cbb9058df900f9dd8c27f68f8d5f37 100644 (file)
@@ -238,7 +238,7 @@ bld.SAMBA3_BINARY('net',
                  KRBCLIENT
                  ndr-standard
                  msrpc3
-                 gpext
+                 gpo
                  ads
                  smbd_base
                  LIBADS_SERVER