mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
f6f2b15fd6
commit
812ac6414a
5 changed files with 3 additions and 30 deletions
|
@ -25,7 +25,7 @@ find_path(RESOLV_INCLUDES
|
|||
|
||||
find_library(RESOLV_LIBRARIES
|
||||
NAMES
|
||||
resolv c
|
||||
resolv c
|
||||
HINTS
|
||||
$ENV{RESOLVDIR}/lib
|
||||
${LIB_INSTALL_DIR}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue