diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/opensync/opensync-0.22/wrapper | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/opensync/opensync-0.22/wrapper')
-rw-r--r-- | debian/opensync/opensync-0.22/wrapper/Makefile.am | 26 | ||||
-rw-r--r-- | debian/opensync/opensync-0.22/wrapper/Makefile.in | 554 | ||||
-rw-r--r-- | debian/opensync/opensync-0.22/wrapper/opensync.i | 393 |
3 files changed, 973 insertions, 0 deletions
diff --git a/debian/opensync/opensync-0.22/wrapper/Makefile.am b/debian/opensync/opensync-0.22/wrapper/Makefile.am new file mode 100644 index 00000000..47d435b7 --- /dev/null +++ b/debian/opensync/opensync-0.22/wrapper/Makefile.am @@ -0,0 +1,26 @@ + +AM_CFLAGS = -Werror + +INCLUDES= @PACKAGE_CFLAGS@ $(PYTHON_INCLUDES) -I$(top_srcdir) -I$(top_srcdir)/opensync @XML_CFLAGS@ + +opensync_wrap.c: $(srcdir)/opensync.i + $(SWIG) -Werror -python -modern -I$(top_srcdir)/opensync $(PYTHON_INCLUDES) -o opensync_wrap.c $(srcdir)/opensync.i + +EXTRA_DIST = opensync.i + +CLEANFILES = \ + opensync.py \ + opensync.pyc \ + opensync_wrap.c + +if HAVE_PYTHON +osdir = $(pyexecdir) +nodist_os_PYTHON = opensync.py + +osbindingsdir = $(pyexecdir) +osbindings_LTLIBRARIES = _opensync.la +endif + +nodist__opensync_la_SOURCES = opensync_wrap.c +_opensync_la_LDFLAGS = @PACKAGE_LIBS@ @XML_LIBS@ $(PYTHON_LDFLAGS) -R $(libdir) -module -avoid-version +_opensync_la_LIBADD = $(top_builddir)/opensync/libopensync.la diff --git a/debian/opensync/opensync-0.22/wrapper/Makefile.in b/debian/opensync/opensync-0.22/wrapper/Makefile.in new file mode 100644 index 00000000..33defe9f --- /dev/null +++ b/debian/opensync/opensync-0.22/wrapper/Makefile.in @@ -0,0 +1,554 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = wrapper +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(osbindingsdir)" "$(DESTDIR)$(osdir)" +osbindingsLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(osbindings_LTLIBRARIES) +_opensync_la_DEPENDENCIES = $(top_builddir)/opensync/libopensync.la +nodist__opensync_la_OBJECTS = opensync_wrap.lo +_opensync_la_OBJECTS = $(nodist__opensync_la_OBJECTS) +@HAVE_PYTHON_TRUE@am__opensync_la_rpath = -rpath $(osbindingsdir) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(nodist__opensync_la_SOURCES) +DIST_SOURCES = +nodist_osPYTHON_INSTALL = $(INSTALL_DATA) +py_compile = $(top_srcdir)/py-compile +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_ENGINE = @BUILD_ENGINE@ +BUILD_ENGINE_FALSE = @BUILD_ENGINE_FALSE@ +BUILD_ENGINE_TRUE = @BUILD_ENGINE_TRUE@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ENABLE_DEBUG = @ENABLE_DEBUG@ +ENABLE_PROF_FALSE = @ENABLE_PROF_FALSE@ +ENABLE_PROF_TRUE = @ENABLE_PROF_TRUE@ +ENABLE_TESTS_FALSE = @ENABLE_TESTS_FALSE@ +ENABLE_TESTS_TRUE = @ENABLE_TESTS_TRUE@ +ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@ +ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@ +ENABLE_TRACE = @ENABLE_TRACE@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GCOV_CFLAGS = @GCOV_CFLAGS@ +GCOV_LDFLAGS = @GCOV_LDFLAGS@ +GREP = @GREP@ +HAVE_PYTHON_FALSE = @HAVE_PYTHON_FALSE@ +HAVE_PYTHON_TRUE = @HAVE_PYTHON_TRUE@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +OBJEXT = @OBJEXT@ +OPENSYNC_CONFIGDIR = @OPENSYNC_CONFIGDIR@ +OPENSYNC_ENGINEHEADERDIR = @OPENSYNC_ENGINEHEADERDIR@ +OPENSYNC_FORMATSDIR = @OPENSYNC_FORMATSDIR@ +OPENSYNC_HEADERDIR = @OPENSYNC_HEADERDIR@ +OPENSYNC_PLUGINDIR = @OPENSYNC_PLUGINDIR@ +OSPLUGIN = @OSPLUGIN@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ +PACKAGE_LIBS = @PACKAGE_LIBS@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PYTHON = @PYTHON@ +PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ +PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ +PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@ +PYTHON_INCLUDES = @PYTHON_INCLUDES@ +PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ +PYTHON_PLATFORM = @PYTHON_PLATFORM@ +PYTHON_PREFIX = @PYTHON_PREFIX@ +PYTHON_SITE_PKG = @PYTHON_SITE_PKG@ +PYTHON_VERSION = @PYTHON_VERSION@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +SWIG = @SWIG@ +SWIG_LIB = @SWIG_LIB@ +SWIG_PYTHON_CPPFLAGS = @SWIG_PYTHON_CPPFLAGS@ +SWIG_PYTHON_OPT = @SWIG_PYTHON_OPT@ +VERSION = @VERSION@ +XML_CFLAGS = @XML_CFLAGS@ +XML_LIBS = @XML_LIBS@ +YACC = @YACC@ +YFLAGS = @YFLAGS@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_workaround_abs_builddir = @ac_workaround_abs_builddir@ +ac_workaround_abs_srcdir = @ac_workaround_abs_srcdir@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +pkgpyexecdir = @pkgpyexecdir@ +pkgpythondir = @pkgpythondir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +pyexecdir = @pyexecdir@ +pythondir = @pythondir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +AM_CFLAGS = -Werror +INCLUDES = @PACKAGE_CFLAGS@ $(PYTHON_INCLUDES) -I$(top_srcdir) -I$(top_srcdir)/opensync @XML_CFLAGS@ +EXTRA_DIST = opensync.i +CLEANFILES = \ + opensync.py \ + opensync.pyc \ + opensync_wrap.c + +@HAVE_PYTHON_TRUE@osdir = $(pyexecdir) +@HAVE_PYTHON_TRUE@nodist_os_PYTHON = opensync.py +@HAVE_PYTHON_TRUE@osbindingsdir = $(pyexecdir) +@HAVE_PYTHON_TRUE@osbindings_LTLIBRARIES = _opensync.la +nodist__opensync_la_SOURCES = opensync_wrap.c +_opensync_la_LDFLAGS = @PACKAGE_LIBS@ @XML_LIBS@ $(PYTHON_LDFLAGS) -R $(libdir) -module -avoid-version +_opensync_la_LIBADD = $(top_builddir)/opensync/libopensync.la +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign wrapper/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign wrapper/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-osbindingsLTLIBRARIES: $(osbindings_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(osbindingsdir)" || $(mkdir_p) "$(DESTDIR)$(osbindingsdir)" + @list='$(osbindings_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=install $(osbindingsLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(osbindingsdir)/$$f'"; \ + $(LIBTOOL) --mode=install $(osbindingsLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(osbindingsdir)/$$f"; \ + else :; fi; \ + done + +uninstall-osbindingsLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @set -x; list='$(osbindings_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(osbindingsdir)/$$p'"; \ + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(osbindingsdir)/$$p"; \ + done + +clean-osbindingsLTLIBRARIES: + -test -z "$(osbindings_LTLIBRARIES)" || rm -f $(osbindings_LTLIBRARIES) + @list='$(osbindings_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +_opensync.la: $(_opensync_la_OBJECTS) $(_opensync_la_DEPENDENCIES) + $(LINK) $(am__opensync_la_rpath) $(_opensync_la_LDFLAGS) $(_opensync_la_OBJECTS) $(_opensync_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opensync_wrap.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-nodist_osPYTHON: $(nodist_os_PYTHON) + @$(NORMAL_INSTALL) + test -z "$(osdir)" || $(mkdir_p) "$(DESTDIR)$(osdir)" + @list='$(nodist_os_PYTHON)'; dlist=''; for p in $$list; do\ + if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \ + if test -f $$b$$p; then \ + f=$(am__strip_dir) \ + dlist="$$dlist $$f"; \ + echo " $(nodist_osPYTHON_INSTALL) '$$b$$p' '$(DESTDIR)$(osdir)/$$f'"; \ + $(nodist_osPYTHON_INSTALL) "$$b$$p" "$(DESTDIR)$(osdir)/$$f"; \ + else :; fi; \ + done; \ + if test -n "$$dlist"; then \ + if test -z "$(DESTDIR)"; then \ + PYTHON=$(PYTHON) $(py_compile) --basedir "$(osdir)" $$dlist; \ + else \ + PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(osdir)" $$dlist; \ + fi; \ + else :; fi + +uninstall-nodist_osPYTHON: + @$(NORMAL_UNINSTALL) + @list='$(nodist_os_PYTHON)'; dlist=''; for p in $$list; do\ + f=$(am__strip_dir) \ + rm -f "$(DESTDIR)$(osdir)/$$f"; \ + rm -f "$(DESTDIR)$(osdir)/$${f}c"; \ + rm -f "$(DESTDIR)$(osdir)/$${f}o"; \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(osbindingsdir)" "$(DESTDIR)$(osdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-osbindingsLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-nodist_osPYTHON install-osbindingsLTLIBRARIES + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-nodist_osPYTHON \ + uninstall-osbindingsLTLIBRARIES + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-osbindingsLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-nodist_osPYTHON install-osbindingsLTLIBRARIES \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-info-am uninstall-nodist_osPYTHON \ + uninstall-osbindingsLTLIBRARIES + + +opensync_wrap.c: $(srcdir)/opensync.i + $(SWIG) -Werror -python -modern -I$(top_srcdir)/opensync $(PYTHON_INCLUDES) -o opensync_wrap.c $(srcdir)/opensync.i +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/debian/opensync/opensync-0.22/wrapper/opensync.i b/debian/opensync/opensync-0.22/wrapper/opensync.i new file mode 100644 index 00000000..623c0f45 --- /dev/null +++ b/debian/opensync/opensync-0.22/wrapper/opensync.i @@ -0,0 +1,393 @@ +%module opensync +%include "cdata.i" +%include "cstring.i" +%include "typemaps.i" + +%{ +#include "opensync.h" +#include <glib.h> +%} + +%include "opensync.h" +typedef struct {} OSyncEnv; +typedef struct {} OSyncPlugin; +typedef struct {} OSyncPluginInfo; +typedef struct {} OSyncContext; +typedef struct {} OSyncChange; +typedef struct {} OSyncMember; +typedef struct {} OSyncHashTable; + +%extend OSyncMember { + OSyncMember(PyObject *obj) { + OSyncMember *member = NULL; + member = (OSyncMember *)PyCObject_AsVoidPtr(obj); + return member; + } + + osync_bool get_slow_sync(const char *objtype) { + return osync_member_get_slow_sync(self, objtype); + } + + void set_slow_sync(const char *objtype, osync_bool set) { + osync_member_set_slow_sync(self, objtype, set); + } + + osync_bool objtype_enabled(const char *objtype) { + return osync_member_objtype_enabled(self, objtype); + } + + const char *get_configdir() { + return osync_member_get_configdir(self); + } + + void set_configdir(const char *configdir) { + osync_member_set_configdir(self, configdir); + } + + %pythoncode %{ + configdir = property(get_configdir, set_configdir); + %} + + /* This SWIG code is really confusing, so I'd better explain it: + * The %apply directive means that any argument called int *sizeout is actually a return value; + * this means that __get_config (from python) returns two values, a pointer and a length. + * The char * is returned as a void * to avoid SWIG converting it to a string automatically + * (because theoretically it might not be null-terminated). + */ + %apply int *OUTPUT {int *sizeout}; + void * __get_config(int *sizeout) { + char *data; + OSyncError *error; + /* FIXME: do something with the error! */ + if (osync_member_get_config(self, &data, sizeout, &error)) + return data; + else + return NULL; + } + + void __set_config(void *data, int size) { + osync_member_set_config(self, data, size); + } + + %pythoncode %{ + def get_config(self): + data, len = self.__get_config() + return cdata(data, len) + def set_config(self, data): + self.__set_config(data, len(data)) + config = property(get_config, set_config) + %} +} + +%extend OSyncChange { + OSyncChange(PyObject *obj=NULL) { + OSyncChange *change = NULL; + if (obj) + change = (OSyncChange *)PyCObject_AsVoidPtr(obj); + else + change = osync_change_new(); + return change; + } + + ~OSyncChange() { + osync_trace(TRACE_INTERNAL, "Deleting change %p", self); + } + + %cstring_input_binary(char *data, int datasize); + void __set_data(char *data, int datasize) { + osync_change_set_data(self, data, datasize, TRUE); + } + + void *__get_data() { + return osync_change_get_data(self); + } + + int __get_datasize() { + return osync_change_get_datasize(self); + } + + %pythoncode %{ + def get_data(self): + try: + return self.__data + except AttributeError: + self.__data = cdata(self.__get_data(), self.__get_datasize()) + # FIXME: despite passing the size around, sometimes the data + # seems also to be null-terminated; remove this. + if self.__data[-1] == '\0': + self.__data = self.__data[:-1] + return self.__data + + def set_data(self, data): + self.__data = data + self.__set_data(data) + + data = property(get_data,set_data) + %} + + void report(OSyncContext *ctx) + { + /* take a copy of the data, so python does not try to reclaim it + * this memory should be freed by opensync after the change is written + */ + if (osync_change_has_data(self)) { + void *data = osync_change_get_data(self); + int datasize = osync_change_get_datasize(self); + void *copy = memcpy(malloc(datasize), data, datasize); + osync_change_set_data(self, copy, datasize, TRUE); + } + osync_context_report_change(ctx, self); + } + + void set_uid(const char *uid) { + osync_change_set_uid(self, uid); + } + + const char *get_uid() { + return osync_change_get_uid(self); + } + + %pythoncode %{ + uid = property(get_uid, set_uid) + %} + + void set_format(const char *format) { + osync_change_set_objformat_string(self, format); + } + + const char *get_format() { + OSyncObjFormat *format = osync_change_get_objformat(self); + if (!format) + return NULL; + return osync_objformat_get_name(format); + } + + %pythoncode %{ + format = property(get_format, set_format) + %} + + void set_objtype(const char *objtype) { + osync_change_set_objtype_string(self, objtype); + } + + const char *get_objtype() { + OSyncObjType *objtype = osync_change_get_objtype(self); + if (!objtype) + return NULL; + return osync_objtype_get_name(objtype); + } + + %pythoncode %{ + objtype = property(get_objtype, set_objtype) + %} + + void set_changetype(int changetype) { + osync_change_set_changetype(self, changetype); + } + + int get_changetype() { + return osync_change_get_changetype(self); + } + + %pythoncode %{ + changetype = property(get_changetype, set_changetype) + %} + + void set_hash(const char *hash) { + osync_change_set_hash(self, hash); + } + + const char *get_hash() { + return osync_change_get_hash(self); + } + + %pythoncode %{ + hash = property(get_hash, set_hash) + %} + + void set_member(OSyncMember *member) { + osync_change_set_member(self, member); + } + + OSyncMember *get_member() { + return osync_change_get_member(self); + } + + %pythoncode %{ + member = property(get_member, set_member); + %} +}; + +%extend OSyncContext { + OSyncContext(PyObject *obj) { + OSyncContext *ctx = (OSyncContext *)PyCObject_AsVoidPtr(obj); + return ctx; + } + + void report_success(void) { + osync_context_report_success(self); + } + + void report_error(int type, const char *msg) { + osync_context_report_error(self, type, msg); + } +}; + +%extend OSyncPlugin { + OSyncPlugin(OSyncEnv *env) { + OSyncPlugin *plugin = osync_plugin_new(env); + return plugin; + } + + ~OSyncPlugin() { + osync_plugin_free(self); + } + + const char *get_name() { + return osync_plugin_get_name(self); + } + + %pythoncode %{ + name = property(get_name) + %} +}; + +%extend OSyncPluginInfo { + OSyncPluginInfo(PyObject *obj) { + OSyncPluginInfo *exinfo = (OSyncPluginInfo *)PyCObject_AsVoidPtr(obj); + return exinfo; + } + + void accept_objtype(const char *objtype) { + osync_plugin_accept_objtype(self, objtype); + } + + void accept_objformat(const char *objtype, const char *objformat, const char *extension = NULL) { + osync_plugin_accept_objformat(self, objtype, objformat, extension); + } + + void set_name(const char *name) { + self->name = g_strdup(name); + } + const char *get_name() { + return self->name; + } + + void set_longname(const char *name) { + self->longname = g_strdup(name); + } + const char *get_longname() { + return self->longname; + } + + void set_description(const char *desc) { + self->description = g_strdup(desc); + } + const char *get_description() { + return self->description; + } + + %pythoncode %{ + name = property(get_name, set_name) + longname = property(get_longname, set_longname) + description = property(get_description, set_description) + %} +}; + +%extend OSyncEnv { + OSyncEnv(PyObject *obj) { + return (OSyncEnv *)PyCObject_AsVoidPtr(obj); + } + + OSyncEnv() { + return osync_env_new(); + } + + ~OSyncEnv() { + osync_env_free(self); + } + + int initialize() { + return osync_env_initialize(self, NULL); + } + + int finalize() { + return osync_env_finalize(self, NULL); + } + + int num_plugins() { + return osync_env_num_plugins(self); + } + + OSyncPlugin *get_nth_plugin(int nth) { + OSyncPlugin *plugin = osync_env_nth_plugin(self, nth); + return plugin; + } +}; + +%extend OSyncHashTable { + OSyncHashTable() { + return osync_hashtable_new(); + } + + ~OSyncHashTable() { + osync_hashtable_free(self); + } + + void forget() { + osync_hashtable_forget(self); + } + + osync_bool load(OSyncMember *member) { + OSyncError *error; + /* FIXME: do something with the error! */ + return osync_hashtable_load(self, member, &error); + } + + void close() { + osync_hashtable_close(self); + } + + void update_hash(OSyncChange *change) { + osync_hashtable_update_hash(self, change); + } + + void report(const char *uid) { + osync_hashtable_report(self, uid); + } + + void report_deleted(OSyncContext *context, const char *objtype) { + osync_hashtable_report_deleted(self, context, objtype); + } + + OSyncChangeType get_changetype(const char *uid, const char *hash, const char *objtype) { + return osync_hashtable_get_changetype(self, uid, hash, objtype); + } + + osync_bool detect_change(OSyncChange *change) { + return osync_hashtable_detect_change(self, change); + } + + void set_slow_sync(const char *objtype) { + osync_hashtable_set_slow_sync(self, objtype); + } +}; + +/* pull in constants from opensync_error.h without all the functions */ +%constant int NO_ERROR = OSYNC_NO_ERROR; +%constant int ERROR_GENERIC = OSYNC_ERROR_GENERIC; +%constant int ERROR_IO_ERROR = OSYNC_ERROR_IO_ERROR; +%constant int ERROR_NOT_SUPPORTED = OSYNC_ERROR_NOT_SUPPORTED; +%constant int ERROR_TIMEOUT = OSYNC_ERROR_TIMEOUT; +%constant int ERROR_DISCONNECTED = OSYNC_ERROR_DISCONNECTED; +%constant int ERROR_FILE_NOT_FOUND = OSYNC_ERROR_FILE_NOT_FOUND; +%constant int ERROR_EXISTS = OSYNC_ERROR_EXISTS; +%constant int ERROR_CONVERT = OSYNC_ERROR_CONVERT; +%constant int ERROR_MISCONFIGURATION = OSYNC_ERROR_MISCONFIGURATION; +%constant int ERROR_INITIALIZATION = OSYNC_ERROR_INITIALIZATION; +%constant int ERROR_PARAMETER = OSYNC_ERROR_PARAMETER; +%constant int ERROR_EXPECTED = OSYNC_ERROR_EXPECTED; +%constant int ERROR_NO_CONNECTION = OSYNC_ERROR_NO_CONNECTION; +%constant int ERROR_TEMPORARY = OSYNC_ERROR_TEMPORARY; +%constant int ERROR_LOCKED = OSYNC_ERROR_LOCKED; +%constant int ERROR_PLUGIN_NOT_FOUND = OSYNC_ERROR_PLUGIN_NOT_FOUND; |