]> git.sesse.net Git - vlc/commitdiff
* ./configure.ac.in: removed the --with-bcbuilder flag.
authorSam Hocevar <sam@videolan.org>
Fri, 24 Jan 2003 12:01:03 +0000 (12:01 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 24 Jan 2003 12:01:03 +0000 (12:01 +0000)
  * ./INSTALL.win32: updated accordingly.

INSTALL.win32
configure.ac.in
modules/gui/win32/Modules.am
modules/gui/win32/menu.cpp
modules/gui/win32/win32.cpp

index 23c17aa4ef4968275c72f6a14f151f6f6bc08f01..93c5f2815c82f4b080a9dc9d354891fd8bdd99d3 100644 (file)
@@ -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.
  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
-as follows:
-bpr2mak intfwin.bpr -s \
-  | 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.
+2) Make sure you have the bpr2mak and bcmake (NOT make!) commands in $PATH,
+they can be symlinks to the Borland bpr2mak and make utilities, or wrappers
+that call them through Wine if you are cross-compiling from Linux.
 
+3) Configure vlc as usual with the --enable-intfwin flag and build it.
 
 Well done, now you're ready to use vlc!
 =======================================
index 49858fa4f268f28560e6645d253dedc50da9cdc5..c8db276b73baece621ba1c9e5135db9c91919fd4 100644 (file)
@@ -33,7 +33,8 @@ AC_PROG_CXX
 AC_PROG_MAKE_SET
 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)
 
 dnl AC_PROG_OBJC doesn't seem to exist, this is the KDE workaround
@@ -2465,12 +2466,8 @@ AC_ARG_ENABLE(intfwin,
 [  --enable-intfwin        Win32 interface support (default disabled)],
 [ if test "x${enable_intfwin}" != "xno"
   then
-    AC_ARG_WITH(bcbuilder,
-    [    --with-bcbuilder=PATH Borland C++ Builder installation path])
-    if test "x${with_bcbuilder}" != "x"
-    then
-      BCBUILDER="${with_bcbuilder}"
-    fi
+    AC_CHECK_TOOL(BPR2MAK, bpr2mak, AC_ERROR(bpr2mak not found))
+    AC_CHECK_TOOL(BCMAKE, bcmake, AC_ERROR(bcmake not found))
     PLUGINS="${PLUGINS} win32"
   fi ])
 
@@ -2847,7 +2844,6 @@ AC_SUBST(ALIASES)
 AC_SUBST(ASM)
 AC_SUBST(MOC)
 AC_SUBST(WINDRES)
-AC_SUBST(BCBUILDER)
 AC_SUBST(XPIDL)
 AC_SUBST(LIBEXT)
 AC_SUBST(INCLUDES)
index 2f79b1c24c7e21bad083409e8a87ba087c8ef860..8c272ffd76463d4a784c55cb39caac7f99f5b8fd 100644 (file)
@@ -11,11 +11,11 @@ SOURCES_win32 = PRIVATE
 modules/gui/win32/libwin32_plugin.dll: $(BORLAND_win32)
        cd modules/gui/win32/ && \
        rm -f win32.mak && \
-       $(BCBUILDER)/Bin/bpr2mak win32.bpr -s | \
+       $(BPR2MAK) win32.bpr -s | \
                sed -e 's@^LIBPATH = .*@&;$$(RELEASELIBPATH)@' \
                    -e 's@^USERDEFINES = .*@& -DMODULE_NAME=win32@' \
                > win32.mak && \
-       $(BCBUILDER)/Bin/make -f win32.mak -b
+       $(BCMAKE) -f win32.mak -b
 
 BORLAND_win32 = \
        modules/gui/win32/win32.bpr \
index 94101e11a7498af51cbc026db1f5bc05bdac29fb..caaa618b59e8c12010e19f95caa0b4cbdb578a27 100644 (file)
@@ -2,7 +2,7 @@
  * menu.cpp: functions to handle menu items
  *****************************************************************************
  * 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>
  *
@@ -170,7 +170,7 @@ void __fastcall TMenusGen::MenuTitleClick( TObject *Sender )
     TMenuItem     * Item = (TMenuItem *)Sender;
     TMenuItem     * ItemTitle;
     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 );
     i_title = __MIN( i_title,
@@ -197,8 +197,8 @@ void __fastcall TMenusGen::MenuChapterClick( TObject *Sender )
     TMenuItem     * Item = (TMenuItem *)Sender;
     TMenuItem     * ItemTitle;
     input_area_t  * p_area;
-    int             i_title;
-    int             i_chapter = Item->Tag;
+    unsigned int    i_title;
+    unsigned int    i_chapter = Item->Tag;
 
     vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
     p_area = p_intf->p_sys->p_input->stream.p_selected_area;
@@ -228,8 +228,8 @@ void __fastcall TMenusGen::PopupNavigationClick( TObject *Sender )
     TMenuItem     * Item = (TMenuItem *)Sender;
     TMenuItem     * ItemTitle;
     input_area_t  * p_area;
-    int             i_title   = Data2Title( Item->Tag );
-    int             i_chapter = Data2Chapter( Item->Tag );
+    unsigned int    i_title   = Data2Title( Item->Tag );
+    unsigned int    i_chapter = Data2Chapter( Item->Tag );
 
     vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
     i_title = __MIN( i_title,
index b7de87a37a7501a39e584c76a6aa15e73d79da00..c36184b050c35c838db1ccd0cf47337f59016c23 100644 (file)
@@ -2,7 +2,7 @@
  * win32.cpp : Win32 interface plugin for vlc
  *****************************************************************************
  * 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 Teulière <ipkiss@via.ecp.fr>
  *
@@ -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 )
     {
-        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;
         aout_instance_t * p_aout = NULL;
         vout_thread_t   * p_vout = NULL;
@@ -183,7 +183,7 @@ int Win32Manage( intf_thread_t *p_intf )
         if( p_input->stream.b_changed )
         {
             p_intf->p_sys->p_window->ModeManage();
-            b_need_menus = 1;
+            b_need_menus = VLC_TRUE;
             p_intf->p_sys->b_playing = 1;
         }
 
@@ -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 )
         {
             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 ? */
@@ -238,7 +238,7 @@ int Win32Manage( intf_thread_t *p_intf )
                 && val.b_bool )
             {
                 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 );
@@ -254,14 +254,16 @@ int Win32Manage( intf_thread_t *p_intf )
                 && val.b_bool )
             {
                 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 );
         }
 
-//        if( b_need_menus )
-//            p_intf->p_sys->p_menus->SetupMenus();
+        if( b_need_menus )
+        {
+            //p_intf->p_sys->p_menus->SetupMenus();
+        }
 
         vlc_mutex_unlock( &p_input->stream.stream_lock );
     }