diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 14:20:36 +0000 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-05-22 12:17:02 +0200 |
commit | 4aad3c8faa7f1477b0c5cd7f1535567a8368a41a (patch) | |
tree | 576d1531f25ee19e75869de0d2beb562679325a6 /external | |
parent | 7fa256023cc50d5bdd749f8845ac4b26b790beab (diff) |
just use turbo-jpeg as sole internal solution
prefer having nasm/yasm but if its not there warn and fallback
to disabling assembler optional goodness
Change-Id: Ib31ad81717842f743c2910d575a9ebbc279a9c79
Reviewed-on: https://gerrit.libreoffice.org/35189
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/jpeg-turbo/ExternalProject_jpeg-turbo.mk | 1 | ||||
-rw-r--r-- | external/jpeg/Makefile | 7 | ||||
-rw-r--r-- | external/jpeg/Module_jpeg.mk | 17 | ||||
-rw-r--r-- | external/jpeg/README | 6 | ||||
-rw-r--r-- | external/jpeg/StaticLibrary_jpeg.mk | 70 | ||||
-rw-r--r-- | external/jpeg/UnpackedTarball_jpeg.mk | 20 | ||||
-rw-r--r-- | external/jpeg/configs/jconfig.h | 66 | ||||
-rw-r--r-- | external/jpeg/patches/jpeg-8c-jmorecfg.patch | 18 |
9 files changed, 1 insertions, 205 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk index d744018fe6db..09c31ac59498 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -53,7 +53,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,HYPHEN,hyphen) \ $(call gb_Helper_optional,ICU,icu) \ $(call gb_Helper_optional,JFREEREPORT,jfreereport) \ - $(call gb_Helper_optional,JPEG,jpeg) \ $(call gb_Helper_optional,JPEG_TURBO,jpeg-turbo) \ $(call gb_Helper_optional,LANGUAGETOOL,languagetool) \ $(call gb_Helper_optional,LCMS2,lcms2) \ diff --git a/external/jpeg-turbo/ExternalProject_jpeg-turbo.mk b/external/jpeg-turbo/ExternalProject_jpeg-turbo.mk index 437d574b8988..f3affa14e203 100644 --- a/external/jpeg-turbo/ExternalProject_jpeg-turbo.mk +++ b/external/jpeg-turbo/ExternalProject_jpeg-turbo.mk @@ -32,6 +32,7 @@ $(call gb_ExternalProject_get_state_target,jpeg-turbo,configure) : --with-jpeg8 \ --without-java \ --without-turbojpeg \ + $(if $(NASM),,--without-simd) \ CFLAGS='$(if $(debug),$(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS)) $(CFLAGS)' \ ) diff --git a/external/jpeg/Makefile b/external/jpeg/Makefile deleted file mode 100644 index e4968cf85fb6..000000000000 --- a/external/jpeg/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- - -module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) - -include $(module_directory)/../../solenv/gbuild/partial_build.mk - -# vim: set noet sw=4 ts=4: diff --git a/external/jpeg/Module_jpeg.mk b/external/jpeg/Module_jpeg.mk deleted file mode 100644 index 3d66f8f87b67..000000000000 --- a/external/jpeg/Module_jpeg.mk +++ /dev/null @@ -1,17 +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/. -# - -$(eval $(call gb_Module_Module,jpeg)) - -$(eval $(call gb_Module_add_targets,jpeg,\ - UnpackedTarball_jpeg \ - StaticLibrary_jpeg \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/jpeg/README b/external/jpeg/README deleted file mode 100644 index ab97a9ed2458..000000000000 --- a/external/jpeg/README +++ /dev/null @@ -1,6 +0,0 @@ -External library for reading/writing jpegs - -This is only used by the jpeg import filter that is provided -for use by VCL see [[vcl/source/filter/jpeg]] - - diff --git a/external/jpeg/StaticLibrary_jpeg.mk b/external/jpeg/StaticLibrary_jpeg.mk deleted file mode 100644 index c70f81cf834e..000000000000 --- a/external/jpeg/StaticLibrary_jpeg.mk +++ /dev/null @@ -1,70 +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/. -# - -$(eval $(call gb_StaticLibrary_StaticLibrary,jpeg)) - -$(eval $(call gb_StaticLibrary_set_warnings_not_errors,jpeg)) - -$(eval $(call gb_StaticLibrary_use_unpacked,jpeg,jpeg)) - -$(eval $(call gb_StaticLibrary_set_include,jpeg,\ - -I$(call gb_UnpackedTarball_get_dir,jpeg) \ - $$(INCLUDE) \ -)) - -$(eval $(call gb_StaticLibrary_add_generated_cobjects,jpeg,\ - UnpackedTarball/jpeg/jaricom \ - UnpackedTarball/jpeg/jcapimin \ - UnpackedTarball/jpeg/jcapistd \ - UnpackedTarball/jpeg/jcarith \ - UnpackedTarball/jpeg/jccoefct \ - UnpackedTarball/jpeg/jccolor \ - UnpackedTarball/jpeg/jcdctmgr \ - UnpackedTarball/jpeg/jchuff \ - UnpackedTarball/jpeg/jcinit \ - UnpackedTarball/jpeg/jcmainct \ - UnpackedTarball/jpeg/jcmarker \ - UnpackedTarball/jpeg/jcmaster \ - UnpackedTarball/jpeg/jcomapi \ - UnpackedTarball/jpeg/jcparam \ - UnpackedTarball/jpeg/jcprepct \ - UnpackedTarball/jpeg/jcsample \ - UnpackedTarball/jpeg/jctrans \ - UnpackedTarball/jpeg/jdapimin \ - UnpackedTarball/jpeg/jdapistd \ - UnpackedTarball/jpeg/jdarith \ - UnpackedTarball/jpeg/jdatadst \ - UnpackedTarball/jpeg/jdatasrc \ - UnpackedTarball/jpeg/jdcoefct \ - UnpackedTarball/jpeg/jdcolor \ - UnpackedTarball/jpeg/jddctmgr \ - UnpackedTarball/jpeg/jdhuff \ - UnpackedTarball/jpeg/jdinput \ - UnpackedTarball/jpeg/jdmainct \ - UnpackedTarball/jpeg/jdmarker \ - UnpackedTarball/jpeg/jdmaster \ - UnpackedTarball/jpeg/jdmerge \ - UnpackedTarball/jpeg/jdpostct \ - UnpackedTarball/jpeg/jdsample \ - UnpackedTarball/jpeg/jdtrans \ - UnpackedTarball/jpeg/jerror \ - UnpackedTarball/jpeg/jfdctflt \ - UnpackedTarball/jpeg/jfdctfst \ - UnpackedTarball/jpeg/jfdctint \ - UnpackedTarball/jpeg/jidctflt \ - UnpackedTarball/jpeg/jidctfst \ - UnpackedTarball/jpeg/jidctint \ - UnpackedTarball/jpeg/jquant1 \ - UnpackedTarball/jpeg/jquant2 \ - UnpackedTarball/jpeg/jmemmgr \ - UnpackedTarball/jpeg/jmemnobs \ - UnpackedTarball/jpeg/jutils \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/jpeg/UnpackedTarball_jpeg.mk b/external/jpeg/UnpackedTarball_jpeg.mk deleted file mode 100644 index dae63e2ec4f8..000000000000 --- a/external/jpeg/UnpackedTarball_jpeg.mk +++ /dev/null @@ -1,20 +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/. -# - -$(eval $(call gb_UnpackedTarball_UnpackedTarball,jpeg)) - -$(eval $(call gb_UnpackedTarball_set_tarball,jpeg,$(JPEG_TARBALL))) - -$(eval $(call gb_UnpackedTarball_add_file,jpeg,jconfig.h,external/jpeg/configs/jconfig.h)) - -$(eval $(call gb_UnpackedTarball_add_patches,jpeg,\ - external/jpeg/patches/jpeg-8c-jmorecfg.patch \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/jpeg/configs/jconfig.h b/external/jpeg/configs/jconfig.h deleted file mode 100644 index 1ac8ea9e5daf..000000000000 --- a/external/jpeg/configs/jconfig.h +++ /dev/null @@ -1,66 +0,0 @@ -/* jconfig.h. Generated from jconfig.cfg by configure. */ -/* jconfig.cfg --- source file edited by configure script */ -/* see jconfig.txt for explanations */ - -#define HAVE_PROTOTYPES 1 -#define HAVE_UNSIGNED_CHAR 1 -#define HAVE_UNSIGNED_SHORT 1 -/* #undef void */ -/* #undef const */ -/* #undef CHAR_IS_UNSIGNED */ -#define HAVE_STDDEF_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_LOCALE_H 1 -/* #undef NEED_BSD_STRINGS */ -/* #undef NEED_SYS_TYPES_H */ -/* #undef NEED_FAR_POINTERS */ -/* #undef NEED_SHORT_EXTERNAL_NAMES */ -/* Define this if you get warnings about undefined structures. */ -/* #undef INCOMPLETE_TYPES_BROKEN */ - -/* Define "boolean" as unsigned char, not enum, on Windows systems. */ -#ifdef _WIN32 -#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ -typedef unsigned char boolean; -#endif -#ifndef FALSE /* in case these macros already exist */ -#define FALSE 0 /* values of boolean */ -#endif -#ifndef TRUE -#define TRUE 1 -#endif -#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ -#endif - -#ifdef JPEG_INTERNALS - -/* #undef RIGHT_SHIFT_IS_UNSIGNED */ -#ifdef _WIN32 -#define INLINE __inline -#elif defined SOLARIS -#define INLINE -#else -#define INLINE inline -#endif -/* These are for configuring the JPEG memory manager. */ -/* #undef DEFAULT_MAX_MEM */ -/* #undef NO_MKTEMP */ - -#endif /* JPEG_INTERNALS */ - -#ifdef JPEG_CJPEG_DJPEG - -#undef BMP_SUPPORTED /* BMP image file format */ -#undef GIF_SUPPORTED /* GIF image file format */ -#undef PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ -/* #undef RLE_SUPPORTED */ -#undef TARGA_SUPPORTED /* Targa image file format */ - -/* #undef TWO_FILE_COMMANDLINE */ -/* #undef NEED_SIGNAL_CATCHER */ -/* #undef DONT_USE_B_MODE */ - -/* Define this if you want percent-done progress reports from cjpeg/djpeg. */ -/* #undef PROGRESS_REPORT */ - -#endif /* JPEG_CJPEG_DJPEG */ diff --git a/external/jpeg/patches/jpeg-8c-jmorecfg.patch b/external/jpeg/patches/jpeg-8c-jmorecfg.patch deleted file mode 100644 index 89a92c66691d..000000000000 --- a/external/jpeg/patches/jpeg-8c-jmorecfg.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- misc/jpeg-9a/jmorecfg.h 2009-11-20 09:01:24.000000000 +0100 -+++ misc/build/jpeg-9a/jmorecfg.h 2011-03-24 21:29:02.073761750 +0100 -@@ -210,6 +210,7 @@ - /* INT32 must hold at least signed 32-bit values. */ - - #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ -+#ifndef INCLUDED_TOOLS_SOLAR_H - #ifndef _BASETSD_H_ /* Microsoft defines it in basetsd.h */ - #ifndef _BASETSD_H /* MinGW is slightly different */ - #ifndef QGLOBAL_H /* Qt defines it in qglobal.h */ -@@ -217,6 +218,7 @@ - #endif - #endif - #endif -+#endif - #endif - - /* Datatype used for image dimensions. The JPEG standard only supports |