[vlc-devel] [PATCH 4/8] Extensions: buildsystem
Jean-Philippe André
jpeg at videolan.org
Tue Dec 22 23:44:11 CET 2009
Let's compile Lua Extensions
---
modules/misc/lua/Modules.am | 3 +++
modules/misc/lua/vlc.c | 6 ++++++
modules/misc/lua/vlc.h | 3 +++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/Modules.am b/modules/misc/lua/Modules.am
index 0b6b38b..889c3e5 100644
--- a/modules/misc/lua/Modules.am
+++ b/modules/misc/lua/Modules.am
@@ -1,4 +1,6 @@
SOURCES_lua = \
+ extension.c \
+ extension_thread.c \
intf.c \
meta.c \
demux.c \
@@ -7,6 +9,7 @@ SOURCES_lua = \
libs.h \
libs/acl.c \
libs/configuration.c \
+ libs/dialog.c \
libs/httpd.c \
libs/input.c \
libs/input.h \
diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index 275fcc0..a5ae01e 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -94,6 +94,12 @@ vlc_module_begin ()
add_string( "lua-config", "", NULL,
CONFIG_TEXT, CONFIG_LONGTEXT, false )
set_callbacks( Open_LuaIntf, Close_LuaIntf )
+
+ add_submodule ()
+ set_shortname( "Lua Extension" )
+ add_shortcut( "luaextension" )
+ set_capability( "extension", 1 )
+ set_callbacks( Open_Extension, Close_Extension )
vlc_module_end ()
/*****************************************************************************
diff --git a/modules/misc/lua/vlc.h b/modules/misc/lua/vlc.h
index f455f4e..c226ec1 100644
--- a/modules/misc/lua/vlc.h
+++ b/modules/misc/lua/vlc.h
@@ -56,6 +56,9 @@ void Close_LuaPlaylist( vlc_object_t * );
int Open_LuaIntf( vlc_object_t * );
void Close_LuaIntf( vlc_object_t * );
+int Open_Extension( vlc_object_t * );
+void Close_Extension( vlc_object_t * );
+
/*****************************************************************************
* Lua debug
--
1.6.5.3
More information about the vlc-devel
mailing list