[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash extensions/Makefile.am configure.ac libba...
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash extensions/Makefile.am configure.ac libba... |
Date: |
Thu, 27 Sep 2007 00:29:31 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 07/09/27 00:29:31
Modified files:
extensions : Makefile.am
. : configure.ac
libbase : extension.cpp
Added files:
macros : dbus.m4
extensions/dbus: Makefile.am dbus_ext.cpp dbus_ext.h test.as
Log message:
* libbase/extension.cpp: Initialize the entry first so the loop
actually works.
* extensions/dbus_ext.h, dbus_ext.cpp: Minimal code stubs for a
soon to be Dbus extension.
* configure.ac: Add extensions/dbus. Drop calling
GNASH_PATH_LIRC, as Gnash has it's own LIRC client code, and
doesn't use the lirc_client API anymore.
* macros/dbus.m4: New macro for Dbus support.
* extensions/Makefile.am: Build dbus extension if requested.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/dbus.m4?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/Makefile.am?cvsroot=gnash&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.422&r2=1.423
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/extension.cpp?cvsroot=gnash&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/dbus/Makefile.am?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/dbus/dbus_ext.cpp?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/dbus/dbus_ext.h?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/dbus/test.as?cvsroot=gnash&rev=1.1
Patches:
Index: extensions/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/extensions/Makefile.am,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- extensions/Makefile.am 15 Sep 2007 17:53:09 -0000 1.12
+++ extensions/Makefile.am 27 Sep 2007 00:29:30 -0000 1.13
@@ -35,6 +35,10 @@
OTHER_DIRS += lirc
endif
+if BUILD_DBUS_EXT
+OTHER_DIRS += dbus
+endif
+
# if BUILD_DBUS_EXT
# OTHER_DIRS += dbus
# endif
Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.422
retrieving revision 1.423
diff -u -b -r1.422 -r1.423
--- configure.ac 23 Sep 2007 22:09:14 -0000 1.422
+++ configure.ac 27 Sep 2007 00:29:30 -0000 1.423
@@ -15,7 +15,7 @@
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
dnl
-dnl $Id: configure.ac,v 1.422 2007/09/23 22:09:14 cmusick Exp $
+dnl $Id: configure.ac,v 1.423 2007/09/27 00:29:30 rsavoye Exp $
AC_PREREQ(2.50)
AC_INIT(gnash, cvs)
@@ -560,11 +560,8 @@
AM_CONDITIONAL(BUILD_GTK_EXT, [ test x$ext_gtk = xyes ])
AM_CONDITIONAL(BUILD_LIRC_EXT, [ test x$ext_lirc = xyes ])
AM_CONDITIONAL(BUILD_DBUS_EXT, [ test x$ext_dbus = xyes ])
-if test x$ext_mysql = xyes; then
- GNASH_PATH_MYSQL
-fi
-dnl force lirc to be enabled
+dnl force lirc to be enabled when building the extension.
if test x"${ext_lirc}" = x"yes"; then
lirc=yes
fi
@@ -661,6 +658,14 @@
dnl !!
dnl !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if test x$ext_dbus = xyes; then
+ GNASH_PATH_DBUS
+fi
+
+if test x$ext_mysql = xyes; then
+ GNASH_PATH_MYSQL
+fi
+
dnl -----------------------------------------------------------
dnl Verify dependencies for requested GUIs are met, and
dnl disable build of the GUIS for which deps are NOT met
@@ -796,9 +801,7 @@
;;
esac
-dnl Look for LIRC, which i sused if there is a remote control
-GNASH_PATH_LIRC
-AM_CONDITIONAL(LIRC, [test -n "$LIRC_LIBS"])
+AM_CONDITIONAL(LIRC, [test x$lirc_ext = xyes])
AC_CHECK_HEADERS(malloc.h)
AC_CHECK_HEADERS(getopt.h)
@@ -1478,6 +1481,7 @@
extensions/fileio/Makefile
extensions/gtk2/Makefile
extensions/lirc/Makefile
+extensions/dbus/Makefile
plugin/Makefile
plugin/klash/Makefile
cygnal/Makefile
@@ -2001,20 +2005,21 @@
echo " or .rpm users: yum install curl-devel"
fi
-
-if test x"$LIRC_LIBS" != x; then
- if test x"$LIRC_CFLAGS" != x; then
- echo " LIRC flags are: $LIRC_CFLAGS"
+if test x"$ext_dbus" = xyes; then
+ if test x"$DBUS_LIBS" != x; then
+ if test x"$DBUS_CFLAGS" != x; then
+ echo " DBUS flags are: $DBUS_CFLAGS"
else
- echo " LIRC flags are: default include path"
+ echo " DBUS flags are: default include path"
fi
- echo " LIRC libs are: $LIRC_LIBS"
-else
- echo " WARNING: LIRC library not found."
+ echo " DBUS libs are: $DBUS_LIBS"
+ else
+ echo " WARNING: DBUS library not found."
echo " Gnash will be built without support for remote
controls."
- echo " Why not install liblirc from http://www.lirc.org"
- echo " or .deb users: apt-get install lirc-dev"
- echo " or .rpm users: yum install lirc-devel"
+ echo " Why not install libdbus from http://www.dbus.org"
+ echo " or .deb users: apt-get install dbus-dev"
+ echo " or .rpm users: yum install dbus-devel"
+ fi
fi
if test x$build_agg = xyes; then # {
Index: libbase/extension.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/extension.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- libbase/extension.cpp 23 Sep 2007 08:48:17 -0000 1.14
+++ libbase/extension.cpp 27 Sep 2007 00:29:30 -0000 1.15
@@ -16,7 +16,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-/* $Id: extension.cpp,v 1.14 2007/09/23 08:48:17 cmusick Exp $ */
+/* $Id: extension.cpp,v 1.15 2007/09/27 00:29:30 rsavoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -218,6 +218,7 @@
dir = dirlistcopy;
}
+
while (dir) {
log_msg(_("Scanning directory \"%s\" for plugins"), dir);
DIR *library_dir = opendir(dir);
@@ -227,6 +228,7 @@
return false;
}
+ entry = readdir(library_dir);
for (i=0; entry>0; i++) {
// We only want shared libraries than end with the suffix,
otherwise
// we get all the duplicates.
@@ -245,6 +247,8 @@
continue;
}
+ log_msg(_("Gnash Plugin name: %s"), entry->d_name);
+
if (strcmp(suffix, ".so") == 0) {
*suffix = 0;
log_msg(_("Gnash Plugin name: %s"), entry->d_name);
Index: macros/dbus.m4
===================================================================
RCS file: macros/dbus.m4
diff -N macros/dbus.m4
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ macros/dbus.m4 27 Sep 2007 00:29:30 -0000 1.1
@@ -0,0 +1,139 @@
+dnl
+dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 3 of the License, or
+dnl (at your option) any later version.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+dnl GNU General Public License for more details.
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+dnl $Id: dbus.m4,v 1.1 2007/09/27 00:29:30 rsavoye Exp $
+
+AC_DEFUN([GNASH_PATH_DBUS],
+[
+
+ dnl Look for the header
+ AC_ARG_WITH(dbus_incl, AC_HELP_STRING([--with-dbus-incl], [directory where
libdbus header is]), with_dbus_incl=${withval})
+ AC_CACHE_VAL(ac_cv_path_dbus_incl,[
+ if test x"${with_dbus_incl}" != x ; then
+ if test -f ${with_dbus_incl}/dbus/dbus.h ; then
+ ac_cv_path_dbus_incl=-I`(cd ${with_dbus_incl}; pwd)`
+ else
+ AC_MSG_ERROR([${with_dbus_incl} directory doesn't contain dbus/dbus.h])
+ fi
+ fi
+ ])
+
+ if test x$cross_compiling = xno; then
+ if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_dbus_incl}" = x; then
+ $PKG_CONFIG --exists dbus-1 && ac_cv_path_dbus_incl=`$PKG_CONFIG
--cflags dbus-1`
+ fi
+ fi
+
+ dnl Attempt to find the top level directory, which unfortunately has a
+ dnl version number attached. At least on Debain based systems, this
+ dnl doesn't seem to get a directory that is unversioned.
+
+ AC_MSG_CHECKING([for the Dbus Version])
+
+ if test x$cross_compiling = xno; then
+ if test x"$PKG_CONFIG" != x; then
+ $PKG_CONFIG --exists dbus-1 && gnash_dbus_version=`$PKG_CONFIG
--modversion dbus-1 | cut -d "." -f 1 | awk '{print $'0'".0"}'`
+ fi
+ fi
+
+ if test x"${gnash_dbus_version}" = x; then
+ gnash_dbus_topdir=""
+ gnash_dbus_version=""
+ for i in $incllist; do
+ for j in `ls -dr $i/dbus-[[0-9]].[[0-9]] 2>/dev/null`; do
+ if test -f $j/dbus.h; then
+ gnash_dbus_topdir=`basename $j`
+ gnash_dbus_version=`echo ${gnash_dbus_topdir} | sed -e
's:dbus-::' -e 's:.0::'`
+ ac_cv_path_dbus_incl="-I$i/${gnash_dbus_topdir}"
+ break
+ fi
+ done
+ if test x$gnash_dbus_version != x; then
+ break;
+ fi
+ done
+ fi
+
+ if test x"${gnash_dbus_version}" = x; then
+ AC_MSG_RESULT(none)
+ else
+ AC_MSG_RESULT([${gnash_dbus_version}])
+ fi
+
+ AC_MSG_CHECKING([for Dbus headers])
+ AC_MSG_RESULT(${ac_cv_path_dbus_incl})
+
+ dnl Look for the library
+ AC_ARG_WITH(dbus_lib, AC_HELP_STRING([--with-dbus-lib], [directory where
dbus library is]), with_dbus_lib=${withval})
+ AC_CACHE_VAL(ac_cv_path_dbus_lib,[
+ if test x"${with_dbus_lib}" != x ; then
+ if test -f ${with_dbus_lib}/libdbus-1.a -o -f
${with_dbus_lib}/libdbus-1.${shlibext}; then
+ ac_cv_path_dbus_lib=-L`(cd ${with_dbus_lib}; pwd)`
+ else
+ AC_MSG_ERROR([${with_dbus_lib} directory doesn't contain
libdbus.])
+ fi
+ fi
+ ])
+
+ if test x$cross_compiling = xno; then
+ if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_dbus_lib}" = x; then
+ $PKG_CONFIG --exists dbus-1 && ac_cv_path_dbus_lib=`$PKG_CONFIG
--libs-only-l dbus-1`
+ fi
+ fi
+
+ if test x"${ac_cv_path_dbus_lib}" = x; then
+ newlist="/lib /lib64 $libslist"
+ for i in $newlist; do
+ if test -f $i/libdbus-${gnash_dbus_version}.a -o -f
$i/libdbus-${gnash_dbus_version}.${shlibext}; then
+ if test x"$i" != x"/lib"; then
+ ac_cv_path_dbus_lib="-L$i -ldbus-${gnash_dbus_version}"
+ break
+ else
+ ac_cv_path_dbus_lib="-ldbus-${gnash_dbus_version}"
+ break
+ fi
+ fi
+ done
+ fi
+
+ AC_MSG_CHECKING([for Dbus library])
+ AC_MSG_RESULT(${ac_cv_path_dbus_lib})
+
+ if test x"${ac_cv_path_dbus_lib}" = x; then
+ AC_CHECK_LIB(dbus-${gnash_dbus_version}, dbus_engine_shape_class_init,
[ac_cv_path_dbus_lib="-ldbus-${gnash_dbus_version}"])
+ fi
+
+ if test x"${ac_cv_path_dbus_incl}" != x; then
+ DBUS_CFLAGS="${ac_cv_path_dbus_incl}"
+ else
+ DBUS_CFLAGS=""
+ fi
+
+ if test x"${ac_cv_path_dbus_lib}" != x; then
+ DBUS_LIBS="${ac_cv_path_dbus_lib}"
+ else
+ DBUS_LIBS=""
+ fi
+
+ AC_SUBST(DBUS_CFLAGS)
+ AC_SUBST(DBUS_LIBS)
+])
+
+# Local Variables:
+# c-basic-offset: 2
+# tab-width: 2
+# indent-tabs-mode: nil
+# End:
Index: extensions/dbus/Makefile.am
===================================================================
RCS file: extensions/dbus/Makefile.am
diff -N extensions/dbus/Makefile.am
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ extensions/dbus/Makefile.am 27 Sep 2007 00:29:30 -0000 1.1
@@ -0,0 +1,48 @@
+## Process this file with automake to generate Makefile.in
+#
+# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+AUTOMAKE_OPTIONS =
+
+# this is where Gnash plugins get installed
+pluginsdir = $(libdir)/gnash/plugins
+
+plugins_LTLIBRARIES = dbus.la
+
+INCLUDES = -I$(srcdir) \
+ -I$(top_srcdir)/libbase \
+ -I$(top_srcdir)/server \
+ -I$(top_srcdir)/server/vm \
+ -I$(top_srcdir)/asobjs \
+ $(INCLTDL)
+
+dbus_la_SOURCES = dbus_ext.cpp dbus_ext.h
+dbus_la_LDFLAGS = -module -avoid-version -no-undefined
+dbus_la_LIBDADD = $(LIBADD_DL) $(LIBLTDL) \
+ $(top_builddir)/libbase/libgnashbase.la \
+ $(top_builddir)/backend/libgnashbackend.la \
+ $(top_builddir)/server/libgnashserver.la \
+ $(PTHREAD_LIBS) \
+ $(NULL)
+
+check_PROGRAMS = # SharedTest
+CLEANFILES = \
+ gnash-dbg.log
+
+install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
+ test -d "$(DESTDIR)$(pluginsdir)" || $(mkinstalldirs)
"$(DESTDIR)$(pluginsdir)"
+ $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG)
$(plugins_LTLIBRARIES) "$(DESTDIR)$(pluginsdir)/$(plugins_LTLIBRARIES)"
+ $(RM) $(DESTDIR)$(pluginsdir)/*.a
Index: extensions/dbus/dbus_ext.cpp
===================================================================
RCS file: extensions/dbus/dbus_ext.cpp
diff -N extensions/dbus/dbus_ext.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ extensions/dbus/dbus_ext.cpp 27 Sep 2007 00:29:30 -0000 1.1
@@ -0,0 +1,142 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <iostream>
+
+#include <cstdarg>
+#include <cstdio>
+#include <cstdlib>
+
+#include <string>
+#include "log.h"
+#include "dbus_ext.h"
+#include "fn_call.h"
+#include "as_object.h"
+#include "builtin_function.h" // need builtin_function
+
+using namespace std;
+
+namespace gnash
+{
+
+as_value dbus_ext_setsockname(const fn_call& fn);
+
+Dbus::Dbus()
+ : _name(0)
+{
+ GNASH_REPORT_FUNCTION;
+}
+
+
+Dbus::~Dbus()
+{
+ GNASH_REPORT_FUNCTION;
+}
+
+void
+Dbus::setSocketName(const char *sock)
+{
+ GNASH_REPORT_FUNCTION;
+ _name = sock;
+}
+
+class dbus_as_object : public as_object
+{
+public:
+ Dbus obj;
+};
+
+static void
+attachInterface(as_object *obj)
+{
+ GNASH_REPORT_FUNCTION;
+ obj->init_member("setSocketName", new
builtin_function(dbus_ext_setsockname));
+}
+
+static as_object*
+getInterface()
+{
+ GNASH_REPORT_FUNCTION;
+ static boost::intrusive_ptr<as_object> o;
+ if (o == NULL) {
+ o = new as_object();
+ }
+ return o.get();
+}
+
+static as_value
+dbus_ctor(const fn_call& /* fn */)
+{
+ GNASH_REPORT_FUNCTION;
+ dbus_as_object* obj = new dbus_as_object();
+
+ attachInterface(obj);
+ return as_value(obj); // will keep alive
+// printf ("Hello World from %s !!!\n", __PRETTY_FUNCTION__);
+}
+
+as_value
+dbus_ext_setsockname(const fn_call& fn)
+{
+ GNASH_REPORT_FUNCTION;
+ boost::intrusive_ptr<dbus_as_object> ptr =
ensureType<dbus_as_object>(fn.this_ptr);
+
+ if (fn.nargs > 0) {
+ string text = fn.arg(0).to_string();
+ ptr->obj.setSocketName(text.c_str());
+ return as_value(true);
+ }
+ return as_value(false);
+}
+
+std::auto_ptr<as_object>
+init_dbus_instance()
+{
+ return std::auto_ptr<as_object>(new dbus_as_object());
+}
+
+// const char *dbus_setmode(struct dbus_config *config, const char *mode);
+extern "C" {
+ void
+ dbus_class_init(as_object &obj)
+ {
+// GNASH_REPORT_FUNCTION;
+ // This is going to be the global "class"/"function"
+ static boost::intrusive_ptr<builtin_function> cl;
+ if (cl == NULL) {
+ cl = new builtin_function(&dbus_ctor, getInterface());
+// // replicate all interface to class, to be able to access
+// // all methods as static functions
+ attachInterface(cl.get());
+ }
+
+ obj.init_member("Dbus", cl.get());
+ }
+} // end of extern C
+
+
+} // end of gnash namespace
+
+// Local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
Index: extensions/dbus/dbus_ext.h
===================================================================
RCS file: extensions/dbus/dbus_ext.h
diff -N extensions/dbus/dbus_ext.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ extensions/dbus/dbus_ext.h 27 Sep 2007 00:29:31 -0000 1.1
@@ -0,0 +1,55 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+#ifndef __DBUS_PLUGIN_H__
+#define __DBUS_PLUGIN_H__
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <memory> // for auto_ptr
+#include "as_object.h"
+
+namespace gnash
+{
+
+class Dbus {
+public:
+ Dbus();
+ ~Dbus();
+ void setSocketName(const char *sock);
+private:
+ const char *_name;
+};
+
+extern "C" {
+ void dbus_class_init(as_object &obj);
+ /// Return an instance
+}
+
+std::auto_ptr<as_object> init_dbus_instance();
+
+} // end of gnash namespace
+
+// __DBUS_PLUGIN_H__
+#endif
+
+// Local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
Index: extensions/dbus/test.as
===================================================================
RCS file: extensions/dbus/test.as
diff -N extensions/dbus/test.as
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ extensions/dbus/test.as 27 Sep 2007 00:29:31 -0000 1.1
@@ -0,0 +1,43 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for dbus ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: test.as,v 1.1 2007/09/27 00:29:31 rsavoye Exp $";
+
+var bus = new Dbus();
+
+// test the constuctor
+if (bus) {
+ trace("Dbus() constructor works");
+} else {
+ trace("Dbus() constructor failed");
+}
+
+if (!bus) {
+ trace("UNTESTED: extensions not built!");
+}
+
+// If the extension doesn't load, don't do anything.
+if (bus) {
+ // do something
+}
+
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash extensions/Makefile.am configure.ac libba...,
Rob Savoye <=