Commit 4bbe6f6f authored by Sam Hocevar's avatar Sam Hocevar

* ./configure.ac.in: removed the --with-bcbuilder flag.

  * ./INSTALL.win32: updated accordingly.
parent 953ef37b
...@@ -160,18 +160,13 @@ Building Win32 interface with bcc32 (Borland's compiler) ...@@ -160,18 +160,13 @@ Building Win32 interface with bcc32 (Borland's compiler)
(This stage is only necessary if you want to use the Win32 native interface. (This stage is only necessary if you want to use the Win32 native interface.
If you are happy with the GTK interface, then you can skip this section) If you are happy with the GTK interface, then you can skip this section)
1) Compile vlc as usual. 1) Install Borland C++ Builder, you will need bpr2mak and make.
2) From the plugin\win32 directory, use Borland C++ command-line tools 2) Make sure you have the bpr2mak and bcmake (NOT make!) commands in $PATH,
as follows: they can be symlinks to the Borland bpr2mak and make utilities, or wrappers
bpr2mak intfwin.bpr -s \ that call them through Wine if you are cross-compiling from Linux.
| sed 's#^LIBPATH = .*#&;$$(RELEASELIBPATH)# ; s#^USERDEFINES = .*#& -DWIN32 -D__PLUGIN__ -DMODULE_NAME_IS_intfwin -DMODULE_NAME=intfwin#' \
> intfwin.mak // Create a makefile from intfwin.bpr
make -fintfwin // It's Borland's make utility !
3) This should create a intfwin.so
You can remove any other generated file.
3) Configure vlc as usual with the --enable-intfwin flag and build it.
Well done, now you're ready to use vlc! Well done, now you're ready to use vlc!
======================================= =======================================
...@@ -33,7 +33,8 @@ AC_PROG_CXX ...@@ -33,7 +33,8 @@ AC_PROG_CXX
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_PROG_INSTALL AC_PROG_INSTALL
dnl AC_PROG_EGREP only exists in autoconf 2.54+ dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
dnl now otherwise it might be set in an obscure if statement.
AC_EGREP_CPP(foo,foo) AC_EGREP_CPP(foo,foo)
dnl AC_PROG_OBJC doesn't seem to exist, this is the KDE workaround dnl AC_PROG_OBJC doesn't seem to exist, this is the KDE workaround
...@@ -2465,12 +2466,8 @@ AC_ARG_ENABLE(intfwin, ...@@ -2465,12 +2466,8 @@ AC_ARG_ENABLE(intfwin,
[ --enable-intfwin Win32 interface support (default disabled)], [ --enable-intfwin Win32 interface support (default disabled)],
[ if test "x${enable_intfwin}" != "xno" [ if test "x${enable_intfwin}" != "xno"
then then
AC_ARG_WITH(bcbuilder, AC_CHECK_TOOL(BPR2MAK, bpr2mak, AC_ERROR(bpr2mak not found))
[ --with-bcbuilder=PATH Borland C++ Builder installation path]) AC_CHECK_TOOL(BCMAKE, bcmake, AC_ERROR(bcmake not found))
if test "x${with_bcbuilder}" != "x"
then
BCBUILDER="${with_bcbuilder}"
fi
PLUGINS="${PLUGINS} win32" PLUGINS="${PLUGINS} win32"
fi ]) fi ])
...@@ -2847,7 +2844,6 @@ AC_SUBST(ALIASES) ...@@ -2847,7 +2844,6 @@ AC_SUBST(ALIASES)
AC_SUBST(ASM) AC_SUBST(ASM)
AC_SUBST(MOC) AC_SUBST(MOC)
AC_SUBST(WINDRES) AC_SUBST(WINDRES)
AC_SUBST(BCBUILDER)
AC_SUBST(XPIDL) AC_SUBST(XPIDL)
AC_SUBST(LIBEXT) AC_SUBST(LIBEXT)
AC_SUBST(INCLUDES) AC_SUBST(INCLUDES)
......
...@@ -11,11 +11,11 @@ SOURCES_win32 = PRIVATE ...@@ -11,11 +11,11 @@ SOURCES_win32 = PRIVATE
modules/gui/win32/libwin32_plugin.dll: $(BORLAND_win32) modules/gui/win32/libwin32_plugin.dll: $(BORLAND_win32)
cd modules/gui/win32/ && \ cd modules/gui/win32/ && \
rm -f win32.mak && \ rm -f win32.mak && \
$(BCBUILDER)/Bin/bpr2mak win32.bpr -s | \ $(BPR2MAK) win32.bpr -s | \
sed -e 's@^LIBPATH = .*@&;$$(RELEASELIBPATH)@' \ sed -e 's@^LIBPATH = .*@&;$$(RELEASELIBPATH)@' \
-e 's@^USERDEFINES = .*@& -DMODULE_NAME=win32@' \ -e 's@^USERDEFINES = .*@& -DMODULE_NAME=win32@' \
> win32.mak && \ > win32.mak && \
$(BCBUILDER)/Bin/make -f win32.mak -b $(BCMAKE) -f win32.mak -b
BORLAND_win32 = \ BORLAND_win32 = \
modules/gui/win32/win32.bpr \ modules/gui/win32/win32.bpr \
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* menu.cpp: functions to handle menu items * menu.cpp: functions to handle menu items
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: menu.cpp,v 1.8 2003/01/23 03:33:34 ipkiss Exp $ * $Id: menu.cpp,v 1.9 2003/01/24 12:01:03 sam Exp $
* *
* Authors: Olivier Teuliere <ipkiss@via.ecp.fr> * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
* *
...@@ -170,7 +170,7 @@ void __fastcall TMenusGen::MenuTitleClick( TObject *Sender ) ...@@ -170,7 +170,7 @@ void __fastcall TMenusGen::MenuTitleClick( TObject *Sender )
TMenuItem * Item = (TMenuItem *)Sender; TMenuItem * Item = (TMenuItem *)Sender;
TMenuItem * ItemTitle; TMenuItem * ItemTitle;
input_area_t * p_area; input_area_t * p_area;
int i_title = Item->Tag; unsigned int i_title = Item->Tag;
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock ); vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
i_title = __MIN( i_title, i_title = __MIN( i_title,
...@@ -197,8 +197,8 @@ void __fastcall TMenusGen::MenuChapterClick( TObject *Sender ) ...@@ -197,8 +197,8 @@ void __fastcall TMenusGen::MenuChapterClick( TObject *Sender )
TMenuItem * Item = (TMenuItem *)Sender; TMenuItem * Item = (TMenuItem *)Sender;
TMenuItem * ItemTitle; TMenuItem * ItemTitle;
input_area_t * p_area; input_area_t * p_area;
int i_title; unsigned int i_title;
int i_chapter = Item->Tag; unsigned int i_chapter = Item->Tag;
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock ); vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
p_area = p_intf->p_sys->p_input->stream.p_selected_area; p_area = p_intf->p_sys->p_input->stream.p_selected_area;
...@@ -228,8 +228,8 @@ void __fastcall TMenusGen::PopupNavigationClick( TObject *Sender ) ...@@ -228,8 +228,8 @@ void __fastcall TMenusGen::PopupNavigationClick( TObject *Sender )
TMenuItem * Item = (TMenuItem *)Sender; TMenuItem * Item = (TMenuItem *)Sender;
TMenuItem * ItemTitle; TMenuItem * ItemTitle;
input_area_t * p_area; input_area_t * p_area;
int i_title = Data2Title( Item->Tag ); unsigned int i_title = Data2Title( Item->Tag );
int i_chapter = Data2Chapter( Item->Tag ); unsigned int i_chapter = Data2Chapter( Item->Tag );
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock ); vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
i_title = __MIN( i_title, i_title = __MIN( i_title,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32.cpp : Win32 interface plugin for vlc * win32.cpp : Win32 interface plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: win32.cpp,v 1.11 2003/01/23 03:33:34 ipkiss Exp $ * $Id: win32.cpp,v 1.12 2003/01/24 12:01:03 sam Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* *
...@@ -172,7 +172,7 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -172,7 +172,7 @@ int Win32Manage( intf_thread_t *p_intf )
if( p_intf->p_sys->p_input != NULL && !p_intf->p_sys->p_input->b_die ) if( p_intf->p_sys->p_input != NULL && !p_intf->p_sys->p_input->b_die )
{ {
vlc_bool_t b_need_menus = 0; vlc_bool_t b_need_menus = VLC_FALSE;
input_thread_t * p_input = p_intf->p_sys->p_input; input_thread_t * p_input = p_intf->p_sys->p_input;
aout_instance_t * p_aout = NULL; aout_instance_t * p_aout = NULL;
vout_thread_t * p_vout = NULL; vout_thread_t * p_vout = NULL;
...@@ -183,7 +183,7 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -183,7 +183,7 @@ int Win32Manage( intf_thread_t *p_intf )
if( p_input->stream.b_changed ) if( p_input->stream.b_changed )
{ {
p_intf->p_sys->p_window->ModeManage(); p_intf->p_sys->p_window->ModeManage();
b_need_menus = 1; b_need_menus = VLC_TRUE;
p_intf->p_sys->b_playing = 1; p_intf->p_sys->b_playing = 1;
} }
...@@ -225,7 +225,7 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -225,7 +225,7 @@ int Win32Manage( intf_thread_t *p_intf )
if( p_intf->p_sys->i_part != p_input->stream.p_selected_area->i_part ) if( p_intf->p_sys->i_part != p_input->stream.p_selected_area->i_part )
{ {
p_intf->p_sys->b_chapter_update = 1; p_intf->p_sys->b_chapter_update = 1;
b_need_menus = 1; b_need_menus = VLC_TRUE;
} }
/* Does the audio output require to update the menus ? */ /* Does the audio output require to update the menus ? */
...@@ -238,7 +238,7 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -238,7 +238,7 @@ int Win32Manage( intf_thread_t *p_intf )
&& val.b_bool ) && val.b_bool )
{ {
p_intf->p_sys->b_aout_update = 1; p_intf->p_sys->b_aout_update = 1;
b_need_menus = 1; b_need_menus = VLC_TRUE;
} }
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( (vlc_object_t *)p_aout );
...@@ -254,14 +254,16 @@ int Win32Manage( intf_thread_t *p_intf ) ...@@ -254,14 +254,16 @@ int Win32Manage( intf_thread_t *p_intf )
&& val.b_bool ) && val.b_bool )
{ {
p_intf->p_sys->b_vout_update = 1; p_intf->p_sys->b_vout_update = 1;
b_need_menus = 1; b_need_menus = VLC_TRUE;
} }
vlc_object_release( (vlc_object_t *)p_vout ); vlc_object_release( (vlc_object_t *)p_vout );
} }
// if( b_need_menus ) if( b_need_menus )
// p_intf->p_sys->p_menus->SetupMenus(); {
//p_intf->p_sys->p_menus->SetupMenus();
}
vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_mutex_unlock( &p_input->stream.stream_lock );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment