summaryrefslogtreecommitdiff
path: root/source4/SConstruct
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-23 16:32:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:48 -0500
commit4be0ae794e4af2354d678fddd7bf1e822ffa9148 (patch)
tree128989d970334e4a896329992e827c4f09b8c035 /source4/SConstruct
parentda46c9252ee887602b3e629065ca87b9ed11466f (diff)
downloadsamba-4be0ae794e4af2354d678fddd7bf1e822ffa9148.tar.gz
samba-4be0ae794e4af2354d678fddd7bf1e822ffa9148.tar.bz2
samba-4be0ae794e4af2354d678fddd7bf1e822ffa9148.zip
r10456: More SCons fixes:
- Add framework for fallback generating code - Move pread / pwrite replacement functions to libreplace - Support pidl builds correctly - Support asn1 builds correctly - Move OS-specific checks to lib/replace/SConscript (This used to be commit fbbfad0a1f7dedbf48e835a864f8285f283d72f3)
Diffstat (limited to 'source4/SConstruct')
-rw-r--r--source4/SConstruct25
1 files changed, 12 insertions, 13 deletions
diff --git a/source4/SConstruct b/source4/SConstruct
index bc03f82c83..66ba8ed38b 100644
--- a/source4/SConstruct
+++ b/source4/SConstruct
@@ -6,6 +6,11 @@
#
# Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org>
# Published under the GNU GPL
+#
+# TODO:
+# - finish fallback code
+# - finish proto code
+# - support for init functions
import cPickle, string, os
@@ -21,7 +26,7 @@ hostenv = Environment(
tools=['default','pidl','proto','et','asn1'],
options=opts,
CPPPATH=['#include','#','#lib'],
- CPPDEFINES={'_SAMBA_BUILD_': None},
+ CPPDEFINES={'_SAMBA_BUILD_': None},
)
# We don't care about NFS builds...
@@ -114,23 +119,17 @@ if hostenv['configure']:
['strings.h','stdlib.h','sys/vfs.h','sys/fs/s5param.h','sys/filsys.h'] + \
['termios.h','termio.h','fnmatch.h','pwd.h','sys/termio.h'] + \
['sys/time.h','sys/statfs.h','sys/statvfs.h','stdarg.h'] + \
- ['security/pam_modules.h','security/_pam_macros.h','dlfcn.h'] + \
['sys/syslog.h','syslog.h','stdint.h','inttypes.h','locale.h'] + \
['shadow.h','nss.h','nss_common.h','ns_api.h','sys/security.h'] + \
- ['security/pam_appl.h','sys/capability.h','syscall.h','sys/syscall.h'] + \
+ ['security/pam_appl.h','sys/capability.h'] + \
['sys/acl.h','stdbool.h']:
if conf.CheckCHeader(h):
defines['HAVE_' + h.upper().replace('.','_').replace('/','_')] = 1
- for f in ['dlopen','dlsym','dlerror','waitpid','getcwd','strdup'] + \
- ['strndup','strnlen','strerror','chroot','bzero','memset','strlcpy'] + \
- ['strlcat','memmove','vsnprintf','snprintf','asprintf','vasprintf'] + \
- ['setsid','pipe','crypt16','getauthuid','strftime','sigprocmask'] + \
- ['sigblock','sigaction','innetgr','setnetgrent','getnetgrent'] + \
- ['endnetgrent','initgroups','setgroups','sysconf','mktime','rename'] + \
- ['ftruncate','chsize','getpwanam','setlinebuf','srandom','random'] + \
- ['srand','rand','setenv','usleep','syslog','vsyslog','timegm'] + \
- ['backtrace','setbuffer','pread','pwrite']:
+ for f in ['setsid','pipe','crypt16','getauthuid','strftime','sigprocmask',
+ 'sigblock','sigaction','initgroups','setgroups','sysconf', 'getpwanam',
+ 'setlinebuf','srandom','random','srand','rand','usleep','timegm',
+ 'backtrace','setbuffer']:
if conf.CheckFunc(f):
defines['HAVE_' + f.upper()] = 1
@@ -210,7 +209,7 @@ SConscript(
dirs=['lib','torture','rpc_server','cldap_server','libcli',
'nbt_server','client','ldap_server','libnet','nsswitch','web_server',
'smbd','dsdb','heimdal_build','ntptr','kdc','smb_server','ntvfs',
- 'winbind','scripting','auth', 'librpc'])
+ 'winbind','scripting','auth', 'librpc','script/tests'])
hostenv.CProtoHeader(target='include/proto.h',source=proto_files)