Author: tpot Date: 2005-01-25 11:21:25 +0000 (Tue, 25 Jan 2005) New Revision: 4982
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4982 Log: Start to move swig dependencies into new build system. Unfortunately I can only get something useful happening by using the BINARY keyword as nothing else seems to generate dependency lists that can be used when linking the swig shared libraries. Anyway this is a lot nicer than having lots of junk in makefile.pm. Added: branches/SAMBA_4_0/source/scripting/swig/config.mk branches/SAMBA_4_0/source/scripting/swig/dummymain.c Modified: branches/SAMBA_4_0/source/build/smb_build/main.pm branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/main.pm =================================================================== --- branches/SAMBA_4_0/source/build/smb_build/main.pm 2005-01-25 10:20:24 UTC (rev 4981) +++ branches/SAMBA_4_0/source/build/smb_build/main.pm 2005-01-25 11:21:25 UTC (rev 4982) @@ -55,7 +55,8 @@ "libcli/libsmb.mk", "libcli/config.mk", "libcli/security/config.mk", - "winbind/config.mk" + "winbind/config.mk", + "scripting/swig/config.mk" ); $| = 1; Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm =================================================================== --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-01-25 10:20:24 UTC (rev 4981) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-01-25 11:21:25 UTC (rev 4982) @@ -673,49 +673,20 @@ swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so -PYTHON_TDB_OBJ = lib/tdb/common/tdb.o lib/tdb/common/spinlock.o - scripting/swig/tdb.py: scripting/swig/tdb.i swig -python scripting/swig/tdb.i -scripting/swig/_tdb.so: scripting/swig/tdb.py scripting/swig/tdb_wrap.o \$(PYTHON_TDB_OBJ) +scripting/swig/_tdb.so: scripting/swig/tdb.py scripting/swig/tdb_wrap.o \$(BINARY_swig_tdb_LINK_LIST) \$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \\ - \$(PYTHON_TDB_OBJ) + \$(BINARY_swig_tdb_LINK_LIST) \$(BINARY_swig_tdb_LINK_FLAGS) -PYTHON_DCERPC_OBJ = \$(SUBSYSTEM_LIBRPC_RAW_OBJS) \\ - \$(SUBSYSTEM_LIBDCOM_OBJS) \\ - \$(SUBSYSTEM_LIBNDR_RAW_OBJS) \\ - \$(SUBSYSTEM_LIBNDR_GEN_OBJS) \\ - \$(SUBSYSTEM_LIBBASIC_OBJS) \\ - \$(SUBSYSTEM_CONFIG_OBJS) \\ - \$(SUBSYSTEM_LIBTDB_OBJS) \\ - \$(SUBSYSTEM_SCHANNELDB_OBJS) \\ - \$(SUBSYSTEM_GENSEC_OBJS) \\ - \$(SUBSYSTEM_LIBCLI_UTILS_OBJS) \\ - \$(SUBSYSTEM_LIBCLI_RAW_OBJS) \\ - \$(SUBSYSTEM_LIBCLI_AUTH_OBJS) \\ - \$(SUBSYSTEM_LIBCLI_NMB_OBJS) \\ - \$(SUBSYSTEM_AUTH_OBJS) \\ - \$(SUBSYSTEM_SAMDB_OBJS) \\ - \$(SUBSYSTEM_LIBLDB_OBJS) \\ - \$(SUBSYSTEM_CHARSET_OBJS) \\ - \$(SUBSYSTEM_LIBSMB_OBJS) \\ - \$(SUBSYSTEM_DCERPC_COMMON_OBJS) \\ - \$(SUBSYSTEM_LIB_WINBIND_CLIENT_OBJS) \\ - \$(SUBSYSTEM_SOCKET_OBJS) \\ - \$(SUBSYSTEM_LIBREPLACE_OBJS) \\ - \$(SUBSYSTEM_LIBNETIF_OBJS) \\ - \$(SUBSYSTEM_LIBCRYPTO_OBJS) - -PYTHON_DCERPC_LIBS = -lldap - SWIG_INCLUDES = librpc/gen_ndr/samr.i librpc/gen_ndr/lsa.i librpc/gen_ndr/winreg.i librpc/gen_ndr/spoolss.i scripting/swig/dcerpc.py: scripting/swig/dcerpc.i scripting/swig/samba.i scripting/swig/status_codes.i \$(SWIG_INCLUDES) swig -python scripting/swig/dcerpc.i -scripting/swig/_dcerpc.so: scripting/swig/dcerpc.py scripting/swig/dcerpc_wrap.o \$(PYTHON_DCERPC_OBJ) - \$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o \$(PYTHON_DCERPC_OBJ) \$(PYTHON_DCERPC_LIBS) +scripting/swig/_dcerpc.so: scripting/swig/dcerpc.py scripting/swig/dcerpc_wrap.o \$(BINARY_swig_dcerpc_DEPEND_LIST) + \$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o \$(BINARY_swig_dcerpc_DEPEND_LIST) \$(BINARY_swig_dcerpc_LINK_FLAGS) swig_clean: -rm -f scripting/swig/_tdb.so scripting/swig/tdb.pyc \\ Added: branches/SAMBA_4_0/source/scripting/swig/config.mk =================================================================== --- branches/SAMBA_4_0/source/scripting/swig/config.mk 2005-01-25 10:20:24 UTC (rev 4981) +++ branches/SAMBA_4_0/source/scripting/swig/config.mk 2005-01-25 11:21:25 UTC (rev 4982) @@ -0,0 +1,7 @@ +[BINARY::swig_tdb] +OBJ_FILES = scripting/swig/dummymain.o +REQUIRED_SUBSYSTEMS = LIBTDB + +[BINARY::swig_dcerpc] +OBJ_FILES = scripting/swig/dummymain.o +REQUIRED_SUBSYSTEMS = LIBCLI NDR_MISC LIBBASIC CONFIG RPC_NDR_SAMR Added: branches/SAMBA_4_0/source/scripting/swig/dummymain.c =================================================================== --- branches/SAMBA_4_0/source/scripting/swig/dummymain.c 2005-01-25 10:20:24 UTC (rev 4981) +++ branches/SAMBA_4_0/source/scripting/swig/dummymain.c 2005-01-25 11:21:25 UTC (rev 4982) @@ -0,0 +1,9 @@ +/* + * Dummy main function as the build system doesn't seem to create a + * dependency list for a subsystem. + */ + +int main(void) +{ + return 0; +}