Changeset 3e1fea390e453b25f50d1e4308b80a4a962b8564

Show
Ignore:
Timestamp:
05/10/08 10:33:09 (2 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210408389 +0300
git-parent:

[a7f65650ff66ba2733e3e45e3e9b48e7bf5acfb2]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210408380 +0300
Message:

Build (linux|not)_specific.c as appropriate

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac

    rfb19b26 r3e1fea3  
    347347AM_CONDITIONAL(HAVE_BEOS, test "${SYS}" = "beos") 
    348348AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin") 
     349AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"]) 
    349350AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32") 
    350351AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce") 
  • src/Makefile.am

    r707279b r3e1fea3  
    174174    -DSYSCONFDIR=\"$(sysconfdir)\" \ 
    175175    -DDATA_PATH=\"$(pkgdatadir)\" \ 
     176    -DLIBDIR=\"$(libdir)\" \ 
    176177    -DPLUGIN_PATH=\"$(pkglibdir)\" 
    177178libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc` 
     
    202203    $(SOURCES_libvlc_beos) \ 
    203204    $(SOURCES_libvlc_darwin) \ 
     205    $(SOURCES_libvlc_linux) \ 
    204206    $(SOURCES_libvlc_win32) \ 
     207    $(SOURCES_libvlc_other) \ 
    205208    $(SOURCES_libvlc_dirent) \ 
    206209    $(SOURCES_libvlc_getopt) \ 
     
    209212if HAVE_BEOS 
    210213libvlc_la_SOURCES += $(SOURCES_libvlc_beos) 
    211 endif 
     214else 
    212215if HAVE_DARWIN 
    213216libvlc_la_SOURCES += $(SOURCES_libvlc_darwin) 
    214 endif 
     217else 
     218if HAVE_LINUX 
     219libvlc_la_SOURCES += $(SOURCES_libvlc_linux) 
     220else 
    215221if HAVE_WIN32 
    216222libvlc_la_SOURCES += $(SOURCES_libvlc_win32) 
    217 endif 
     223else 
    218224if HAVE_WINCE 
    219225libvlc_la_SOURCES += $(SOURCES_libvlc_win32) 
    220226endif 
     227endif 
     228endif 
     229endif 
     230endif 
    221231if BUILD_DIRENT 
    222232libvlc_la_SOURCES += $(SOURCES_libvlc_dirent) 
     
    235245SOURCES_libvlc_darwin = \ 
    236246    misc/darwin_specific.c \ 
     247    $(NULL) 
     248 
     249SOURCES_libvlc_linux = \ 
     250    misc/linux_specific.c \ 
    237251    $(NULL) 
    238252 
     
    241255    network/winsock.c \ 
    242256    $(NULL) 
     257 
     258SOURCES_libvlc_other = misc/not_specific.c 
    243259 
    244260SOURCES_libvlc_dirent = \ 
  • src/libvlc.h

    r770f02b r3e1fea3  
    4141void system_End       ( libvlc_int_t * ); 
    4242 
    43 #if defined( SYS_BEOS ) 
    44 /* Nothing at the moment, create beos_specific.h when needed */ 
    45 #elif defined( __APPLE__ ) 
    46 /* Nothing at the moment, create darwin_specific.h when needed */ 
    47 #elif defined( WIN32 ) || defined( UNDER_CE ) 
    48  
    49 #else 
    50 # define system_Init( a, b, c )      (void)0 
    51 # define system_Configure( a, b, c ) (void)0 
    52 # define system_End( a )             (void)0 
    53 #endif 
    54  
    55  
    5643/* 
    5744 * Threads subsystem 
     
    155142    module_bank_t *        p_module_bank; ///< The module bank 
    156143 
    157     /* Arch-specific variables */ 
    158 #if defined( SYS_BEOS ) 
    159144    char *                 psz_vlcpath; 
    160 #elif defined( __APPLE__ ) 
    161     char *                 psz_vlcpath; 
    162 #elif defined( WIN32 ) 
    163     char *                 psz_vlcpath; 
    164 #endif 
    165145} libvlc_global_data_t; 
    166146