diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2017-02-20 22:57:00 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2017-02-21 09:59:07 +0000 |
commit | 0e21f6619c72f1e17a7b0a52b6317810973d8a3e (patch) | |
tree | e43a89c6519b5c69aff392d3ce582aa0cd9b72bb | |
parent | ca5277c1ad181c15ce604077e07935b2de946c7c (diff) |
Kill bitrot Emscripten experiment
Change-Id: I1cd5331157e684afb01e6555168ce646194c6ff2
Reviewed-on: https://gerrit.libreoffice.org/34493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
-rw-r--r-- | bridges/Module_bridges.mk | 2 | ||||
-rw-r--r-- | configure.ac | 48 | ||||
-rw-r--r-- | distro-configs/LibreOfficeEmscripten.conf | 52 | ||||
-rw-r--r-- | external/icu/ExternalProject_icu.mk | 2 | ||||
-rw-r--r-- | external/icu/UnpackedTarball_icu.mk | 1 | ||||
-rw-r--r-- | external/icu/icu4c-emscripten.patch.1 | 116 | ||||
-rw-r--r-- | include/osl/endian.h | 2 | ||||
-rw-r--r-- | include/sal/alloca.h | 2 | ||||
-rw-r--r-- | include/sal/config.h | 11 | ||||
-rw-r--r-- | sal/osl/unx/socket.cxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/system.hxx | 5 | ||||
-rw-r--r-- | solenv/gbuild/platform/EMSCRIPTEN_INTEL_emcc.mk | 18 | ||||
-rw-r--r-- | vcl/CppunitTest_vcl_wmf_test.mk | 4 | ||||
-rw-r--r-- | vcl/Library_vcl.mk | 6 |
14 files changed, 12 insertions, 259 deletions
diff --git a/bridges/Module_bridges.mk b/bridges/Module_bridges.mk index a876f0b01deb..534efda6936b 100644 --- a/bridges/Module_bridges.mk +++ b/bridges/Module_bridges.mk @@ -24,7 +24,6 @@ $(eval $(call gb_Module_add_targets,bridges,\ ) \ )) -ifneq ($(OS), EMSCRIPTEN) ifeq (,$(filter build,$(gb_Module_SKIPTARGETS))) ifeq ($(strip $(bridges_SELECTED_BRIDGE)),) $(call gb_Output_error,no bridge selected for build: bailing out) @@ -32,6 +31,5 @@ else ifneq ($(words $(bridges_SELECTED_BRIDGE)),1) $(call gb_Output_error,multiple bridges selected for build: $(bridges_SELECTED_BRIDGE)) endif endif -endif # vim: set noet sw=4 ts=4: diff --git a/configure.ac b/configure.ac index c3b9e9404f04..9259c4dec3a7 100644 --- a/configure.ac +++ b/configure.ac @@ -845,27 +845,6 @@ linux-android*) BUILD_TYPE="$BUILD_TYPE CAIRO FONTCONFIG FREETYPE" ;; -emscripten*) - build_gstreamer_1_0=no - build_gstreamer_0_10=no - enable_lotuswordpro=no - enable_mpl_subset=yes - enable_coinmp=yes - enable_lpsolve=no - enable_report_builder=no - with_theme="tango" - test_cups=no - test_dbus=no - test_fontconfig=no - test_freetype=no - test_gtk=no - test_tde=no - test_kde4=no - test_randr=no - test_xrender=no - _os=Emscripten - ;; - *) AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice for!]) ;; @@ -4402,17 +4381,6 @@ linux-android*) esac ;; -emscripten*) - COM=emcc - USING_X11= - OS=EMSCRIPTEN - RTL_OS=Emscripten - P_SEP=: - CPUNAME=INTEL - RTL_ARCH=x86 - PLATFORMID=linux_x86 - ;; - *netbsd*) COM=GCC USING_X11=TRUE @@ -5530,7 +5498,7 @@ else fi dnl check for GNU C++ compiler version -if test "$GXX" = "yes" -a "$CXX" != "emcc"; then +if test "$GXX" = "yes"; then AC_MSG_CHECKING([the GNU C++ compiler version]) _gpp_version=`$CXX -dumpversion` @@ -7548,13 +7516,10 @@ AC_MSG_CHECKING([which zlib to use]) if test "$with_system_zlib" = "yes"; then AC_MSG_RESULT([external]) SYSTEM_ZLIB=TRUE - if test "$_os" != "Emscripten"; then - # Emscripten provides its own zlib, don't check for that - AC_CHECK_HEADER(zlib.h, [], - [AC_MSG_ERROR(zlib.h not found. install zlib)], []) - AC_CHECK_LIB(z, deflate, [ ZLIB_LIBS=-lz ], - [AC_MSG_ERROR(zlib not found or functional)], []) - fi + AC_CHECK_HEADER(zlib.h, [], + [AC_MSG_ERROR(zlib.h not found. install zlib)], []) + AC_CHECK_LIB(z, deflate, [ ZLIB_LIBS=-lz ], + [AC_MSG_ERROR(zlib not found or functional)], []) else AC_MSG_RESULT([internal]) SYSTEM_ZLIB= @@ -11579,8 +11544,7 @@ dnl =================================================================== ENABLE_LIBLANGTAG= SYSTEM_LIBLANGTAG= AC_MSG_CHECKING([whether to use liblangtag]) -if test "$enable_liblangtag" = "yes" -o \ - \( "$enable_liblangtag" = "" -a $_os != Emscripten \); then +if test "$enable_liblangtag" = "yes" -o "$enable_liblangtag" = ""; then ENABLE_LIBLANGTAG=TRUE AC_MSG_RESULT([yes]) AC_MSG_CHECKING([whether to use system liblangtag]) diff --git a/distro-configs/LibreOfficeEmscripten.conf b/distro-configs/LibreOfficeEmscripten.conf deleted file mode 100644 index 93396c75dca7..000000000000 --- a/distro-configs/LibreOfficeEmscripten.conf +++ /dev/null @@ -1,52 +0,0 @@ -# Need to specify --host and --build to enable cross-compilation mode -# See https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Hosts-and-Cross_002dCompilation.html ---host=asmjs-local-emscripten ---build=x86_64-unknown-linux-gnu - -# Disable unnecessary stuff ---disable-cups ---disable-dconf ---disable-gio ---disable-dbus ---disable-sdremote-bluetooth ---disable-gstreamer-0-10 ---disable-gstreamer-1-0 ---disable-liblangtag ---disable-odk ---disable-postgresql-sdbc ---disable-firebird-sdbc ---disable-python ---disable-randr ---disable-pdfimport ---disable-systray ---disable-gltf ---disable-collada ---disable-report-builder ---disable-lpsolve ---disable-coinmp ---disable-orcus ---disable-liblangtag ---without-fonts ---without-java ---without-junit ---without-helppack-integration ---without-system-dicts ---with-theme=no ---with-system-nss - -# Build fails when disabling these -#--disable-cairo-canvas -#--disable-scripting - -# This helps spotting build errors ---with-parallelism=no - -# Emscripten doesn't support dynamic loading ---disable-dynamic-loading - -# Not sure whether we need this -#--disable-ccache - -# Specify Emscripten compiler -CC=emcc -v -CXX=emcc -v diff --git a/external/icu/ExternalProject_icu.mk b/external/icu/ExternalProject_icu.mk index 646b10b40155..205817938539 100644 --- a/external/icu/ExternalProject_icu.mk +++ b/external/icu/ExternalProject_icu.mk @@ -64,7 +64,7 @@ $(call gb_ExternalProject_get_state_target,icu,build) : --disable-layout --disable-samples \ $(if $(CROSS_COMPILING),--disable-tools --disable-extras) \ $(if $(filter IOS ANDROID,$(OS)),--disable-dyload) \ - $(if $(filter ANDROID EMSCRIPTEN,$(OS)),--disable-strict ac_cv_c_bigendian=no) \ + $(if $(filter ANDROID,$(OS)),--disable-strict ac_cv_c_bigendian=no) \ $(if $(filter SOLARIS AIX,$(OS)),--disable-64bit-libs) \ $(if $(filter TRUE,$(DISABLE_DYNLOADING)),\ --with-data-packaging=static --enable-static --disable-shared --disable-dyload,\ diff --git a/external/icu/UnpackedTarball_icu.mk b/external/icu/UnpackedTarball_icu.mk index 0e4a6455a0a3..194c8eb563c2 100644 --- a/external/icu/UnpackedTarball_icu.mk +++ b/external/icu/UnpackedTarball_icu.mk @@ -25,7 +25,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,icu,\ external/icu/rtti.patch.0 \ external/icu/clang-cl.patch.0 \ $(if $(filter-out ANDROID,$(OS)),external/icu/icu4c-icudata-stdlibs.diff) \ - $(if $(filter EMSCRIPTEN,$(OS)),external/icu/icu4c-emscripten.patch.1) \ external/icu/khmerbreakengine.patch \ )) diff --git a/external/icu/icu4c-emscripten.patch.1 b/external/icu/icu4c-emscripten.patch.1 deleted file mode 100644 index 3ce6d527b5cd..000000000000 --- a/external/icu/icu4c-emscripten.patch.1 +++ /dev/null @@ -1,116 +0,0 @@ ---- icu.org/source/config/mh-unknown 2015-10-06 11:35:03.212459286 +0200 -+++ icu/source/config/mh-unknown 2015-10-06 12:01:00.497972406 +0200 -@@ -1,27 +1,90 @@ - ## -*-makefile-*- --## Copyright (c) 2003, International Business Machines Corporation and -+## Emscripten-specific setup -+## Copyright (c) 1999-2013, International Business Machines Corporation and - ## others. All Rights Reserved. --## - --# Note, this is not a real mh- file. You got here because configure --# (specifically, aclocal.m4) could not determine a suitable mh- file. --# --# Perhaps your platform wasn't detected- try changing aclocal.m4 and --# re-running autoconf. --# --# If your platform is truly new/different: --# As a start, try copying mh-linux (which is fairly generic) over this --# file, and re-run config.status. -- --%.$(STATIC_O) %.o %.$(STATIC_O) %.o ../data/%.o %.d %.d %.$(SO).$(SO_TARGET_VERSION_MAJOR) %.$(SO): -- @echo -- @echo -- @echo "*** ERROR - configure could not detect your platform" -- @echo "*** see the readme.html" -- @echo "*** or, try copying icu/source/config/mh-linux to mh-unknown" -- @echo "*** and editing it." -- @echo -- @echo -- exit 1 -+## Commands to generate dependency files -+GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) -+GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS) - -+## Flags for position independent code -+SHAREDLIBCFLAGS = -fPIC -+SHAREDLIBCXXFLAGS = -fPIC -+SHAREDLIBCPPFLAGS = -DPIC - -+## Additional flags when building libraries and with threads -+THREADSCPPFLAGS = -D_REENTRANT -+LIBCPPFLAGS = -+ -+## Compiler switch to embed a runtime search path -+LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN -+LD_RPATH_PRE = -Wl,-rpath, -+ -+## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH: -+ENABLE_RPATH=YES -+RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' -+ -+## These are the library specific LDFLAGS -+#LDFLAGSICUDT=-nodefaultlibs -nostdlib -+# Debian change: linking icudata as data only causes too many problems. -+LDFLAGSICUDT= -+ -+## Compiler switch to embed a library name -+# The initial tab in the next line is to prevent icu-config from reading it. -+ LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) -+#SH# # We can't depend on MIDDLE_SO_TARGET being set. -+#SH# LD_SONAME= -+ -+## Shared library options -+LD_SOOPTIONS= -Wl,-Bsymbolic-functions -+ -+## Shared object suffix -+SO = so -+## Non-shared intermediate object suffix -+STATIC_O = ao -+ -+## Compilation rules -+%.$(STATIC_O): $(srcdir)/%.c -+ $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -o $@ $<) -+%.o: $(srcdir)/%.c -+ $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -o $@ $<) -+ -+%.$(STATIC_O): $(srcdir)/%.cpp -+ $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -o $@ $<) -+%.o: $(srcdir)/%.cpp -+ $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -o $@ $<) -+ -+ -+## Dependency rules -+%.d: $(srcdir)/%.c -+ $(call ICU_MSG,(deps)) $< -+ @$(SHELL) -ec '$(GEN_DEPS.c) $< \ -+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ -+ [ -s $@ ] || rm -f $@' -+ -+%.d: $(srcdir)/%.cpp -+ $(call ICU_MSG,(deps)) $< -+ @$(SHELL) -ec '$(GEN_DEPS.cc) $< \ -+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ -+ [ -s $@ ] || rm -f $@' -+ -+## Versioned libraries rules -+ -+%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) -+ $(RM) $@ && ln -s ${<F} $@ -+%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) -+ $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ -+ -+## Bind internal references -+ -+# LDflags that pkgdata will use -+BIR_LDFLAGS= -Wl,-Bsymbolic -+ -+# Dependencies [i.e. map files] for the final library -+BIR_DEPS= -+ -+## Remove shared library 's' -+STATIC_PREFIX_WHEN_USED = -+STATIC_PREFIX = -+ -+## End Linux-specific setup - diff --git a/include/osl/endian.h b/include/osl/endian.h index ca3640b8d4a5..9a92e25eb98c 100644 --- a/include/osl/endian.h +++ b/include/osl/endian.h @@ -41,8 +41,6 @@ extern "C" { # elif __BYTE_ORDER == __BIG_ENDIAN # define OSL_BIGENDIAN # endif -#elif defined EMSCRIPTEN -# define OSL_LITENDIAN #elif defined IOS || defined MACOSX || defined NETBSD # include <machine/endian.h> # if BYTE_ORDER == LITTLE_ENDIAN diff --git a/include/sal/alloca.h b/include/sal/alloca.h index 4a817c7ec87a..f756acc3bab8 100644 --- a/include/sal/alloca.h +++ b/include/sal/alloca.h @@ -20,7 +20,7 @@ #ifndef INCLUDED_SAL_ALLOCA_H #define INCLUDED_SAL_ALLOCA_H -#if defined (__sun) || defined (LINUX) || defined(AIX) || defined(ANDROID) || defined(EMSCRIPTEN) +#if defined (__sun) || defined (LINUX) || defined(AIX) || defined(ANDROID) #ifndef INCLUDED_ALLOCA_H #include <alloca.h> diff --git a/include/sal/config.h b/include/sal/config.h index 24612f70ec18..3911db512d55 100644 --- a/include/sal/config.h +++ b/include/sal/config.h @@ -62,17 +62,6 @@ #define SAL_CONFIGFILE( name ) name "rc" #endif -#ifdef EMSCRIPTEN -#define SAL_UNX -#define SAL_DLLEXTENSION ".bc" -#define SAL_EXEEXTENSION "" -#define SAL_DLLPREFIX "lib" -#define SAL_PATHSEPARATOR ':' -#define SAL_PATHDELIMITER '/' -#define SAL_NEWLINE_STRING "\n" -#define SAL_CONFIGFILE( name ) name "rc" -#endif - #ifdef MACOSX #define SAL_UNX #define SAL_DLLEXTENSION ".dylib" diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index 717643175fe8..527663dfe0a4 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -709,7 +709,7 @@ static struct hostent* osl_gethostbyname_r ( const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop) { -#if defined(LINUX) || defined(ANDROID) || defined(FREEBSD) || defined(DRAGONFLY) || defined(EMSCRIPTEN) +#if defined(LINUX) || defined(ANDROID) || defined(FREEBSD) || defined(DRAGONFLY) struct hostent *result_; /* will be the same as result */ int e; e = gethostbyname_r (name, result, buffer, buflen, diff --git a/sal/osl/unx/system.hxx b/sal/osl/unx/system.hxx index 4b1462c44c12..9fd4a640f830 100644 --- a/sal/osl/unx/system.hxx +++ b/sal/osl/unx/system.hxx @@ -85,7 +85,7 @@ #endif -#if defined(ANDROID) || defined(EMSCRIPTEN) +#if defined(ANDROID) # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> @@ -242,8 +242,7 @@ int macxp_resolveAlias(char *path, int buflen); !defined(AIX) && \ !defined(__sun) && !defined(MACOSX) && \ !defined(OPENBSD) && !defined(DRAGONFLY) && \ - !defined(IOS) && !defined(ANDROID) && \ - !defined(EMSCRIPTEN) + !defined(IOS) && !defined(ANDROID) # error "Target platform not specified!" #endif diff --git a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_emcc.mk b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_emcc.mk deleted file mode 100644 index 7619db753db3..000000000000 --- a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_emcc.mk +++ /dev/null @@ -1,18 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -ifeq ($(DISABLE_DYNLOADING),TRUE) -gb_UnoApiHeadersTarget_select_variant = $(if $(filter udkapi,$(1)),comprehensive,$(2)) -else -gb_UnoApiHeadersTarget_select_variant = $(2) -endif - -include $(GBUILDDIR)/platform/unxgcc.mk - -# vim: set noet sw=4 ts=4: diff --git a/vcl/CppunitTest_vcl_wmf_test.mk b/vcl/CppunitTest_vcl_wmf_test.mk index 737c3208ca78..27dfe62f6b2c 100644 --- a/vcl/CppunitTest_vcl_wmf_test.mk +++ b/vcl/CppunitTest_vcl_wmf_test.mk @@ -124,12 +124,8 @@ ifeq ($(ENABLE_HEADLESS),TRUE) $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\ cairo \ freetype \ -)) -ifneq ($(OS),EMSCRIPTEN) -$(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\ fontconfig \ )) -endif else ifeq ($(OS),LINUX) $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\ diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk index caff16e533c9..5949156e20f0 100644 --- a/vcl/Library_vcl.mk +++ b/vcl/Library_vcl.mk @@ -594,17 +594,13 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ $(eval $(call gb_Library_use_externals,vcl,\ cairo \ freetype \ + fontconfig \ )) ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) $(eval $(call gb_Library_add_libs,vcl,\ -lpthread \ )) endif -ifneq ($(OS),EMSCRIPTEN) -$(eval $(call gb_Library_use_externals,vcl,\ - fontconfig \ -)) -endif else $(eval $(call gb_Library_add_exception_objects,vcl,\ vcl/opengl/DeviceInfo \ |