diff options
Diffstat (limited to 'plugin/test')
| -rw-r--r-- | plugin/test/Makefile.am | 20 | ||||
| -rw-r--r-- | plugin/test/Makefile.in | 710 | ||||
| -rw-r--r-- | plugin/test/README | 4 | ||||
| -rw-r--r-- | plugin/test/test.c | 306 | ||||
| -rw-r--r-- | plugin/test/test.h | 23 |
5 files changed, 1063 insertions, 0 deletions
diff --git a/plugin/test/Makefile.am b/plugin/test/Makefile.am new file mode 100644 index 0000000..dabf798 --- /dev/null +++ b/plugin/test/Makefile.am | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | libdir = $(plugindir) | ||
| 2 | |||
| 3 | lib_LTLIBRARIES = test.la | ||
| 4 | |||
| 5 | test_la_SOURCES = test.c test.h | ||
| 6 | test_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 7 | |||
| 8 | INCLUDES = \ | ||
| 9 | -I$(top_srcdir) \ | ||
| 10 | -I$(top_srcdir)/libsylph \ | ||
| 11 | -I$(top_srcdir)/src \ | ||
| 12 | $(GTK_CFLAGS) | ||
| 13 | |||
| 14 | test_la_LIBADD = \ | ||
| 15 | $(GTK_LIBS) \ | ||
| 16 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 17 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 18 | |||
| 19 | install: | ||
| 20 | install-plugin: install-am | ||
diff --git a/plugin/test/Makefile.in b/plugin/test/Makefile.in new file mode 100644 index 0000000..e29bffe --- /dev/null +++ b/plugin/test/Makefile.in | |||
| @@ -0,0 +1,710 @@ | |||
| 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | ||
| 2 | # @configure_input@ | ||
| 3 | |||
| 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | # This Makefile.in is free software; the Free Software Foundation | ||
| 7 | # gives unlimited permission to copy and/or distribute it, | ||
| 8 | # with or without modifications, as long as this notice is preserved. | ||
| 9 | |||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 13 | # PARTICULAR PURPOSE. | ||
| 14 | |||
| 15 | @SET_MAKE@ | ||
| 16 | |||
| 17 | VPATH = @srcdir@ | ||
| 18 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | ||
| 19 | am__make_running_with_option = \ | ||
| 20 | case $${target_option-} in \ | ||
| 21 | ?) ;; \ | ||
| 22 | *) echo "am__make_running_with_option: internal error: invalid" \ | ||
| 23 | "target option '$${target_option-}' specified" >&2; \ | ||
| 24 | exit 1;; \ | ||
| 25 | esac; \ | ||
| 26 | has_opt=no; \ | ||
| 27 | sane_makeflags=$$MAKEFLAGS; \ | ||
| 28 | if $(am__is_gnu_make); then \ | ||
| 29 | sane_makeflags=$$MFLAGS; \ | ||
| 30 | else \ | ||
| 31 | case $$MAKEFLAGS in \ | ||
| 32 | *\\[\ \ ]*) \ | ||
| 33 | bs=\\; \ | ||
| 34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | ||
| 35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | ||
| 36 | esac; \ | ||
| 37 | fi; \ | ||
| 38 | skip_next=no; \ | ||
| 39 | strip_trailopt () \ | ||
| 40 | { \ | ||
| 41 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | ||
| 42 | }; \ | ||
| 43 | for flg in $$sane_makeflags; do \ | ||
| 44 | test $$skip_next = yes && { skip_next=no; continue; }; \ | ||
| 45 | case $$flg in \ | ||
| 46 | *=*|--*) continue;; \ | ||
| 47 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | ||
| 48 | -*I?*) strip_trailopt 'I';; \ | ||
| 49 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | ||
| 50 | -*O?*) strip_trailopt 'O';; \ | ||
| 51 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | ||
| 52 | -*l?*) strip_trailopt 'l';; \ | ||
| 53 | -[dEDm]) skip_next=yes;; \ | ||
| 54 | -[JT]) skip_next=yes;; \ | ||
| 55 | esac; \ | ||
| 56 | case $$flg in \ | ||
| 57 | *$$target_option*) has_opt=yes; break;; \ | ||
| 58 | esac; \ | ||
| 59 | done; \ | ||
| 60 | test $$has_opt = yes | ||
| 61 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | ||
| 62 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | ||
| 63 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
| 64 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
| 65 | pkglibdir = $(libdir)/@PACKAGE@ | ||
| 66 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
| 67 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
| 68 | install_sh_DATA = $(install_sh) -c -m 644 | ||
| 69 | install_sh_PROGRAM = $(install_sh) -c | ||
| 70 | install_sh_SCRIPT = $(install_sh) -c | ||
| 71 | INSTALL_HEADER = $(INSTALL_DATA) | ||
| 72 | transform = $(program_transform_name) | ||
| 73 | NORMAL_INSTALL = : | ||
| 74 | PRE_INSTALL = : | ||
| 75 | POST_INSTALL = : | ||
| 76 | NORMAL_UNINSTALL = : | ||
| 77 | PRE_UNINSTALL = : | ||
| 78 | POST_UNINSTALL = : | ||
| 79 | build_triplet = @build@ | ||
| 80 | host_triplet = @host@ | ||
| 81 | target_triplet = @target@ | ||
| 82 | subdir = plugin/test | ||
| 83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | ||
| 84 | $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README | ||
| 85 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
| 86 | am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \ | ||
| 87 | $(top_srcdir)/ac/gnupg-check-typedef.m4 \ | ||
| 88 | $(top_srcdir)/configure.ac | ||
| 89 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
| 90 | $(ACLOCAL_M4) | ||
| 91 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
| 92 | CONFIG_HEADER = $(top_builddir)/config.h | ||
| 93 | CONFIG_CLEAN_FILES = | ||
| 94 | CONFIG_CLEAN_VPATH_FILES = | ||
| 95 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
| 96 | am__vpath_adj = case $$p in \ | ||
| 97 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
| 98 | *) f=$$p;; \ | ||
| 99 | esac; | ||
| 100 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
| 101 | am__install_max = 40 | ||
| 102 | am__nobase_strip_setup = \ | ||
| 103 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
| 104 | am__nobase_strip = \ | ||
| 105 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
| 106 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
| 107 | for p in $$list; do echo "$$p $$p"; done | \ | ||
| 108 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
| 109 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
| 110 | if (++n[$$2] == $(am__install_max)) \ | ||
| 111 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
| 112 | END { for (dir in files) print dir, files[dir] }' | ||
| 113 | am__base_list = \ | ||
| 114 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
| 115 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
| 116 | am__uninstall_files_from_dir = { \ | ||
| 117 | test -z "$$files" \ | ||
| 118 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | ||
| 119 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | ||
| 120 | $(am__cd) "$$dir" && rm -f $$files; }; \ | ||
| 121 | } | ||
| 122 | am__installdirs = "$(DESTDIR)$(libdir)" | ||
| 123 | LTLIBRARIES = $(lib_LTLIBRARIES) | ||
| 124 | am__DEPENDENCIES_1 = | ||
| 125 | test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
| 126 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 127 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 128 | am_test_la_OBJECTS = test.lo | ||
| 129 | test_la_OBJECTS = $(am_test_la_OBJECTS) | ||
| 130 | AM_V_lt = $(am__v_lt_@AM_V@) | ||
| 131 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | ||
| 132 | am__v_lt_0 = --silent | ||
| 133 | am__v_lt_1 = | ||
| 134 | test_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 135 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
| 136 | $(test_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 137 | AM_V_P = $(am__v_P_@AM_V@) | ||
| 138 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | ||
| 139 | am__v_P_0 = false | ||
| 140 | am__v_P_1 = : | ||
| 141 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 142 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 143 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 144 | am__v_GEN_1 = | ||
| 145 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 146 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 147 | am__v_at_0 = @ | ||
| 148 | am__v_at_1 = | ||
| 149 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
| 150 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
| 151 | am__depfiles_maybe = depfiles | ||
| 152 | am__mv = mv -f | ||
| 153 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
| 154 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
| 155 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 156 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
| 157 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
| 158 | $(AM_CFLAGS) $(CFLAGS) | ||
| 159 | AM_V_CC = $(am__v_CC_@AM_V@) | ||
| 160 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | ||
| 161 | am__v_CC_0 = @echo " CC " $@; | ||
| 162 | am__v_CC_1 = | ||
| 163 | CCLD = $(CC) | ||
| 164 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 165 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
| 166 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 167 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | ||
| 168 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | ||
| 169 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
| 170 | am__v_CCLD_1 = | ||
| 171 | SOURCES = $(test_la_SOURCES) | ||
| 172 | DIST_SOURCES = $(test_la_SOURCES) | ||
| 173 | am__can_run_installinfo = \ | ||
| 174 | case $$AM_UPDATE_INFO_DIR in \ | ||
| 175 | n|no|NO) false;; \ | ||
| 176 | *) (install-info --version) >/dev/null 2>&1;; \ | ||
| 177 | esac | ||
| 178 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | ||
| 179 | # Read a list of newline-separated strings from the standard input, | ||
| 180 | # and print each of them once, without duplicates. Input order is | ||
| 181 | # *not* preserved. | ||
| 182 | am__uniquify_input = $(AWK) '\ | ||
| 183 | BEGIN { nonempty = 0; } \ | ||
| 184 | { items[$$0] = 1; nonempty = 1; } \ | ||
| 185 | END { if (nonempty) { for (i in items) print i; }; } \ | ||
| 186 | ' | ||
| 187 | # Make sure the list of sources is unique. This is necessary because, | ||
| 188 | # e.g., the same source file might be shared among _SOURCES variables | ||
| 189 | # for different programs/libraries. | ||
| 190 | am__define_uniq_tagged_files = \ | ||
| 191 | list='$(am__tagged_files)'; \ | ||
| 192 | unique=`for i in $$list; do \ | ||
| 193 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 194 | done | $(am__uniquify_input)` | ||
| 195 | ETAGS = etags | ||
| 196 | CTAGS = ctags | ||
| 197 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
| 198 | ACLOCAL = @ACLOCAL@ | ||
| 199 | ALLOCA = @ALLOCA@ | ||
| 200 | AMTAR = @AMTAR@ | ||
| 201 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 202 | AR = @AR@ | ||
| 203 | AUTOCONF = @AUTOCONF@ | ||
| 204 | AUTOHEADER = @AUTOHEADER@ | ||
| 205 | AUTOMAKE = @AUTOMAKE@ | ||
| 206 | AWK = @AWK@ | ||
| 207 | BUILD_REVISION = @BUILD_REVISION@ | ||
| 208 | CATALOGS = @CATALOGS@ | ||
| 209 | CATOBJEXT = @CATOBJEXT@ | ||
| 210 | CC = @CC@ | ||
| 211 | CCDEPMODE = @CCDEPMODE@ | ||
| 212 | CFLAGS = @CFLAGS@ | ||
| 213 | CPP = @CPP@ | ||
| 214 | CPPFLAGS = @CPPFLAGS@ | ||
| 215 | CYGPATH_W = @CYGPATH_W@ | ||
| 216 | DATADIRNAME = @DATADIRNAME@ | ||
| 217 | DEFS = @DEFS@ | ||
| 218 | DEPDIR = @DEPDIR@ | ||
| 219 | DEVEL_VERSION = @DEVEL_VERSION@ | ||
| 220 | DLLTOOL = @DLLTOOL@ | ||
| 221 | DSYMUTIL = @DSYMUTIL@ | ||
| 222 | DUMPBIN = @DUMPBIN@ | ||
| 223 | ECHO_C = @ECHO_C@ | ||
| 224 | ECHO_N = @ECHO_N@ | ||
| 225 | ECHO_T = @ECHO_T@ | ||
| 226 | EGREP = @EGREP@ | ||
| 227 | EXEEXT = @EXEEXT@ | ||
| 228 | EXTRA_VERSION = @EXTRA_VERSION@ | ||
| 229 | FGREP = @FGREP@ | ||
| 230 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
| 231 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
| 232 | GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ | ||
| 233 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
| 234 | GLIB_LIBS = @GLIB_LIBS@ | ||
| 235 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
| 236 | GMOFILES = @GMOFILES@ | ||
| 237 | GMSGFMT = @GMSGFMT@ | ||
| 238 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
| 239 | GPGME_CFLAGS = @GPGME_CFLAGS@ | ||
| 240 | GPGME_CONFIG = @GPGME_CONFIG@ | ||
| 241 | GPGME_LIBS = @GPGME_LIBS@ | ||
| 242 | GREP = @GREP@ | ||
| 243 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
| 244 | GTK_LIBS = @GTK_LIBS@ | ||
| 245 | INSTALL = @INSTALL@ | ||
| 246 | INSTALL_DATA = @INSTALL_DATA@ | ||
| 247 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
| 248 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
| 249 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
| 250 | INSTOBJEXT = @INSTOBJEXT@ | ||
| 251 | INTLLIBS = @INTLLIBS@ | ||
| 252 | LD = @LD@ | ||
| 253 | LDAP_LIBS = @LDAP_LIBS@ | ||
| 254 | LDFLAGS = @LDFLAGS@ | ||
| 255 | LEX = @LEX@ | ||
| 256 | LEXLIB = @LEXLIB@ | ||
| 257 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
| 258 | LIBICONV = @LIBICONV@ | ||
| 259 | LIBOBJS = @LIBOBJS@ | ||
| 260 | LIBS = @LIBS@ | ||
| 261 | LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@ | ||
| 262 | LIBSYLPH_LIBS = @LIBSYLPH_LIBS@ | ||
| 263 | LIBTOOL = @LIBTOOL@ | ||
| 264 | LIPO = @LIPO@ | ||
| 265 | LN_S = @LN_S@ | ||
| 266 | LTLIBICONV = @LTLIBICONV@ | ||
| 267 | LTLIBOBJS = @LTLIBOBJS@ | ||
| 268 | LT_AGE = @LT_AGE@ | ||
| 269 | LT_CURRENT = @LT_CURRENT@ | ||
| 270 | LT_RELEASE = @LT_RELEASE@ | ||
| 271 | LT_REVISION = @LT_REVISION@ | ||
| 272 | MAINT = @MAINT@ | ||
| 273 | MAJOR_VERSION = @MAJOR_VERSION@ | ||
| 274 | MAKEINFO = @MAKEINFO@ | ||
| 275 | MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
| 276 | MICRO_VERSION = @MICRO_VERSION@ | ||
| 277 | MINOR_VERSION = @MINOR_VERSION@ | ||
| 278 | MKDIR_P = @MKDIR_P@ | ||
| 279 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
| 280 | MSGFMT = @MSGFMT@ | ||
| 281 | MSGFMT_OPTS = @MSGFMT_OPTS@ | ||
| 282 | NM = @NM@ | ||
| 283 | NMEDIT = @NMEDIT@ | ||
| 284 | OBJDUMP = @OBJDUMP@ | ||
| 285 | OBJEXT = @OBJEXT@ | ||
| 286 | OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ | ||
| 287 | OPENSSL_LIBS = @OPENSSL_LIBS@ | ||
| 288 | OTOOL = @OTOOL@ | ||
| 289 | OTOOL64 = @OTOOL64@ | ||
| 290 | PACKAGE = @PACKAGE@ | ||
| 291 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
| 292 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
| 293 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
| 294 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
| 295 | PACKAGE_URL = @PACKAGE_URL@ | ||
| 296 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
| 297 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
| 298 | PKG_CONFIG = @PKG_CONFIG@ | ||
| 299 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
| 300 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
| 301 | POFILES = @POFILES@ | ||
| 302 | POSUB = @POSUB@ | ||
| 303 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
| 304 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
| 305 | RANLIB = @RANLIB@ | ||
| 306 | SED = @SED@ | ||
| 307 | SET_MAKE = @SET_MAKE@ | ||
| 308 | SHELL = @SHELL@ | ||
| 309 | STRIP = @STRIP@ | ||
| 310 | SYLPHEED_LIBS = @SYLPHEED_LIBS@ | ||
| 311 | USE_NLS = @USE_NLS@ | ||
| 312 | VERSION = @VERSION@ | ||
| 313 | WINDRES = @WINDRES@ | ||
| 314 | XGETTEXT = @XGETTEXT@ | ||
| 315 | YACC = @YACC@ | ||
| 316 | YFLAGS = @YFLAGS@ | ||
| 317 | abs_builddir = @abs_builddir@ | ||
| 318 | abs_srcdir = @abs_srcdir@ | ||
| 319 | abs_top_builddir = @abs_top_builddir@ | ||
| 320 | abs_top_srcdir = @abs_top_srcdir@ | ||
| 321 | ac_ct_AR = @ac_ct_AR@ | ||
| 322 | ac_ct_CC = @ac_ct_CC@ | ||
| 323 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
| 324 | am__include = @am__include@ | ||
| 325 | am__leading_dot = @am__leading_dot@ | ||
| 326 | am__quote = @am__quote@ | ||
| 327 | am__tar = @am__tar@ | ||
| 328 | am__untar = @am__untar@ | ||
| 329 | bindir = @bindir@ | ||
| 330 | build = @build@ | ||
| 331 | build_alias = @build_alias@ | ||
| 332 | build_cpu = @build_cpu@ | ||
| 333 | build_os = @build_os@ | ||
| 334 | build_vendor = @build_vendor@ | ||
| 335 | builddir = @builddir@ | ||
| 336 | datadir = @datadir@ | ||
| 337 | datarootdir = @datarootdir@ | ||
| 338 | docdir = @docdir@ | ||
| 339 | dvidir = @dvidir@ | ||
| 340 | exec_prefix = @exec_prefix@ | ||
| 341 | faqdir = @faqdir@ | ||
| 342 | host = @host@ | ||
| 343 | host_alias = @host_alias@ | ||
| 344 | host_cpu = @host_cpu@ | ||
| 345 | host_os = @host_os@ | ||
| 346 | host_vendor = @host_vendor@ | ||
| 347 | htmldir = @htmldir@ | ||
| 348 | includedir = @includedir@ | ||
| 349 | infodir = @infodir@ | ||
| 350 | install_sh = @install_sh@ | ||
| 351 | libdir = $(plugindir) | ||
| 352 | libexecdir = @libexecdir@ | ||
| 353 | localedir = @localedir@ | ||
| 354 | localstatedir = @localstatedir@ | ||
| 355 | mandir = @mandir@ | ||
| 356 | manualdir = @manualdir@ | ||
| 357 | mkdir_p = @mkdir_p@ | ||
| 358 | oldincludedir = @oldincludedir@ | ||
| 359 | pdfdir = @pdfdir@ | ||
| 360 | plugindir = @plugindir@ | ||
| 361 | prefix = @prefix@ | ||
| 362 | program_transform_name = @program_transform_name@ | ||
| 363 | psdir = @psdir@ | ||
| 364 | sbindir = @sbindir@ | ||
| 365 | sharedstatedir = @sharedstatedir@ | ||
| 366 | srcdir = @srcdir@ | ||
| 367 | sysconfdir = @sysconfdir@ | ||
| 368 | target = @target@ | ||
| 369 | target_alias = @target_alias@ | ||
| 370 | target_cpu = @target_cpu@ | ||
| 371 | target_os = @target_os@ | ||
| 372 | target_vendor = @target_vendor@ | ||
| 373 | themedir = @themedir@ | ||
| 374 | top_build_prefix = @top_build_prefix@ | ||
| 375 | top_builddir = @top_builddir@ | ||
| 376 | top_srcdir = @top_srcdir@ | ||
| 377 | lib_LTLIBRARIES = test.la | ||
| 378 | test_la_SOURCES = test.c test.h | ||
| 379 | test_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 380 | INCLUDES = \ | ||
| 381 | -I$(top_srcdir) \ | ||
| 382 | -I$(top_srcdir)/libsylph \ | ||
| 383 | -I$(top_srcdir)/src \ | ||
| 384 | $(GTK_CFLAGS) | ||
| 385 | |||
| 386 | test_la_LIBADD = \ | ||
| 387 | $(GTK_LIBS) \ | ||
| 388 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 389 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 390 | |||
| 391 | all: all-am | ||
| 392 | |||
| 393 | .SUFFIXES: | ||
| 394 | .SUFFIXES: .c .lo .o .obj | ||
| 395 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | ||
| 396 | @for dep in $?; do \ | ||
| 397 | case '$(am__configure_deps)' in \ | ||
| 398 | *$$dep*) \ | ||
| 399 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
| 400 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
| 401 | exit 1;; \ | ||
| 402 | esac; \ | ||
| 403 | done; \ | ||
| 404 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugin/test/Makefile'; \ | ||
| 405 | $(am__cd) $(top_srcdir) && \ | ||
| 406 | $(AUTOMAKE) --foreign plugin/test/Makefile | ||
| 407 | .PRECIOUS: Makefile | ||
| 408 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
| 409 | @case '$?' in \ | ||
| 410 | *config.status*) \ | ||
| 411 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
| 412 | *) \ | ||
| 413 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
| 414 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
| 415 | esac; | ||
| 416 | |||
| 417 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
| 418 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 419 | |||
| 420 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | ||
| 421 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 422 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | ||
| 423 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 424 | $(am__aclocal_m4_deps): | ||
| 425 | |||
| 426 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) | ||
| 427 | @$(NORMAL_INSTALL) | ||
| 428 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 429 | list2=; for p in $$list; do \ | ||
| 430 | if test -f $$p; then \ | ||
| 431 | list2="$$list2 $$p"; \ | ||
| 432 | else :; fi; \ | ||
| 433 | done; \ | ||
| 434 | test -z "$$list2" || { \ | ||
| 435 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | ||
| 436 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | ||
| 437 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ | ||
| 438 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ | ||
| 439 | } | ||
| 440 | |||
| 441 | uninstall-libLTLIBRARIES: | ||
| 442 | @$(NORMAL_UNINSTALL) | ||
| 443 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 444 | for p in $$list; do \ | ||
| 445 | $(am__strip_dir) \ | ||
| 446 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ | ||
| 447 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ | ||
| 448 | done | ||
| 449 | |||
| 450 | clean-libLTLIBRARIES: | ||
| 451 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | ||
| 452 | @list='$(lib_LTLIBRARIES)'; \ | ||
| 453 | locs=`for p in $$list; do echo $$p; done | \ | ||
| 454 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | ||
| 455 | sort -u`; \ | ||
| 456 | test -z "$$locs" || { \ | ||
| 457 | echo rm -f $${locs}; \ | ||
| 458 | rm -f $${locs}; \ | ||
| 459 | } | ||
| 460 | |||
| 461 | test.la: $(test_la_OBJECTS) $(test_la_DEPENDENCIES) $(EXTRA_test_la_DEPENDENCIES) | ||
| 462 | $(AM_V_CCLD)$(test_la_LINK) -rpath $(libdir) $(test_la_OBJECTS) $(test_la_LIBADD) $(LIBS) | ||
| 463 | |||
| 464 | mostlyclean-compile: | ||
| 465 | -rm -f *.$(OBJEXT) | ||
| 466 | |||
| 467 | distclean-compile: | ||
| 468 | -rm -f *.tab.c | ||
| 469 | |||
| 470 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Plo@am__quote@ | ||
| 471 | |||
| 472 | .c.o: | ||
| 473 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 474 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 475 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 476 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 477 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | ||
| 478 | |||
| 479 | .c.obj: | ||
| 480 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 481 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 482 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 483 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 484 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 485 | |||
| 486 | .c.lo: | ||
| 487 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 488 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
| 489 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
| 490 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 491 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | ||
| 492 | |||
| 493 | mostlyclean-libtool: | ||
| 494 | -rm -f *.lo | ||
| 495 | |||
| 496 | clean-libtool: | ||
| 497 | -rm -rf .libs _libs | ||
| 498 | |||
| 499 | ID: $(am__tagged_files) | ||
| 500 | $(am__define_uniq_tagged_files); mkid -fID $$unique | ||
| 501 | tags: tags-am | ||
| 502 | TAGS: tags | ||
| 503 | |||
| 504 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 505 | set x; \ | ||
| 506 | here=`pwd`; \ | ||
| 507 | $(am__define_uniq_tagged_files); \ | ||
| 508 | shift; \ | ||
| 509 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
| 510 | test -n "$$unique" || unique=$$empty_fix; \ | ||
| 511 | if test $$# -gt 0; then \ | ||
| 512 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 513 | "$$@" $$unique; \ | ||
| 514 | else \ | ||
| 515 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 516 | $$unique; \ | ||
| 517 | fi; \ | ||
| 518 | fi | ||
| 519 | ctags: ctags-am | ||
| 520 | |||
| 521 | CTAGS: ctags | ||
| 522 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 523 | $(am__define_uniq_tagged_files); \ | ||
| 524 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
| 525 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
| 526 | $$unique | ||
| 527 | |||
| 528 | GTAGS: | ||
| 529 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
| 530 | && $(am__cd) $(top_srcdir) \ | ||
| 531 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
| 532 | cscopelist: cscopelist-am | ||
| 533 | |||
| 534 | cscopelist-am: $(am__tagged_files) | ||
| 535 | list='$(am__tagged_files)'; \ | ||
| 536 | case "$(srcdir)" in \ | ||
| 537 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | ||
| 538 | *) sdir=$(subdir)/$(srcdir) ;; \ | ||
| 539 | esac; \ | ||
| 540 | for i in $$list; do \ | ||
| 541 | if test -f "$$i"; then \ | ||
| 542 | echo "$(subdir)/$$i"; \ | ||
| 543 | else \ | ||
| 544 | echo "$$sdir/$$i"; \ | ||
| 545 | fi; \ | ||
| 546 | done >> $(top_builddir)/cscope.files | ||
| 547 | |||
| 548 | distclean-tags: | ||
| 549 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
| 550 | |||
| 551 | distdir: $(DISTFILES) | ||
| 552 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 553 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 554 | list='$(DISTFILES)'; \ | ||
| 555 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
| 556 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
| 557 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
| 558 | case $$dist_files in \ | ||
| 559 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
| 560 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
| 561 | sort -u` ;; \ | ||
| 562 | esac; \ | ||
| 563 | for file in $$dist_files; do \ | ||
| 564 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
| 565 | if test -d $$d/$$file; then \ | ||
| 566 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
| 567 | if test -d "$(distdir)/$$file"; then \ | ||
| 568 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 569 | fi; \ | ||
| 570 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
| 571 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 572 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 573 | fi; \ | ||
| 574 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 575 | else \ | ||
| 576 | test -f "$(distdir)/$$file" \ | ||
| 577 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
| 578 | || exit 1; \ | ||
| 579 | fi; \ | ||
| 580 | done | ||
| 581 | check-am: all-am | ||
| 582 | check: check-am | ||
| 583 | all-am: Makefile $(LTLIBRARIES) | ||
| 584 | installdirs: | ||
| 585 | for dir in "$(DESTDIR)$(libdir)"; do \ | ||
| 586 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
| 587 | done | ||
| 588 | install-exec: install-exec-am | ||
| 589 | install-data: install-data-am | ||
| 590 | uninstall: uninstall-am | ||
| 591 | |||
| 592 | install-am: all-am | ||
| 593 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
| 594 | |||
| 595 | installcheck: installcheck-am | ||
| 596 | install-strip: | ||
| 597 | if test -z '$(STRIP)'; then \ | ||
| 598 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 599 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 600 | install; \ | ||
| 601 | else \ | ||
| 602 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 603 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 604 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | ||
| 605 | fi | ||
| 606 | mostlyclean-generic: | ||
| 607 | |||
| 608 | clean-generic: | ||
| 609 | |||
| 610 | distclean-generic: | ||
| 611 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
| 612 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
| 613 | |||
| 614 | maintainer-clean-generic: | ||
| 615 | @echo "This command is intended for maintainers to use" | ||
| 616 | @echo "it deletes files that may require special tools to rebuild." | ||
| 617 | clean: clean-am | ||
| 618 | |||
| 619 | clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ | ||
| 620 | mostlyclean-am | ||
| 621 | |||
| 622 | distclean: distclean-am | ||
| 623 | -rm -rf ./$(DEPDIR) | ||
| 624 | -rm -f Makefile | ||
| 625 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
| 626 | distclean-tags | ||
| 627 | |||
| 628 | dvi: dvi-am | ||
| 629 | |||
| 630 | dvi-am: | ||
| 631 | |||
| 632 | html: html-am | ||
| 633 | |||
| 634 | html-am: | ||
| 635 | |||
| 636 | info: info-am | ||
| 637 | |||
| 638 | info-am: | ||
| 639 | |||
| 640 | install-data-am: | ||
| 641 | |||
| 642 | install-dvi: install-dvi-am | ||
| 643 | |||
| 644 | install-dvi-am: | ||
| 645 | |||
| 646 | install-exec-am: install-libLTLIBRARIES | ||
| 647 | |||
| 648 | install-html: install-html-am | ||
| 649 | |||
| 650 | install-html-am: | ||
| 651 | |||
| 652 | install-info: install-info-am | ||
| 653 | |||
| 654 | install-info-am: | ||
| 655 | |||
| 656 | install-man: | ||
| 657 | |||
| 658 | install-pdf: install-pdf-am | ||
| 659 | |||
| 660 | install-pdf-am: | ||
| 661 | |||
| 662 | install-ps: install-ps-am | ||
| 663 | |||
| 664 | install-ps-am: | ||
| 665 | |||
| 666 | installcheck-am: | ||
| 667 | |||
| 668 | maintainer-clean: maintainer-clean-am | ||
| 669 | -rm -rf ./$(DEPDIR) | ||
| 670 | -rm -f Makefile | ||
| 671 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
| 672 | |||
| 673 | mostlyclean: mostlyclean-am | ||
| 674 | |||
| 675 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
| 676 | mostlyclean-libtool | ||
| 677 | |||
| 678 | pdf: pdf-am | ||
| 679 | |||
| 680 | pdf-am: | ||
| 681 | |||
| 682 | ps: ps-am | ||
| 683 | |||
| 684 | ps-am: | ||
| 685 | |||
| 686 | uninstall-am: uninstall-libLTLIBRARIES | ||
| 687 | |||
| 688 | .MAKE: install-am install-strip | ||
| 689 | |||
| 690 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | ||
| 691 | clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ | ||
| 692 | ctags-am distclean distclean-compile distclean-generic \ | ||
| 693 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
| 694 | html-am info info-am install install-am install-data \ | ||
| 695 | install-data-am install-dvi install-dvi-am install-exec \ | ||
| 696 | install-exec-am install-html install-html-am install-info \ | ||
| 697 | install-info-am install-libLTLIBRARIES install-man install-pdf \ | ||
| 698 | install-pdf-am install-ps install-ps-am install-strip \ | ||
| 699 | installcheck installcheck-am installdirs maintainer-clean \ | ||
| 700 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
| 701 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
| 702 | tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES | ||
| 703 | |||
| 704 | |||
| 705 | install: | ||
| 706 | install-plugin: install-am | ||
| 707 | |||
| 708 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
| 709 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 710 | .NOEXPORT: | ||
diff --git a/plugin/test/README b/plugin/test/README new file mode 100644 index 0000000..3ba9451 --- /dev/null +++ b/plugin/test/README | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | This is a test plugin for Sylpheed plug-in system. | ||
| 2 | |||
| 3 | This plugin will not be installed by 'make install'. | ||
| 4 | To install this test plugin, use 'make install-plugin'. | ||
diff --git a/plugin/test/test.c b/plugin/test/test.c new file mode 100644 index 0000000..3276f7a --- /dev/null +++ b/plugin/test/test.c | |||
| @@ -0,0 +1,306 @@ | |||
| 1 | /* | ||
| 2 | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client | ||
| 3 | * Copyright (C) 1999-2013 Hiroyuki Yamamoto | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include <glib.h> | ||
| 21 | #include <gtk/gtk.h> | ||
| 22 | |||
| 23 | #include "sylmain.h" | ||
| 24 | #include "plugin.h" | ||
| 25 | #include "test.h" | ||
| 26 | #include "folder.h" | ||
| 27 | #include "procmsg.h" | ||
| 28 | |||
| 29 | static SylPluginInfo info = { | ||
| 30 | "Test Plugin", | ||
| 31 | "3.4.0", | ||
| 32 | "Hiroyuki Yamamoto", | ||
| 33 | "Test plug-in for Sylpheed plug-in system" | ||
| 34 | }; | ||
| 35 | |||
| 36 | static void init_done_cb(GObject *obj, gpointer data); | ||
| 37 | static void app_exit_cb(GObject *obj, gpointer data); | ||
| 38 | |||
| 39 | static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 40 | gpointer data); | ||
| 41 | static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 42 | gpointer data); | ||
| 43 | |||
| 44 | static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, | ||
| 45 | GtkTextView *textview, | ||
| 46 | const gchar *uri, | ||
| 47 | const gchar *selected_text, | ||
| 48 | MsgInfo *msginfo); | ||
| 49 | |||
| 50 | static void menu_selected_cb(void); | ||
| 51 | |||
| 52 | static void compose_created_cb(GObject *obj, gpointer compose); | ||
| 53 | static void compose_destroy_cb(GObject *obj, gpointer compose); | ||
| 54 | static gboolean compose_send_cb(GObject *obj, gpointer compose, | ||
| 55 | gint compose_mode, gint send_mode, | ||
| 56 | const gchar *msg_file, GSList *to_list); | ||
| 57 | static void messageview_show_cb(GObject *obj, gpointer msgview, | ||
| 58 | MsgInfo *msginfo, gboolean all_headers); | ||
| 59 | static void inc_start_cb(GObject *obj, PrefsAccount *ac); | ||
| 60 | static void inc_finished_cb(GObject *obj, gint new_messages); | ||
| 61 | |||
| 62 | static void create_window(void); | ||
| 63 | static void create_folderview_sub_widget(void); | ||
| 64 | |||
| 65 | static gulong test_app_exit_handler_id = 0; | ||
| 66 | |||
| 67 | void plugin_load(void) | ||
| 68 | { | ||
| 69 | GList *list, *cur; | ||
| 70 | const gchar *ver; | ||
| 71 | gpointer mainwin; | ||
| 72 | |||
| 73 | g_print("test plug-in loaded!\n"); | ||
| 74 | |||
| 75 | list = folder_get_list(); | ||
| 76 | g_print("folder list = %p\n", list); | ||
| 77 | for (cur = list; cur != NULL; cur = cur->next) { | ||
| 78 | Folder *folder = FOLDER(cur->data); | ||
| 79 | gchar *id = folder_get_identifier(folder); | ||
| 80 | g_print("folder id = %s\n", id); | ||
| 81 | } | ||
| 82 | |||
| 83 | ver = syl_plugin_get_prog_version(); | ||
| 84 | g_print("program ver: %s\n", ver); | ||
| 85 | |||
| 86 | mainwin = syl_plugin_main_window_get(); | ||
| 87 | g_print("mainwin: %p\n", mainwin); | ||
| 88 | syl_plugin_main_window_popup(mainwin); | ||
| 89 | |||
| 90 | create_folderview_sub_widget(); | ||
| 91 | |||
| 92 | syl_plugin_add_menuitem("/Tools", NULL, NULL, NULL); | ||
| 93 | syl_plugin_add_menuitem("/Tools", "Plugin test", create_window, NULL); | ||
| 94 | |||
| 95 | g_signal_connect_after(syl_app_get(), "init-done", G_CALLBACK(init_done_cb), | ||
| 96 | NULL); | ||
| 97 | test_app_exit_handler_id = | ||
| 98 | g_signal_connect(syl_app_get(), "app-exit", G_CALLBACK(app_exit_cb), | ||
| 99 | NULL); | ||
| 100 | syl_plugin_signal_connect("folderview-menu-popup", | ||
| 101 | G_CALLBACK(folderview_menu_popup_cb), NULL); | ||
| 102 | syl_plugin_signal_connect("summaryview-menu-popup", | ||
| 103 | G_CALLBACK(summaryview_menu_popup_cb), NULL); | ||
| 104 | syl_plugin_signal_connect("textview-menu-popup", | ||
| 105 | G_CALLBACK(textview_menu_popup_cb), NULL); | ||
| 106 | syl_plugin_signal_connect("compose-created", | ||
| 107 | G_CALLBACK(compose_created_cb), NULL); | ||
| 108 | syl_plugin_signal_connect("compose-destroy", | ||
| 109 | G_CALLBACK(compose_destroy_cb), NULL); | ||
| 110 | syl_plugin_signal_connect("compose-send", | ||
| 111 | G_CALLBACK(compose_send_cb), NULL); | ||
| 112 | syl_plugin_signal_connect("messageview-show", | ||
| 113 | G_CALLBACK(messageview_show_cb), NULL); | ||
| 114 | syl_plugin_signal_connect("inc-mail-start", | ||
| 115 | G_CALLBACK(inc_start_cb), NULL); | ||
| 116 | syl_plugin_signal_connect("inc-mail-finished", | ||
| 117 | G_CALLBACK(inc_finished_cb), NULL); | ||
| 118 | |||
| 119 | syl_plugin_add_factory_item("<SummaryView>", "/---", NULL, NULL); | ||
| 120 | syl_plugin_add_factory_item("<SummaryView>", "/Test Plug-in menu", | ||
| 121 | menu_selected_cb, NULL); | ||
| 122 | |||
| 123 | g_print("test plug-in loading done\n"); | ||
| 124 | } | ||
| 125 | |||
| 126 | void plugin_unload(void) | ||
| 127 | { | ||
| 128 | g_print("test plug-in unloaded!\n"); | ||
| 129 | g_signal_handler_disconnect(syl_app_get(), test_app_exit_handler_id); | ||
| 130 | } | ||
| 131 | |||
| 132 | SylPluginInfo *plugin_info(void) | ||
| 133 | { | ||
| 134 | return &info; | ||
| 135 | } | ||
| 136 | |||
| 137 | gint plugin_interface_version(void) | ||
| 138 | { | ||
| 139 | return SYL_PLUGIN_INTERFACE_VERSION; | ||
| 140 | } | ||
| 141 | |||
| 142 | static void init_done_cb(GObject *obj, gpointer data) | ||
| 143 | { | ||
| 144 | syl_plugin_update_check_set_check_url("http://localhost/version_pro.txt?"); | ||
| 145 | syl_plugin_update_check_set_download_url("http://localhost/download.php?sno=123&ver=VER&os=win"); | ||
| 146 | syl_plugin_update_check_set_jump_url("http://localhost/index.html"); | ||
| 147 | syl_plugin_update_check_set_check_plugin_url("http://localhost/plugin_version.txt"); | ||
| 148 | syl_plugin_update_check_set_jump_plugin_url("http://localhost/plugin.html"); | ||
| 149 | |||
| 150 | syl_plugin_notification_window_open("Sylpheed app init done", "Normal text\n<b>Bold</b>\n<s>Strikethrough</s>\n<b>This is a long text and will be truncated:</b> ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5); | ||
| 151 | |||
| 152 | g_print("test: %p: app init done\n", obj); | ||
| 153 | } | ||
| 154 | |||
| 155 | static void app_exit_cb(GObject *obj, gpointer data) | ||
| 156 | { | ||
| 157 | g_print("test: %p: app will exit\n", obj); | ||
| 158 | } | ||
| 159 | |||
| 160 | static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 161 | gpointer data) | ||
| 162 | { | ||
| 163 | g_print("test: %p: folderview menu popup\n", obj); | ||
| 164 | } | ||
| 165 | |||
| 166 | static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 167 | gpointer data) | ||
| 168 | { | ||
| 169 | GtkWidget *widget; | ||
| 170 | |||
| 171 | g_print("test: %p: summaryview menu popup\n", obj); | ||
| 172 | widget = gtk_item_factory_get_item(ifactory, "/Test Plug-in menu"); | ||
| 173 | if (widget) | ||
| 174 | gtk_widget_set_sensitive(widget, TRUE); | ||
| 175 | } | ||
| 176 | |||
| 177 | static void activate_menu_cb(GtkMenuItem *menuitem, gpointer data) | ||
| 178 | { | ||
| 179 | g_print("menu activated\n"); | ||
| 180 | } | ||
| 181 | |||
| 182 | static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, | ||
| 183 | GtkTextView *textview, | ||
| 184 | const gchar *uri, | ||
| 185 | const gchar *selected_text, | ||
| 186 | MsgInfo *msginfo) | ||
| 187 | { | ||
| 188 | GtkWidget *separator, *menuitem; | ||
| 189 | |||
| 190 | g_print("test: %p: textview menu popup\n", obj); | ||
| 191 | g_print("test: %p: uri: %s, text: %s\n", obj, uri ? uri : "(none)", | ||
| 192 | selected_text ? selected_text : "(none)"); | ||
| 193 | g_print("test: %p: msg: %s\n", obj, | ||
| 194 | msginfo && msginfo->subject ? msginfo->subject : ""); | ||
| 195 | |||
| 196 | separator = gtk_separator_menu_item_new(); | ||
| 197 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator); | ||
| 198 | gtk_widget_show(separator); | ||
| 199 | |||
| 200 | menuitem = gtk_menu_item_new_with_mnemonic("Test menu"); | ||
| 201 | g_signal_connect(menuitem, "activate", G_CALLBACK(activate_menu_cb), NULL); | ||
| 202 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); | ||
| 203 | gtk_widget_show(menuitem); | ||
| 204 | } | ||
| 205 | |||
| 206 | static void menu_selected_cb(void) | ||
| 207 | { | ||
| 208 | gint sel; | ||
| 209 | GSList *mlist; | ||
| 210 | |||
| 211 | g_print("test: summary menu selected\n"); | ||
| 212 | sel = syl_plugin_summary_get_selection_type(); | ||
| 213 | mlist = syl_plugin_summary_get_selected_msg_list(); | ||
| 214 | g_print("test: selection type: %d\n", sel); | ||
| 215 | g_print("test: number of selected summary message: %d\n", | ||
| 216 | g_slist_length(mlist)); | ||
| 217 | g_slist_free(mlist); | ||
| 218 | } | ||
| 219 | |||
| 220 | static void compose_created_cb(GObject *obj, gpointer compose) | ||
| 221 | { | ||
| 222 | gchar *text; | ||
| 223 | |||
| 224 | g_print("test: %p: compose created (%p)\n", obj, compose); | ||
| 225 | |||
| 226 | text = syl_plugin_compose_entry_get_text(compose, 0); | ||
| 227 | g_print("test: compose To: %s\n", text); | ||
| 228 | g_free(text); | ||
| 229 | #if 0 | ||
| 230 | syl_plugin_compose_entry_set(compose, "test-plugin@test", 1); | ||
| 231 | syl_plugin_compose_entry_append(compose, "second@test", 1); | ||
| 232 | #endif | ||
| 233 | } | ||
| 234 | |||
| 235 | static void compose_destroy_cb(GObject *obj, gpointer compose) | ||
| 236 | { | ||
| 237 | g_print("test: %p: compose will be destroyed (%p)\n", obj, compose); | ||
| 238 | } | ||
| 239 | |||
| 240 | static gboolean compose_send_cb(GObject *obj, gpointer compose, | ||
| 241 | gint compose_mode, gint send_mode, | ||
| 242 | const gchar *msg_file, GSList *to_list) | ||
| 243 | { | ||
| 244 | g_print("test: %p: composed message will be sent (%p)\n", obj, compose); | ||
| 245 | g_print("test: compose_mode: %d, send_mode: %d, file: %s\n", | ||
| 246 | compose_mode, send_mode, msg_file); | ||
| 247 | |||
| 248 | return FALSE; /* return TRUE to cancel sending */ | ||
| 249 | } | ||
| 250 | |||
| 251 | static void messageview_show_cb(GObject *obj, gpointer msgview, | ||
| 252 | MsgInfo *msginfo, gboolean all_headers) | ||
| 253 | { | ||
| 254 | g_print("test: %p: messageview_show (%p), all_headers: %d: %s\n", | ||
| 255 | obj, msgview, all_headers, | ||
| 256 | msginfo && msginfo->subject ? msginfo->subject : ""); | ||
| 257 | } | ||
| 258 | |||
| 259 | static void inc_start_cb(GObject *obj, PrefsAccount *ac) | ||
| 260 | { | ||
| 261 | if (ac) | ||
| 262 | g_print("test: receive start: account: %s\n", ac->account_name); | ||
| 263 | else | ||
| 264 | g_print("test: receive start: all accounts\n"); | ||
| 265 | } | ||
| 266 | |||
| 267 | static void inc_finished_cb(GObject *obj, gint new_messages) | ||
| 268 | { | ||
| 269 | g_print("test: received %d new messages\n", new_messages); | ||
| 270 | } | ||
| 271 | |||
| 272 | static void button_clicked(GtkWidget *widget, gpointer data) | ||
| 273 | { | ||
| 274 | g_print("button_clicked\n"); | ||
| 275 | /* syl_plugin_app_will_exit(TRUE); */ | ||
| 276 | } | ||
| 277 | |||
| 278 | static void create_window(void) | ||
| 279 | { | ||
| 280 | GtkWidget *window; | ||
| 281 | GtkWidget *button; | ||
| 282 | |||
| 283 | g_print("creating window\n"); | ||
| 284 | |||
| 285 | window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | ||
| 286 | button = gtk_button_new_with_label("Click this button"); | ||
| 287 | gtk_window_set_default_size(GTK_WINDOW(window), 400, 200); | ||
| 288 | gtk_container_add(GTK_CONTAINER(window), button); | ||
| 289 | g_signal_connect(G_OBJECT(button), "clicked", | ||
| 290 | G_CALLBACK(button_clicked), NULL); | ||
| 291 | gtk_widget_show_all(window); | ||
| 292 | } | ||
| 293 | |||
| 294 | static void create_folderview_sub_widget(void) | ||
| 295 | { | ||
| 296 | GtkWidget *vbox; | ||
| 297 | GtkWidget *button; | ||
| 298 | |||
| 299 | g_print("creating sub widget\n"); | ||
| 300 | |||
| 301 | vbox = gtk_vbox_new(FALSE, 2); | ||
| 302 | button = gtk_button_new_with_label("Test"); | ||
| 303 | gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); | ||
| 304 | gtk_widget_show_all(vbox); | ||
| 305 | syl_plugin_folderview_add_sub_widget(vbox); | ||
| 306 | } | ||
diff --git a/plugin/test/test.h b/plugin/test/test.h new file mode 100644 index 0000000..253c915 --- /dev/null +++ b/plugin/test/test.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client | ||
| 3 | * Copyright (C) 1999-2011 Hiroyuki Yamamoto | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef __TEST_H__ | ||
| 21 | #define __TEST_H__ | ||
| 22 | |||
| 23 | #endif /* __TEST_H__ */ | ||
