various cleanups

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2016-10-24 17:08:16 +00:00
parent f6f2b15fd6
commit 812ac6414a
5 changed files with 3 additions and 30 deletions

View file

@ -25,7 +25,7 @@ find_path(RESOLV_INCLUDES
find_library(RESOLV_LIBRARIES
NAMES
resolv c
resolv c
HINTS
$ENV{RESOLVDIR}/lib
${LIB_INSTALL_DIR}

View file

@ -41,13 +41,6 @@
#include "QtCore/qxmlstream.h"
#if defined(QT_BUILD_XML_LIB) && defined(Q_OS_MAC64)
// No need to define this in the 64-bit Mac libraries.
// Since Qt 4.4 and previous weren't supported in 64-bit, there are
// no QXmlStream* symbols to keep compatibility with
# define QT_NO_XMLSTREAM
#endif
#ifndef QT_NO_XMLSTREAM
#include "qxmlutils_p.h"
@ -57,24 +50,8 @@
#include <qtextcodec.h>
#include <qstack.h>
#include <qbuffer.h>
#ifndef QT_BOOTSTRAPPED
#include <qcoreapplication.h>
#else
// This specialization of Q_DECLARE_TR_FUNCTIONS is not in qcoreapplication.h,
// because that header depends on QObject being available, which is not the
// case for most bootstrapped applications.
#define Q_DECLARE_TR_FUNCTIONS(context) \
public: \
static inline QString tr(const char *sourceText, const char *comment = 0) \
{ Q_UNUSED(comment); return QString::fromLatin1(sourceText); } \
static inline QString trUtf8(const char *sourceText, const char *comment = 0) \
{ Q_UNUSED(comment); return QString::fromLatin1(sourceText); } \
static inline QString tr(const char *sourceText, const char*, int) \
{ return QString::fromLatin1(sourceText); } \
static inline QString trUtf8(const char *sourceText, const char*, int) \
{ return QString::fromLatin1(sourceText); } \
private:
#endif
QT_BEGIN_NAMESPACE
#include "qxmlstream_p.h"

View file

@ -1,7 +1,6 @@
add_definitions(
-DQT_BUILD_DECLARATIVE_LIB
-DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_OPENTYPE
)
set(EXTRA_DECLARATIVE_LIBS KtCore KtGui KtNetwork KtScript)

View file

@ -506,7 +506,7 @@ if(WITH_HARFBUZZ AND HARFBUZZ_FOUND)
include_directories(${HARFBUZZ_INCLUDE_DIRS})
else()
# TODO: move to main CMakeLists?
add_definitions(-DHB_EXPORT=Q_CORE_EXPORT)
add_definitions(-DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_OPENTYPE)
set(KtGui_SOURCES
${KtGui_SOURCES}
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-buffer.c

View file

@ -80,9 +80,6 @@ set(GUI_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/text/qglyphrun.cpp
)
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src)
add_definitions(-DQT_NO_OPENTYPE)
if(WITH_FREETYPE AND FREETYPE_FOUND)
set(EXTRA_GUI_LIBS
${EXTRA_GUI_LIBS}