vlc_appdir = $(bindir)
VLC.app: vlc $(PLUGIN_FILES)
rm -Rf VLC.app
- cd extras/MacOSX ; pbxbuild | grep -v '^[ \t]' | grep -v "^$$"
+ cd extras/MacOSX ; pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
cp -r extras/MacOSX/build/vlc.bundle ./VLC.app
$(INSTALL) -d VLC.app/Contents/MacOS
$(INSTALL) vlc VLC.app/Contents/MacOS/VLC
--- /dev/null
+/*****************************************************************************
+ * VLC Plugin description for OS X
+ *****************************************************************************/
+
+/* Definitions of system resource types */
+#include <Types.r>
+
+/* The first string in the array is a plugin description,
+ * the second is the plugin name */
+resource 'STR#' (126)
+{
+ {
+ "A VLC test plugin... hope it goes somewhere",
+ "VLC plugin"
+ };
+};
+
+/* A description for each MIME type in resource 128 */
+resource 'STR#' (127)
+{
+ {
+ "Invoke scriptable sample plugin"
+ };
+};
+
+/* A series of pairs of strings... first MIME type, then file extension(s) */
+resource 'STR#' (128,"MIME Type")
+{
+ {
+ "application/vlc-plugin", ""
+ };
+};
+
* vlcshell.cpp: a VLC plugin for Mozilla
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: vlcshell.cpp,v 1.11 2003/04/09 16:18:36 sam Exp $
+ * $Id: vlcshell.cpp,v 1.12 2003/04/09 17:27:51 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
+/* XXX: disable VLC here */
+#define USE_LIBVLC 1
+
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <string.h>
/* vlc stuff */
-#include <vlc/vlc.h>
+#ifdef USE_LIBVLC
+# include <vlc/vlc.h>
+#endif
/* Mozilla stuff */
#include <npapi.h>
# include <X11/StringDefs.h>
#endif
+#ifdef XP_MAC
+ /* Mac OS X stuff */
+# include <QuickDraw.h>
+#endif
+
#include "vlcpeer.h"
#include "vlcplugin.h"
-/* XXX: disable VLC */
-#define USE_LIBVLC 1
-
#if USE_LIBVLC
# define WINDOW_TEXT "(no picture)"
#else
return NPERR_NO_ERROR;
}
+/******************************************************************************
+ * Mac-only API calls
+ *****************************************************************************/
+#ifdef XP_MAC
+int16 NPP_HandleEvent( NPP instance, void * event )
+{
+ if( instance == NULL )
+ {
+ return false;
+ }
+
+ Boolean eventHandled = false;
+
+#if 0
+ TPlugin *pPlugin = (TPlugin*)instance->pdata;
+ if( pPlugin != NULL && event != NULL )
+ {
+ eventHandled = pPlugin->HandleEvent( *(EventRecord*)event );
+ }
+#endif
+
+ return eventHandled;
+}
+#endif
+
/******************************************************************************
* General Plug-in Calls
*****************************************************************************/