Skip to content

Commit

Permalink
gpo: fix the building of gpext to only once
Browse files Browse the repository at this point in the history
Signed-off-by: Garming Sam <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
GSam committed Nov 20, 2017
1 parent 50a64b7 commit 78fd02c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
13 changes: 6 additions & 7 deletions libgpo/wscript_build
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python

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}',
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''',
deps='talloc ads TOKEN_UTIL auth',
vars=locals(),
private_library=True)

bld.SAMBA3_PYTHON('python_samba_libgpo', 'pygpo.c',
deps='pyparam_util gpo talloc ads TOKEN_UTIL auth',
deps='pyparam_util gpext talloc ads TOKEN_UTIL auth',
realname='samba/gpo.so')
4 changes: 0 additions & 4 deletions source3/libgpo/gpext/wscript_build
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/usr/bin/env python

bld.SAMBA3_SUBSYSTEM('gpext',
source='../../../libgpo/gpext/gpext.c',
deps='samba-util samba3core gpo')

bld.SAMBA3_MODULE('gpext_registry',
subsystem='gpext',
source='registry.c',
Expand Down
2 changes: 1 addition & 1 deletion source3/utils/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ bld.SAMBA3_BINARY('net',
KRBCLIENT
ndr-standard
msrpc3
gpo
gpext
ads
smbd_base
LIBADS_SERVER
Expand Down

0 comments on commit 78fd02c

Please sign in to comment.