Changeset 5de3e045e3d5cae53d526d2c6898926a7f1e43c9

Show
Ignore:
Timestamp:
13/11/02 16:28:24 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1037201304 +0000
git-parent:

[4e14e85aea12d943b3982d049c20f5da2fcfdd80]

git-author:
Sam Hocevar <sam@videolan.org> 1037201304 +0000
Message:
  • ./msvc/*, ./evc/*: moved eMbedded Visual Studio files to the toplevel evc/
    directory because the two project files are starting to diverge.
  • ./evc/vlc.c: created a specific vlc.c file for Windows CE.
  • ./src/misc/messages.c: as WinCE doesn't have stdout or stderr, the message
    queue outputs to a logfile (until we have a proper interface).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    rdf7cbb7 r5de3e04  
    269269 
    270270############################################################################### 
    271 # MS Visual Studio project 
     271# MS Visual Studio and eMbedded Visual Studio projects 
    272272############################################################################### 
    273273 
     
    277277    msvc/vlc.dsp.in \ 
    278278    msvc/vlc.dsp.out \ 
    279     msvc/vlc.vcp \ 
    280     msvc/vlc.vcw \ 
    281     msvc/vlc.vcp.in \ 
    282     msvc/vlc.vcp.out \ 
    283279    msvc/config.h \ 
    284280    msvc/modules_builtin_msvc.h \ 
     281    evc/vlc.vcp \ 
     282    evc/vlc.vcw \ 
     283    evc/vlc.vcp.in \ 
     284    evc/vlc.vcp.out \ 
     285    evc/config.h \ 
     286    evc/modules_builtin_msvc.h \ 
    285287    $(NULL) 
    286288 
  • bootstrap

    rbe8ca6e r5de3e04  
    22 
    33##  bootstrap file for vlc, the VideoLAN Client 
    4 ##  $Id: bootstrap,v 1.25 2002/11/10 18:04:22 sam Exp $ 
     4##  $Id: bootstrap,v 1.26 2002/11/13 15:28:23 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    1616### 
    1717do_po=no 
    18 do_msvc=no 
     18do_vc=no 
    1919while test $# -gt 0; do 
    2020  case "$1" in 
    21     --update-msvc) 
    22       do_msvc=yes 
     21    --update-vc) 
     22      do_vc=yes 
    2323      ;; 
    2424    --update-po) 
     
    2727    *) 
    2828      echo "$0: unknown option $1" 
    29       echo "recognized flags are --update-msvc and --update-po" 
     29      echo "recognized flags are --update-vc and --update-po" 
    3030      exit 1 
    3131      ;; 
     
    3737##  Update the MSVC project files 
    3838## 
    39 if test "$do_msvc" = "no" 
    40 then 
    41   echo "not updating MSVC project file. use --update-msvc to force doing it." 
     39if test "$do_vc" = "no" 
     40then 
     41  echo "not updating MSVC or eVC project file. use --update-vc to force doing it." 
    4242else 
    4343  if test ! -f Makefile 
     
    5252 
    5353  #  Sources that get built under Win32 
    54   VLC_SOURCES=`make show-vlc-sources | grep '^X: ' | cut -b3-` 
    5554  LIBVLC_SOURCES=`make show-libvlc-sources | grep '^X: ' | cut -b3-` 
    5655  LIBVLC_HEADERS=`make show-libvlc-headers | grep '^X: ' | cut -b3-` 
    5756  LIBVLC_PKG_HEADERS=`make show-libvlc-pkg-headers | grep '^X: ' | cut -b3-` 
    5857 
    59   for target in msvc/vlc.vcp msvc/vlc.dsp 
     58  for target in evc/vlc.vcp msvc/vlc.dsp 
    6059  do 
    6160    rm -f ${target} 
     
    6766# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M} 
    6867# Begin Group "vlc"${M} 
    69 EOF 
    70     for file in ${VLC_SOURCES} 
    71     do 
    72       cat >> ${target} << EOF 
    7368# Begin Source File${M} 
    74 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M} 
     69EOF 
     70    if test "${target}" = "evc/vlc.vcp" 
     71    then 
     72      cat >> ${target} << EOF 
     73SOURCE="..\\evc\\vlc.c"${M} 
     74EOF 
     75    else 
     76      cat >> ${target} << EOF 
     77SOURCE="..\\src\\vlc.c"${M} 
     78EOF 
     79    fi 
     80    cat >> ${target} << EOF 
    7581# End Source File${M} 
    76 EOF 
    77     done 
    78     cat >> ${target} << EOF 
    7982# End Group${M} 
    8083# Begin Group "libvlc"${M} 
     
    9699      for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/${subdir}/"` 
    97100      do 
    98       if test "${target}" = "msvc/vlc.vcp" 
     101      if test "${target}" = "evc/vlc.vcp" 
    99102      then 
    100103        cat >> ${target} << EOF 
  • include/vlc_common.h

    rbc061e8 r5de3e04  
    44 ***************************************************************************** 
    55 * Copyright (C) 1998, 1999, 2000 VideoLAN 
    6  * $Id: vlc_common.h,v 1.37 2002/11/11 14:39:11 sam Exp $ 
     6 * $Id: vlc_common.h,v 1.38 2002/11/13 15:28:24 sam Exp $ 
    77 * 
    88 * Authors: Samuel Hocevar <sam@via.ecp.fr> 
     
    529529#endif /* defined(WIN32)||defined(UNDER_CE) */ 
    530530 
    531 #if defined(WIN32) && !defined(UNDER_CE) 
     531#if defined(WIN32) || defined(UNDER_CE) 
    532532/* win32, cl and icl support */ 
    533533#   if defined( _MSC_VER ) || !defined( __MINGW32__ ) 
     
    581581 
    582582/* lseek (defined in src/extras/libc.c) */ 
    583 #ifndef HAVE_ATOF 
     583#ifndef HAVE_LSEEK 
    584584    off_t lseek( int fildes, off_t offset, int whence ); 
    585585#endif 
  • include/vlc_messages.h

    rb69c9ce r5de3e04  
    55 ***************************************************************************** 
    66 * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN 
    7  * $Id: vlc_messages.h,v 1.6 2002/08/26 09:12:46 sam Exp $ 
     7 * $Id: vlc_messages.h,v 1.7 2002/11/13 15:28:24 sam Exp $ 
    88 * 
    99 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    7474    int i_sub; 
    7575    msg_subscription_t **pp_sub; 
     76 
     77    /* Logfile for WinCE */ 
     78#ifdef UNDER_CE 
     79    FILE *logfile; 
     80#endif 
    7681}; 
    7782 
  • msvc/config.h

    r9a0cbfc r5de3e04  
    292292 
    293293/* Define to 1 if you have the `strcasecmp' function. */ 
    294 #define HAVE_STRCASECMP 1 
     294/* #define HAVE_STRCASECMP 1 */ 
     295 
     296/* Define to 1 if you have the `stricmp' function. */ 
     297#define HAVE_STRICMP 1 
     298 
     299/* Define to 1 if you have the `strncasecmp' function. */ 
     300/* #define HAVE_STRNCASECMP 1 */ 
     301 
     302/* Define to 1 if you have the `strnicmp' function. */ 
     303#define HAVE_STRNICMP 1 
    295304 
    296305/* Define to 1 if you have the `strchr' function. */ 
     
    491500/* Define to `unsigned' if <sys/types.h> does not define. */ 
    492501/* #undef size_t */ 
     502 
     503#define HAVE_LSEEK 1 
     504 
     505#define HAVE_ERRNO_H 1 
     506 
     507#define HAVE_GETENV 1 
     508 
  • share/vlc_wince_rc.rc

    rce9fc04 r5de3e04  
    1 VLC_ICON ICON "vlc48x48.ico" 
     1//Microsoft Developer Studio generated resource script. 
     2// 
     3#include "resource.h" 
     4 
     5#define APSTUDIO_READONLY_SYMBOLS 
     6///////////////////////////////////////////////////////////////////////////// 
     7// 
     8// Generated from the TEXTINCLUDE 2 resource. 
     9// 
     10#include "newres.h" 
     11 
     12///////////////////////////////////////////////////////////////////////////// 
     13#undef APSTUDIO_READONLY_SYMBOLS 
     14 
     15///////////////////////////////////////////////////////////////////////////// 
     16// English (U.S.) resources 
     17 
     18#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 
     19#ifdef _WIN32 
     20LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 
     21#pragma code_page(1252) 
     22#endif //_WIN32 
     23 
     24///////////////////////////////////////////////////////////////////////////// 
     25// 
     26// Icon 
     27// 
     28 
     29// Icon with lowest ID value placed first to ensure application icon 
     30// remains consistent on all systems. 
     31IDI_NIOUP               ICON    DISCARDABLE     "nioup.ICO" 
     32 
     33#ifdef APSTUDIO_INVOKED 
     34///////////////////////////////////////////////////////////////////////////// 
     35// 
     36// TEXTINCLUDE 
     37// 
     38 
     391 TEXTINCLUDE DISCARDABLE  
     40BEGIN 
     41    "resource.h\0" 
     42END 
     43 
     442 TEXTINCLUDE DISCARDABLE  
     45BEGIN 
     46    "#include ""newres.h""\r\n" 
     47    "\0" 
     48END 
     49 
     503 TEXTINCLUDE DISCARDABLE  
     51BEGIN 
     52    "\r\n" 
     53    "\0" 
     54END 
     55 
     56#endif    // APSTUDIO_INVOKED 
     57 
     58 
     59///////////////////////////////////////////////////////////////////////////// 
     60// 
     61// Menubar 
     62// 
     63 
     64IDM_MENU MENU DISCARDABLE  
     65BEGIN 
     66    POPUP "&File" 
     67    BEGIN 
     68        MENUITEM "E&xit",                       IDM_FILE_EXIT 
     69    END 
     70    MENUITEM "View",                        65535 
     71    MENUITEM "Settings",                    65535 
     72    POPUP "&Help" 
     73    BEGIN 
     74        MENUITEM "&About",                      IDM_HELP_ABOUT 
     75    END 
     76END 
     77 
     78 
     79///////////////////////////////////////////////////////////////////////////// 
     80// 
     81// Dialog 
     82// 
     83 
     84IDD_ABOUTBOX DIALOGEX 0, 0, 127, 42 
     85STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 
     86EXSTYLE 0x80000000L 
     87CAPTION "About PocketVLC" 
     88FONT 8, "System" 
     89BEGIN 
     90    ICON            IDI_NIOUP,IDC_STATIC,7,7,21,20 
     91    LTEXT           "VLC Version Tarass",IDC_STATIC,38,10,70,8,SS_NOPREFIX 
     92    LTEXT           "Copyright (C) VideoLAN",IDC_STATIC,30,27,80,8 
     93END 
     94 
     95 
     96///////////////////////////////////////////////////////////////////////////// 
     97// 
     98// DESIGNINFO 
     99// 
     100 
     101#ifdef APSTUDIO_INVOKED 
     102GUIDELINES DESIGNINFO DISCARDABLE  
     103BEGIN 
     104    IDD_ABOUTBOX, DIALOG 
     105    BEGIN 
     106        LEFTMARGIN, 7 
     107        RIGHTMARGIN, 120 
     108        TOPMARGIN, 7 
     109        BOTTOMMARGIN, 35 
     110    END 
     111END 
     112#endif    // APSTUDIO_INVOKED 
     113 
     114 
     115///////////////////////////////////////////////////////////////////////////// 
     116// 
     117// Accelerator 
     118// 
     119 
     120IDC_NIOUP ACCELERATORS DISCARDABLE  
     121BEGIN 
     122    VK_F1,          IDM_PLOP,               VIRTKEY, NOINVERT 
     123    VK_F4,          IDM_FILE_EXIT,          VIRTKEY, ALT, NOINVERT 
     124    VK_F8,          IDM_HELP_ABOUT,         VIRTKEY, NOINVERT 
     125END 
     126 
     127#endif    // English (U.S.) resources 
     128///////////////////////////////////////////////////////////////////////////// 
     129 
     130 
     131 
     132#ifndef APSTUDIO_INVOKED 
     133///////////////////////////////////////////////////////////////////////////// 
     134// 
     135// Generated from the TEXTINCLUDE 3 resource. 
     136// 
     137 
     138 
     139///////////////////////////////////////////////////////////////////////////// 
     140#endif    // not APSTUDIO_INVOKED 
     141 
  • src/misc/messages.c

    rbc061e8 r5de3e04  
    55 ***************************************************************************** 
    66 * Copyright (C) 1998-2002 VideoLAN 
    7  * $Id: messages.c,v 1.22 2002/11/11 14:39:12 sam Exp $ 
     7 * $Id: messages.c,v 1.23 2002/11/13 15:28:24 sam Exp $ 
    88 * 
    99 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    7676    p_this->p_libvlc->msg_bank.i_sub = 0; 
    7777    p_this->p_libvlc->msg_bank.pp_sub = NULL; 
     78 
     79#ifdef UNDER_CE 
     80    p_this->p_libvlc->msg_bank.logfile = 
     81        CreateFile( L"vlc-log.txt", GENERIC_WRITE, 
     82                    FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, 
     83                    OPEN_ALWAYS, 0, NULL ); 
     84    SetFilePointer( p_this->p_libvlc->msg_bank.logfile, 0, NULL, FILE_END ); 
     85#endif 
    7886} 
    7987 
     
    124132        FlushMsg( &p_this->p_libvlc->msg_bank ); 
    125133    } 
     134 
     135#ifdef UNDER_CE 
     136    CloseHandle( p_this->p_libvlc->msg_bank.logfile ); 
     137#endif 
    126138 
    127139    /* Destroy lock */ 
     
    404416#   define GRAY    "\033[0m" 
    405417 
     418#ifdef UNDER_CE 
     419    int i_dummy; 
     420#endif 
    406421    static const char * ppsz_type[4] = { "", " error", " warning", " debug" }; 
    407422    static const char *ppsz_color[4] = { WHITE, RED, YELLOW, GRAY }; 
     
    440455    } 
    441456 
     457#ifdef UNDER_CE 
     458#   define CE_WRITE(str) WriteFile( p_this->p_libvlc->msg_bank.logfile, \ 
     459                                    str, strlen(str), &i_dummy, NULL ); 
     460    CE_WRITE( p_item->psz_module ); 
     461    CE_WRITE( " " ); 
     462    CE_WRITE( psz_object ); 
     463    CE_WRITE( ppsz_type[i_type] ); 
     464    CE_WRITE( ": " ); 
     465    CE_WRITE( p_item->psz_msg ); 
     466    CE_WRITE( "\n" ); 
     467    FlushFileBuffers( p_this->p_libvlc->msg_bank.logfile ); 
     468 
     469#else 
    442470    /* Send the message to stderr */ 
    443471    if( p_this->p_libvlc->b_color ) 
     
    455483    } 
    456484 
    457 #if defined(WIN32) || defined(UNDER_CE
     485#   if defined(WIN32
    458486    fflush( stderr ); 
    459 #endif 
    460 
     487#   endif 
     488#endif 
     489
  • src/misc/modules.c

    rbc061e8 r5de3e04  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: modules.c,v 1.103 2002/11/11 14:39:12 sam Exp $ 
     5 * $Id: modules.c,v 1.104 2002/11/13 15:28:24 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    9292#endif 
    9393 
    94 #if !defined( _MSC_VER ) 
     94#if defined( UNDER_CE ) 
     95#    include "modules_builtin_evc.h" 
     96#elif defined( _MSC_VER ) 
     97#    include "modules_builtin_msvc.h" 
     98#else 
    9599#    include "modules_builtin.h" 
    96 #else 
    97 #    include "modules_builtin_msvc.h" 
    98100#endif 
    99101 
  • src/vlc.c

    r77c667f r5de3e04  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2001 VideoLAN 
    5  * $Id: vlc.c,v 1.17 2002/11/10 23:41:53 sam Exp $ 
     5 * $Id: vlc.c,v 1.18 2002/11/13 15:28:24 sam Exp $ 
    66 * 
    77 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    3636#endif 
    3737 
    38 #ifdef UNDER_CE 
    39     /* WinCE needs a WINAPI declaration */ 
    40 #   define WIN32_LEAN_AND_MEAN 
    41 #   include <windows.h> 
    42 #endif 
    43  
    4438#include <vlc/vlc.h> 
    4539 
     
    5448 * main: parse command line, start interface and spawn threads 
    5549 *****************************************************************************/ 
    56 #ifdef UNDER_CE 
    57 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    58                     LPTSTR lpCmdLine, int nCmdShow ) 
    59 #else 
    6050int main( int i_argc, char *ppsz_argv[] ) 
    61 #endif 
    6251{ 
    6352    int i_ret; 
    64 #ifdef UNDER_CE 
    65     int i_argc = 1; 
    66     char *ppsz_argv[] = { lpCmdLine, NULL }; 
    67 #endif 
    6853 
    6954    fprintf( stderr, "VideoLAN Client %s\n", VLC_Version() ); 
     
    119104    /* Add a blocking interface and keep the return value */ 
    120105    i_ret = VLC_AddIntf( 0, NULL, VLC_TRUE ); 
    121  
     106  
    122107    /* Finish the threads */ 
    123108    VLC_Stop( 0 );