diff options
author | David Tardon <dtardon@redhat.com> | 2018-01-02 13:43:18 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2018-01-02 20:41:02 +0100 |
commit | c576312aa60c8ffbae7628ad1a86155a96266356 (patch) | |
tree | 1e99bf727fbc196a3b807a587d15fe3ae3f804f4 /external/libqxp | |
parent | 72ff62a13af402d19e6e53b809b29033a985c04a (diff) |
upload libqxp 0.0.1
Change-Id: I44f94ea59e2b7a7f9fb5c2c74268fbe4601936b3
Reviewed-on: https://gerrit.libreoffice.org/47258
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/libqxp')
5 files changed, 2 insertions, 162 deletions
diff --git a/external/libqxp/0001-WaE-narrowing-conversion.patch.1 b/external/libqxp/0001-WaE-narrowing-conversion.patch.1 deleted file mode 100644 index 0c73c0501f3c..000000000000 --- a/external/libqxp/0001-WaE-narrowing-conversion.patch.1 +++ /dev/null @@ -1,28 +0,0 @@ -From 3d0b78eb855dc3797e614a72019afbebbebc536a Mon Sep 17 00:00:00 2001 -From: David Tardon <dtardon@redhat.com> -Date: Mon, 28 Aug 2017 08:58:10 +0200 -Subject: [PATCH] WaE: narrowing conversion - -error C2398: Element '3': conversion from 'unsigned __int64' to 'unsigned long' requires a narrowing conversion ---- - src/lib/QXPContentCollector.cpp | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/src/lib/QXPContentCollector.cpp b/src/lib/QXPContentCollector.cpp -index 6a227a6..9c3076d 100644 ---- a/src/lib/QXPContentCollector.cpp -+++ b/src/lib/QXPContentCollector.cpp -@@ -943,7 +943,9 @@ void QXPContentCollector::drawText(const std::shared_ptr<Text> &text, const Link - break; - } - -- const unsigned long spanTextEnd = std::min<unsigned long>({ charFormat.afterEndIndex(), paragraph.afterEndIndex(), text->text.length(), textEnd }); -+ const auto spanTextEnd = static_cast<unsigned long>( -+ std::min<uint64_t>({ charFormat.afterEndIndex(), paragraph.afterEndIndex(), text->text.length(), textEnd }) -+ ); - - if (charFormat.format->isControlChars) - { --- -2.13.0 - diff --git a/external/libqxp/0001-add-missing-includes.patch.1 b/external/libqxp/0001-add-missing-includes.patch.1 deleted file mode 100644 index c5dbeb535fdf..000000000000 --- a/external/libqxp/0001-add-missing-includes.patch.1 +++ /dev/null @@ -1,37 +0,0 @@ -From 5658a197de7dd7827e6cb2ba9acd8ed7934e9e83 Mon Sep 17 00:00:00 2001 -From: Aleksas Pantechovskis <alex.pantec@gmail.com> -Date: Sun, 27 Aug 2017 22:55:00 +0300 -Subject: [PATCH] add missing includes - ---- - src/lib/QXPBlockParser.cpp | 1 + - src/lib/QXPContentCollector.cpp | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/src/lib/QXPBlockParser.cpp b/src/lib/QXPBlockParser.cpp -index a9a8c9b..d0a58e7 100644 ---- a/src/lib/QXPBlockParser.cpp -+++ b/src/lib/QXPBlockParser.cpp -@@ -13,6 +13,7 @@ - #include <algorithm> - #include <memory> - #include <vector> -+#include <iterator> - - #include "QXPHeader.h" - #include "QXPMemoryStream.h" -diff --git a/src/lib/QXPContentCollector.cpp b/src/lib/QXPContentCollector.cpp -index 0a5a2c9..6a227a6 100644 ---- a/src/lib/QXPContentCollector.cpp -+++ b/src/lib/QXPContentCollector.cpp -@@ -11,6 +11,7 @@ - - #include <algorithm> - #include <utility> -+#include <iterator> - - #include <boost/range/adaptor/reversed.hpp> - #include <boost/variant.hpp> --- -2.7.4 - diff --git a/external/libqxp/0001-don-t-use-RVNGStringStream-in-the-main-lib.patch.1 b/external/libqxp/0001-don-t-use-RVNGStringStream-in-the-main-lib.patch.1 deleted file mode 100644 index 40e4ee179ac8..000000000000 --- a/external/libqxp/0001-don-t-use-RVNGStringStream-in-the-main-lib.patch.1 +++ /dev/null @@ -1,89 +0,0 @@ -From 4118cfa23d2e251278a55f7fd44c246c84c41ab5 Mon Sep 17 00:00:00 2001 -From: Aleksas Pantechovskis <alex.pantec@gmail.com> -Date: Sun, 27 Aug 2017 19:39:37 +0300 -Subject: [PATCH] don't use RVNGStringStream in the main lib - -librevenge-stream is not used in libreoffice ---- - src/lib/QXP4Parser.cpp | 4 ++-- - src/lib/QXPBlockParser.cpp | 6 +++--- - src/lib/QXPParser.cpp | 1 - - 3 files changed, 5 insertions(+), 6 deletions(-) - -diff --git a/src/lib/QXP4Parser.cpp b/src/lib/QXP4Parser.cpp -index c748e3e..3e31951 100644 ---- a/src/lib/QXP4Parser.cpp -+++ b/src/lib/QXP4Parser.cpp -@@ -15,11 +15,11 @@ - #include "QXP4Deobfuscator.h" - #include "QXP4Header.h" - #include "QXPCollector.h" -+#include "QXPMemoryStream.h" - - namespace libqxp - { - --using librevenge::RVNGStringStream; - using std::make_shared; - using std::shared_ptr; - -@@ -123,7 +123,7 @@ bool QXP4Parser::parsePages(const std::shared_ptr<librevenge::RVNGInputStream> & - void QXP4Parser::parseColors(const std::shared_ptr<librevenge::RVNGInputStream> &docStream) - { - unsigned length = readU32(docStream, be); -- auto stream = make_shared<RVNGStringStream>(readNBytes(docStream, length), length); -+ auto stream = make_shared<QXPMemoryStream>(readNBytes(docStream, length), length); - - try - { -diff --git a/src/lib/QXPBlockParser.cpp b/src/lib/QXPBlockParser.cpp -index 58cecb9..a9a8c9b 100644 ---- a/src/lib/QXPBlockParser.cpp -+++ b/src/lib/QXPBlockParser.cpp -@@ -15,12 +15,12 @@ - #include <vector> - - #include "QXPHeader.h" -+#include "QXPMemoryStream.h" - - namespace libqxp - { - - using librevenge::RVNGInputStream; --using librevenge::RVNGStringStream; - using std::make_shared; - using std::vector; - -@@ -36,7 +36,7 @@ std::shared_ptr<RVNGInputStream> QXPBlockParser::getBlock(const uint32_t index) - { - seek(m_input, (index - 1) * m_blockLength); - auto block = readNBytes(m_input, m_blockLength); -- return make_shared<RVNGStringStream>(block, m_blockLength); -+ return make_shared<QXPMemoryStream>(block, m_blockLength); - } - - std::shared_ptr<RVNGInputStream> QXPBlockParser::getChain(const uint32_t index) -@@ -59,7 +59,7 @@ std::shared_ptr<RVNGInputStream> QXPBlockParser::getChain(const uint32_t index) - isBig = nextVal < 0; - next = abs(nextVal); - } -- return make_shared<RVNGStringStream>(chain.data(), chain.size()); -+ return make_shared<QXPMemoryStream>(chain.data(), chain.size()); - } - - } -diff --git a/src/lib/QXPParser.cpp b/src/lib/QXPParser.cpp -index 54abd7e..9dd90a8 100644 ---- a/src/lib/QXPParser.cpp -+++ b/src/lib/QXPParser.cpp -@@ -18,7 +18,6 @@ - namespace libqxp - { - --using librevenge::RVNGStringStream; - using std::make_shared; - - QXPParser::QXPParser(const std::shared_ptr<librevenge::RVNGInputStream> &input, librevenge::RVNGDrawingInterface *painter, const std::shared_ptr<QXPHeader> &header) --- -2.7.4 - diff --git a/external/libqxp/ExternalProject_libqxp.mk b/external/libqxp/ExternalProject_libqxp.mk index d9e43727e6ed..d2627c021602 100644 --- a/external/libqxp/ExternalProject_libqxp.mk +++ b/external/libqxp/ExternalProject_libqxp.mk @@ -29,6 +29,7 @@ $(call gb_ExternalProject_get_state_target,libqxp,build) : --enable-static \ --disable-shared \ --without-docs \ + --disable-tests \ --disable-tools \ --disable-debug \ --disable-werror \ @@ -36,10 +37,8 @@ $(call gb_ExternalProject_get_state_target,libqxp,build) : $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \ CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \ CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \ - REVENGE_GENERATORS_CFLAGS=' ' REVENGE_GENERATORS_LIBS=' ' REVENGE_STREAM_CFLAGS=' ' REVENGE_STREAM_LIBS=' ' \ - ax_cv_cxx_compile_cxx11=yes \ $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ - && $(MAKE) -C src/lib \ + && $(MAKE) \ ) # vim: set noet sw=4 ts=4: diff --git a/external/libqxp/UnpackedTarball_libqxp.mk b/external/libqxp/UnpackedTarball_libqxp.mk index b630fc2981b9..017b21d9f55c 100644 --- a/external/libqxp/UnpackedTarball_libqxp.mk +++ b/external/libqxp/UnpackedTarball_libqxp.mk @@ -13,8 +13,6 @@ $(eval $(call gb_UnpackedTarball_set_tarball,libqxp,$(QXP_TARBALL))) $(eval $(call gb_UnpackedTarball_set_patchlevel,libqxp,0)) -$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libqxp)) - ifeq ($(COM_IS_CLANG),TRUE) ifneq ($(filter -fsanitize=%,$(CC)),) $(eval $(call gb_UnpackedTarball_add_patches,libqxp, \ @@ -24,9 +22,6 @@ endif endif $(eval $(call gb_UnpackedTarball_add_patches,libqxp, \ - external/libqxp/0001-don-t-use-RVNGStringStream-in-the-main-lib.patch.1 \ - external/libqxp/0001-add-missing-includes.patch.1 \ - external/libqxp/0001-WaE-narrowing-conversion.patch.1 \ external/libqxp/android-workaround.patch.1 \ )) |