Commit 3d934764 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove unfinished dead Symbian port

The port has never worked and has not been improved for over 4 years.
The platform itself has been totally discontinued for 18 months.
parent b31b1488
......@@ -18,7 +18,6 @@ EXTRA_DIST = \
extras/package/win32/libvlc.dll.manifest \
extras/package/win32/change-contribs-directory.sh \
extras/package/win32/configure.sh \
extras/package/symbian/configure.sh \
extras/package/npapi.am \
extras/package/win32/NSIS/vlc.win32.nsi.in \
extras/package/win32/NSIS/spad.nsi.in \
......
......@@ -291,9 +291,6 @@ case "${host_os}" in
hpux*)
SYS=hpux
;;
symbian*)
SYS=symbian
;;
*os2*)
SYS=os2
LDFLAGS="${LDFLAGS} -Zomf -Zbin-files -Zargs-wild -Zhigh-mem"
......@@ -308,7 +305,6 @@ AM_CONDITIONAL(HAVE_LINUX, test "${SYS}" = "linux")
AM_CONDITIONAL(HAVE_OS2, test "${SYS}" = "os2")
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
AM_CONDITIONAL(HAVE_WIN64, test "${HAVE_WIN64}" = "1")
AM_CONDITIONAL(HAVE_SYMBIAN, test "${SYS}" = "symbian")
AM_CONDITIONAL(HAVE_IOS, test "${HAVE_IOS}" = "1")
AM_CONDITIONAL(HAVE_OSX, test "${HAVE_OSX}" = "1")
......@@ -3002,7 +2998,7 @@ dnl X C Bindings modules
dnl
AC_ARG_ENABLE(xcb,
[ --enable-xcb X11 support with XCB (default enabled)],, [
AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "darwin" -a "${SYS}" != "symbian"], [
AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "darwin"], [
enable_xcb="yes"
], [
enable_xcb="no"
......
#!/bin/sh
SYMBIAN_ROOT=/mnt/vlc/symbian
SYMBIAN_SDK=$SYMBIAN_ROOT/sdks
EPOCROOT=$SYMBIAN_SDK
PATH=$SYMBIAN_ROOT/gnupoc:$SYMBIAN_ROOT/cls-gcc/bin:$SYMBIAN_ROOT/qt_4.7.1/bin:$PATH
SYMBIAN_INCLUDE=$SYMBIAN_SDK/epoc32/include
echo "export EPOCROOT=$EPOCROOT;export PATH=$PATH;"
CC=arm-none-symbianelf-gcc CXX=arm-none-symbianelf-g++ \
PKG_CONFIG_PATH="" PKG_CONFIG_LIBDIR="" \
LDFLAGS="-L$SYMBIAN_ROOT/cls-gcc/arm-none-symbianelf/lib -L$EPOCROOT/epoc32/release/armv5/lib -nostdlib -shared -Wl,--no-undefined $EPOCROOT/epoc32/release/armv5/lib/libc.dso " \
CPPFLAGS="-D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__S60_3X__ -D__FreeBSD_cc_version -include $SYMBIAN_INCLUDE/gcce/gcce.h -I$SYMBIAN_INCLUDE/stdapis -I$SYMBIAN_INCLUDE/stdapis/sys -I$SYMBIAN_INCLUDE/variant -I$SYMBIAN_INCLUDE " \
../configure --host=arm-none-symbianelf --build=i386-linux \
--disable-vlc --enable-static --disable-shared --enable-static-modules \
--disable-mad --disable-avcodec --disable-a52 --disable-libgcrypt --disable-remoteosd \
--disable-lua --disable-swscale --disable-postproc --disable-qt --disable-skins2
......@@ -400,10 +400,6 @@ typedef enum
# include <windows.h>
#endif
#ifdef __SYMBIAN32__
#include <sys/syslimits.h>
#endif
#ifdef __OS2__
# define OS2EMX_PLAIN_CHAR
# define INCL_BASE
......@@ -927,7 +923,7 @@ VLC_API const char * VLC_Compiler( void ) VLC_USED;
#include "vlc_main.h"
#include "vlc_configuration.h"
#if defined( _WIN32 ) || defined( __SYMBIAN32__ ) || defined( __OS2__ )
#if defined( _WIN32 ) || defined( __OS2__ )
# define DIR_SEP_CHAR '\\'
# define DIR_SEP "\\"
# define PATH_SEP_CHAR ';'
......
......@@ -68,16 +68,6 @@ struct msghdr
# define net_errno errno
#endif
#if defined( __SYMBIAN32__ )
# undef AF_INET6
# undef IN6_IS_ADDR_MULTICAST
# undef IPV6_V6ONLY
# undef IPV6_MULTICAST_HOPS
# undef IPV6_MULTICAST_IF
# undef IPV6_TCLASS
# undef IPV6_JOIN_GROUP
#endif
#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif
......
......@@ -227,9 +227,6 @@ else
if HAVE_WIN32
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
else
if HAVE_SYMBIAN
#libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
else
if HAVE_OS2
libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
else
......@@ -239,7 +236,6 @@ endif
endif
endif
endif
endif
if BUILD_HTTPD
libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
endif
......@@ -302,13 +298,6 @@ SOURCES_libvlc_win32 = \
win32/rand.c \
$(NULL)
SOURCES_libvlc_symbian = \
symbian/path.cpp \
symbian/dirs.c \
win32/plugin.c \
posix/rand.c \
$(NULL)
SOURCES_libvlc_os2 = \
os2/getaddrinfo.c \
os2/dirs.c \
......
/*****************************************************************************
* dirs.cpp: Symbian Directory Structure
*****************************************************************************
* Copyright © 2010 Pankaj Yadav
*
* Authors: Pankaj Yadav
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "path.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include "../libvlc.h"
#include <vlc_charset.h>
#include <vlc_configuration.h>
#include "config/configuration.h"
#include <string.h>
/**
* Determines the shared data directory
*
* @return a null-terminated string or NULL. Use free() to release it.
*/
char *config_GetDataDir (void)
{
return GetConstPrivatePath();
}
/**
* Determines the architecture-dependent data directory
*
* @return a string (always succeeds).
*/
const char *config_GetLibDir (void)
{
return "C:\\Sys\\Bin";
}
char *config_GetUserDir (vlc_userdir_t type)
{
switch (type)
{
case VLC_HOME_DIR:
break;
case VLC_CONFIG_DIR:
return GetConstPrivatePath();
case VLC_DATA_DIR:
return GetConstPrivatePath();
case VLC_CACHE_DIR:
return GetConstPrivatePath();
case VLC_DESKTOP_DIR:
case VLC_DOWNLOAD_DIR:
case VLC_TEMPLATES_DIR:
case VLC_PUBLICSHARE_DIR:
case VLC_DOCUMENTS_DIR:
return strdup("C:\\Data\\Others");
case VLC_MUSIC_DIR:
return strdup("C:\\Data\\Sounds");
case VLC_PICTURES_DIR:
return strdup("C:\\Data\\Images");
case VLC_VIDEOS_DIR:
return strdup("C:\\Data\\Videos");
}
return GetConstPrivatePath();
}
/*****************************************************************************
* path.cpp : Symbian Application's Provate Path
*****************************************************************************
* Copyright © 2010 Pankaj Yadav
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <f32file.h> /* RFs */
#include <string.h> /* strlen */
#include <utf.h> /* CnvUtfConverter */
extern "C" {
#include "path.h"
}
/*Way to Find AppPrivatePath (A Path where an application can store its private data) */
static TInt GetPrivatePath(TFileName& privatePath)
{
TFileName KPath;
RFs fsSession;
TInt result;
result = fsSession.Connect();
if (result != KErrNone)
{
return result;
}
fsSession.PrivatePath(KPath);
TFindFile findFile(fsSession);
privatePath = KPath;
result = findFile.FindByDir(KPath, KNullDesC);
if (result == KErrNone)
{
privatePath = findFile.File();
}
fsSession.Close();
return result;
}
extern "C" char * GetConstPrivatePath(void)
{
TFileName privatePath;
TBuf8<KMaxFileName> privatepathutf8;
size_t len;
char carray[KMaxFileName];
if (GetPrivatePath(privatePath) != KErrNone)
{
return strdup("C:\\Data\\Others");
}
CnvUtfConverter::ConvertFromUnicodeToUtf8( privatepathutf8, privatePath );
TInt index = 0;
for (index = 0; index < privatepathutf8.Length(); index++)
{
carray[index] = privatepathutf8[index];
}
carray[index] = 0;
if ((len = strnlen((const char *)carray, KMaxFileName) < KMaxFileName))
{
carray[len-1] = '\0';
return strdup((const char *)carray);
}
else
{
return strdup("C:\\Data\\Others");
}
}
/*****************************************************************************
* path.h: Symbian Aplications Private Path
*****************************************************************************
* Copyright © 2010 Pankaj Yadav
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
char * GetConstPrivatePath(void);
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