diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-09 14:26:36 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-09 16:28:29 +0200 |
commit | f716c027c68452f4f0eb01df1e0ccca4a2a69950 (patch) | |
tree | 04d02d635edca79592ec7423d9252cc6ba4d86fc /source4/heimdal_build/wscript_build | |
parent | 787ecd4023ae9eef515225faa9e29aa4e0694711 (diff) | |
download | samba-f716c027c68452f4f0eb01df1e0ccca4a2a69950.tar.gz samba-f716c027c68452f4f0eb01df1e0ccca4a2a69950.tar.bz2 samba-f716c027c68452f4f0eb01df1e0ccca4a2a69950.zip |
s4:heimdal_build/wscript_build: we don't need separate subsystems just for optional source files
metze
Diffstat (limited to 'source4/heimdal_build/wscript_build')
-rw-r--r-- | source4/heimdal_build/wscript_build | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/source4/heimdal_build/wscript_build b/source4/heimdal_build/wscript_build index 002a4da0a2..f095ff7b61 100644 --- a/source4/heimdal_build/wscript_build +++ b/source4/heimdal_build/wscript_build @@ -201,6 +201,14 @@ HEIMDAL_ROKEN_H_SOURCE = ''' replace.c ''' +if not bld.CONFIG_SET('HAVE_GETPROGNAME'): + HEIMDAL_ROKEN_H_SOURCE += ''' + ../heimdal/lib/roken/getprogname.c ../heimdal/lib/roken/setprogname.c + ''' + +if not bld.CONFIG_SET('HAVE_CLOSEFROM'): + HEIMDAL_ROKEN_H_SOURCE += '../heimdal/lib/roken/closefrom.c' + HEIMDAL_ROKEN_SOURCE = HEIMDAL_ROKEN_H_SOURCE + ''' ../heimdal/lib/roken/resolve.c ''' @@ -208,7 +216,7 @@ HEIMDAL_ROKEN_SOURCE = HEIMDAL_ROKEN_H_SOURCE + ''' bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN', HEIMDAL_ROKEN_SOURCE, includes='../heimdal/lib/roken ../heimdal/include ../../lib/socket_wrapper', - deps='HEIMDAL_ROKEN_PROGNAME HEIMDAL_ROKEN_CLOSEFROM resolv LIBREPLACE_NETWORK UID_WRAPPER util' + deps='resolv LIBREPLACE_NETWORK UID_WRAPPER util' ) @@ -386,48 +394,11 @@ bld.SAMBA_SUBSYSTEM('HEIMDAL_WIND', deps='HEIMDAL_ROKEN HEIMDAL_COM_ERR' ) - -bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN_PROGNAME', - '../heimdal/lib/roken/getprogname.c ../heimdal/lib/roken/setprogname.c', - includes='../heimdal/lib/roken', - deps='replace', - enabled=not bld.CONFIG_SET('HAVE_GETPROGNAME') - ) - - -bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN_CLOSEFROM', - '../heimdal/lib/roken/closefrom.c', - includes='../heimdal/lib/roken', - deps='replace', - enabled=not bld.CONFIG_SET('HAVE_CLOSEFROM') - ) - - -bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN_PROGNAME_H', - '../heimdal/lib/roken/getprogname.c ../heimdal/lib/roken/setprogname.c', - cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1', - includes='../heimdal/lib/roken', - deps='replace', - group='compiler_libraries', - enabled=not bld.CONFIG_SET('HAVE_GETPROGNAME') - ) - - -bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN_CLOSEFROM_H', - '../heimdal/lib/roken/closefrom.c', - cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1', - includes='../heimdal/lib/roken', - deps='replace', - group='compiler_libraries', - enabled=not bld.CONFIG_SET('HAVE_CLOSEFROM') - ) - bld.SAMBA_SUBSYSTEM('HEIMDAL_ROKEN_H', HEIMDAL_ROKEN_H_SOURCE, includes='../heimdal/lib/roken', - cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1', - group='compiler_libraries', - deps='HEIMDAL_ROKEN_PROGNAME_H HEIMDAL_ROKEN_CLOSEFROM_H' + cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_', + group='compiler_libraries' ) |