libports: add Qt5

Fixes #345.
devel
Christian Prochaska 10 years ago committed by Norman Feske
parent 572592b0f3
commit 7b54eaaee1

10
.gitignore vendored

@ -128,8 +128,18 @@
/libports/src/lib/ncurses/make_keys
/libports/src/lib/ncurses/names.c
/libports/src/lib/ncurses/unctrl.c
/libports/src/lib/qt5/qtwebkit/Source/JavaScriptCore
/libports/src/lib/qt5/qtwebkit/Source/WebCore/generated
/libports/tool/mesa/glsl
/libports/tool/mupdf
/libports/tool/qt5/bootstrap
/libports/tool/qt5/misc/var
/libports/tool/qt5/moc
/libports/tool/qt5/qmake/*.d
/libports/tool/qt5/qmake/*.o
/libports/tool/qt5/qmake/qmake
/libports/tool/qt5/rcc
/libports/tool/qt5/uic
/ports-foc/contrib
/ports-okl4/contrib
/ports-okl4/download

@ -0,0 +1,116 @@
/*
* \brief Thread with configurable stack size
* \author Christian Prochaska
* \date 2008-06-11
*/
/*
* Copyright (C) 2008-2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__BASE__THREAD_QT_H_
#define _INCLUDE__BASE__THREAD_QT_H_
#include <base/env.h>
#include <base/printf.h>
#include <base/thread.h>
enum { DEFAULT_STACK_SIZE = 4096*100 };
namespace Genode {
struct Thread_entry
{
virtual void entry() = 0;
};
class Thread_qt : public Thread_entry
{
private:
class Genode_thread : Thread_base
{
private:
Thread_entry *_thread_entry;
/**
* Thread_base interface
*/
void entry() { _thread_entry->entry(); }
public:
Genode_thread(const char *name,
size_t stack_size,
Thread_entry *thread_entry)
:
Thread_base(name, stack_size),
_thread_entry(thread_entry)
{
/* start Genode thread */
start();
}
};
protected:
const char *_name;
unsigned int _stack_size;
Genode_thread *_thread;
public:
/**
* Constructor
*
* \param name Thread name (for debugging)
*/
explicit Thread_qt(const char *name = "Qt <noname>")
:
_name(name),
_stack_size(DEFAULT_STACK_SIZE),
_thread(0) { }
~Thread_qt()
{
if (_thread)
destroy(env()->heap(), _thread);
}
/**
* Set the thread's stack size - don't call when the thread is running!
*/
bool set_stack_size(unsigned int stack_size)
{
/* error, if thread is already running */
if (_thread)
return false;
_stack_size = stack_size;
return true;
}
/**
* Start execution of the thread
*/
void start()
{
/* prevent double calls of 'start' */
if (_thread) return;
_thread = new (env()->heap()) Genode_thread(_name, _stack_size, this);
}
static Thread_base *myself()
{
return Thread_base::myself();
}
};
}
#endif /* _INCLUDE__BASE__THREAD_QT_H_ */

@ -0,0 +1,57 @@
/*
* \brief A Qt Widget that shows a nitpicker view
* \author Christian Prochaska
* \date 2010-08-26
*/
/*
* Copyright (C) 2010-2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef QNITPICKERVIEWWIDGET_H
#define QNITPICKERVIEWWIDGET_H
#include <QtWidgets>
#if 0
#include <qwindowsystem_qws.h>
#endif
#include <nitpicker_view/capability.h>
#include <nitpicker_view/client.h>
class QNitpickerViewWidget : public QWidget
{
Q_OBJECT
private:
QHash<QScrollBar*, bool> _scrollbars;
private slots:
#if 0
void windowEvent(QWSWindow *window,
QWSServer::WindowEvent eventType);
#endif
void valueChanged();
void destroyed(QObject *obj = 0);
protected:
Nitpicker::View_client *vc;
int orig_w;
int orig_h;
int orig_buf_x;
int orig_buf_y;
virtual void showEvent(QShowEvent *event);
virtual void hideEvent(QHideEvent *event);
virtual void paintEvent(QPaintEvent *event);
public:
QNitpickerViewWidget(QWidget *parent =0);
~QNitpickerViewWidget();
void setNitpickerView(Nitpicker::View_capability view, int buf_x, int buf_y, int w, int h);
};
#endif // QNITPICKERVIEWWIDGET_H

@ -0,0 +1,107 @@
/*
* \brief A Qt Widget that can load a plugin application and show its Nitpicker view
* \author Christian Prochaska
* \date 2010-08-26
*/
/*
* Copyright (C) 2010-2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef QPLUGINWIDGET_H
#define QPLUGINWIDGET_H
#include <QtGui>
#include <QtNetwork>
#include <loader_session/connection.h>
#include <qnitpickerviewwidget/qnitpickerviewwidget.h>
enum Plugin_loading_state
{
LOADING,
LOADED,
NETWORK_ERROR,
INFLATE_ERROR,
QUOTA_EXCEEDED_ERROR,
ROM_CONNECTION_FAILED_EXCEPTION,
TIMEOUT_EXCEPTION
};
class QPluginWidget;
/* separate class, because meta object features are not supported in nested classes */
class PluginStarter : public QThread
{
Q_OBJECT
private:
QUrl _plugin_url;
QByteArray _args;
int _max_width;
int _max_height;
Loader::Connection *_pc;
enum Plugin_loading_state _plugin_loading_state;
QString _plugin_loading_error_string;
QNetworkAccessManager *_qnam;
QNetworkReply *_reply;
void _start_plugin(QString &file_name, QByteArray const &file_buf);
protected slots:
void networkReplyFinished();
public:
PluginStarter(QUrl plugin_url, QString &args,
int max_width, int max_height);
void run();
enum Plugin_loading_state plugin_loading_state() { return _plugin_loading_state; }
QString &plugin_loading_error_string() { return _plugin_loading_error_string; }
Nitpicker::View_capability plugin_view(int *w, int *h, int *buf_x, int *buf_y);
signals:
void finished();
};
class QPluginWidget : public QNitpickerViewWidget
{
Q_OBJECT
private:
enum Plugin_loading_state _plugin_loading_state;
QString _plugin_loading_error_string;
PluginStarter *_plugin_starter;
int _max_width;
int _max_height;
static QPluginWidget *_last;
public:
enum { RAM_QUOTA = 5*1024*1024 };
void cleanup();
protected:
virtual void paintEvent(QPaintEvent *event);
protected slots:
void pluginStartFinished();
public:
QPluginWidget(QWidget *parent, QUrl plugin_url, QString &args, int max_width = -1, int max_height = -1);
~QPluginWidget();
};
#endif // QPLUGINWIDGET_H

@ -0,0 +1 @@
../../../src/lib/qt5/qtbase/src/corelib/global

@ -0,0 +1,129 @@
# prevent import file to be included twice, for example via import-qt5_gui.mk
# and import-qt5_core.mk
ifeq ($(QT5_IMPORTED),)
QT5_IMPORTED = true
# identify the qt5 repository by searching for a file that is unique for qt5
QT5_REP_DIR := $(call select_from_repositories,lib/import/import-qt5.inc)
QT5_REP_DIR := $(realpath $(dir $(QT5_REP_DIR))../..)
include $(QT5_REP_DIR)/lib/mk/qt5_version.inc
QT5_INC_DIR := $(QT5_REP_DIR)/src/lib/qt5/qtbase/mkspecs/genode-g++ \
$(QT5_REP_DIR)/src/lib/qt5/qtbase/src/corelib/global \
$(QT5_REP_DIR)/include/qt5 \
$(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include \
INC_DIR += $(QT5_INC_DIR)
# extracted from qt.prf
QT_DEFINES += -DQT_STATICPLUGIN
QT_DEFINES += -D__GENODE__
#
# Prevent inclusion of non-existent 'features.h' from 'bits/os_defines.h'
# header that comes with the Codesourcery ARM tool chain.
#
QT_DEFINES += -D_GLIBCXX_OS_DEFINES
#
# When using the Codesourcery tool chain for ARM, the compiler provides a
# built-in definition for '__linux__', which is obviously wrong when using the
# compiler for Genode. Unfortunately, Webkit tests for this definition in
# 'JavaScriptCore/wtf/Platform.h'. To prevent webkit from drawing wrong
# conclusions, we explicitly undefine '__linux__'.
#
QT_DEFINES += -U__linux__
CC_OPT += $(QT_DEFINES)
SOURCES_FILTERED = $(filter-out $(SOURCES_FILTER_OUT), $(SOURCES))
HEADERS_FILTERED = $(filter-out $(HEADERS_FILTER_OUT), $(HEADERS))
# add sources defined in qmake project files
SRC_CC += $(SOURCES_FILTERED)
# handle moc-headers, resources and ui descriptions
$(SRC_CC:.cpp=.o): $(addprefix ui_,$(FORMS:.ui=.h))
SRC_CC_QT_GENERATED = $(addprefix moc_,$(HEADERS_FILTERED:.h=.cpp)) \
$(addprefix qrc_,$(RESOURCES:.qrc=.cpp))
.SECONDARY: $(SRC_CC_QT_GENERATED)
SRC_CC += $(SRC_CC_QT_GENERATED)
#
# Locations of moc, rcc, and uic binaries
#
# These binaries are created by calling 'make' in the 'tool' directory, which
# should have happened before starting to build QT5 applications.
#
MOC = $(QT5_REP_DIR)/tool/qt5/moc/moc
RCC = $(QT5_REP_DIR)/tool/qt5/rcc/rcc
UIC = $(QT5_REP_DIR)/tool/qt5/uic/uic
$(MOC) $(RCC) $(UIC):
@echo
@echo "Attempting to build QT5 application without having built the QT5 tools."
@echo "Please execute 'make prepare PKG=qt5' in the root of the 'libports' repository."
@echo
@false
# moc rules
moc_%.cpp: %.h $(MOC)
$(MSG_CONVERT)$@
$(VERBOSE) $(MOC) $(QT_DEFINES) $(addprefix -I,$(QT5_INC_DIR)) $< -o $@
%.moc: %.cpp $(MOC)
$(MSG_CONVERT)$@
$(VERBOSE) $(MOC) $(QT_DEFINES) $(addprefix -I,$(QT5_INC_DIR)) $< -o $@
# rcc rule
qrc_%.cpp: %.qrc $(RCC)
$(MSG_CONVERT)$@
$(VERBOSE) $(RCC) -name $(basename $(notdir $<)) $< -o $@
# uic rule
ui_%.h: %.ui $(UIC)
$(MSG_CONVERT)$@
$(VERBOSE) $(UIC) $< -o $@
# add include dirs for QT5-specific genode addons
INC_DIR += $(QT5_REP_DIR)/include/qt5/genode
# add C++ include dirs and libs
#
# We cannot just extend the 'LIBS' variable here because 'import-*.mk' are
# included (in 'base/mk/lib.mk') by iterating through the elements of the
# 'LIBS' variable. Hence, we also need to manually import the stdlib snippet.
#
LIBS += stdcxx
include $(call select_from_repositories,lib/import/import-stdcxx.mk)
# custom main() thread stack size support via main() wrapper
ifeq ($(findstring -DQT_MAIN_STACK_SIZE, $(CC_CXX_OPT)), -DQT_MAIN_STACK_SIZE)
CC_CXX_OPT += -Dmain=qt_main
SRC_CC += qt_main.cc
vpath qt_main.cc $(QT5_REP_DIR)/src/lib/qt5
endif
# set QT_ARCH definition according to the SPECS variable
ifneq ($(filter x86_32,$(SPECS)),)
QT_DEFINES += -DQT_ARCH_I386
endif
ifneq ($(filter x86_64,$(SPECS)),)
QT_DEFINES += -DQT_ARCH_X86_64
endif
ifneq ($(filter arm,$(SPECS)),)
QT_DEFINES += -DQT_ARCH_ARMV6
endif
# remove generated files in clean rules
clean cleanall: clean_rule
clean_rule:
$(VERBOSE)$(RM) -f $(SRC_CC_QT_GENERATED)
$(VERBOSE)$(RM) -f $(SOURCES_FILTERED:.cpp=.moc)
$(VERBOSE)$(RM) -f $(addprefix ui_,$(FORMS:.ui=.h))
endif

@ -0,0 +1,6 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/include/qt5/qtbase \
$(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtGui \

@ -0,0 +1,3 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtNetwork \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtPrintSupport \

@ -0,0 +1,3 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)

@ -0,0 +1,6 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtscript/include \
$(QT5_REP_DIR)/contrib/$(QT5)/qtscript/include/QtScript \

@ -0,0 +1,7 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/qtscriptclassic-1.0_1-opensource/include \
$(QT5_REP_DIR)/contrib/qtscriptclassic-1.0_1-opensource/include/QtScript \
$(QT5_REP_DIR)/contrib/qtscriptclassic-1.0_1-opensource/src \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtSql \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qttools/include/QtUiTools \

@ -0,0 +1,3 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)

@ -0,0 +1,8 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/include/qt5/qtwebkit \
$(QT5_REP_DIR)/contrib/$(QT5)/qtwebkit/include \
$(QT5_REP_DIR)/include/qt5/qtwebkit/QtWebKit \
$(QT5_REP_DIR)/contrib/$(QT5)/qtwebkit/include/QtWebKit \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtwebkit/include/QtWebKitWidgets \

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtWidgets \

@ -0,0 +1,3 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)

@ -0,0 +1,5 @@
IMPORT_QT5_INC=$(call select_from_repositories,lib/import/import-qt5.inc)
include $(IMPORT_QT5_INC)
QT5_INC_DIR += $(QT5_REP_DIR)/contrib/$(QT5)/qtbase/include/QtXml

@ -0,0 +1,21 @@
QT_SOURCES_FILTER_OUT += $(COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT)
QT_SOURCES_FILTERED = $(filter-out $(QT_SOURCES_FILTER_OUT), $(QT_SOURCES))
SRC_CC += $(filter %.cpp, $(QT_SOURCES_FILTERED))
SRC_CC += $(filter %.cc, $(QT_SOURCES_FILTERED))
SRC_C += $(filter %.c, $(QT_SOURCES_FILTERED))
COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTERED = $(filter-out $(COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT), $(COMPILER_MOC_HEADER_MAKE_ALL_FILES))
$(SRC_CC:.cpp=.o): $(COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTERED)
COMPILER_MOC_SOURCE_MAKE_ALL_FILES_FILTERED = $(filter-out $(COMPILER_MOC_SOURCE_MAKE_ALL_FILES_FILTER_OUT), $(COMPILER_MOC_SOURCE_MAKE_ALL_FILES))
$(SRC_CC:.cpp=.o): $(COMPILER_MOC_SOURCE_MAKE_ALL_FILES_FILTERED)
INC_DIR += $(REP_DIR)/src/lib/qt5/qtbase/mkspecs/qws/genode-generic-g++ \
$(REP_DIR)/src/lib/qt5/qtbase/src/corelib/global
INC_DIR += $(addprefix $(REP_DIR)/src/lib/qt5/, $(QT_INCPATH))
INC_DIR += $(addprefix $(REP_DIR)/contrib/$(QT5)/, $(QT_INCPATH))
vpath % $(addprefix $(REP_DIR)/src/lib/qt5/, $(QT_VPATH))
vpath % $(addprefix $(REP_DIR)/contrib/$(QT5)/, $(QT_VPATH))

@ -0,0 +1,37 @@
include $(REP_DIR)/lib/import/import-qt5_core.mk
SHARED_LIB = yes
# use default warning level to avoid noise when compiling contrib code
CC_WARN = -Wno-unused-but-set-variable -Wno-deprecated-declarations
include $(REP_DIR)/lib/mk/qt5_core_generated.inc
# add Genode-specific sources
QT_SOURCES += qprocess_genode.cpp \
qthread_genode.cpp \
qwaitcondition_genode.cpp
# remove unsupported UNIX-specific files
QT_SOURCES_FILTER_OUT = \
qmutex_unix.cpp \
qprocess_unix.cpp \
qthread_unix.cpp \
qwaitcondition_unix.cpp \
qfilesystemwatcher_inotify.cpp \
moc_qfilesystemwatcher_inotify_p.cpp \
# remove unneeded files to prevent moc warnings
COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT = \
moc_qsharedmemory.cpp \
moc_qfilesystemwatcher_inotify_p.cpp \
include $(REP_DIR)/lib/mk/qt5.inc
INC_DIR += $(REP_DIR)/include/qt5/qtbase/QtCore/private \
$(REP_DIR)/src/lib/qt5/qtbase/src/corelib/thread \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION) \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION)/QtCore \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION)/QtCore/private
LIBS += launchpad zlib icu libc libm alarm libc_lock_pipe

@ -0,0 +1,365 @@
QT_DEFINES += -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_USE_ICU -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -DQT_NO_DEBUG
QT_INCPATH += \
qtbase/include \
qtbase/include/QtCore \
qtbase/include/QtCore/5.1.0 \
qtbase/include/QtCore/5.1.0/QtCore \
qtbase/mkspecs/genode-g++ \
qtbase/src/3rdparty/harfbuzz/src \
qtbase/src/3rdparty/md4 \
qtbase/src/3rdparty/md5 \
qtbase/src/3rdparty/pcre \
qtbase/src/3rdparty/sha3 \
qtbase/src/corelib \
QT_SOURCES += \
qabstractanimation.cpp \
qvariantanimation.cpp \
qpropertyanimation.cpp \
qanimationgroup.cpp \
qsequentialanimationgroup.cpp \
qparallelanimationgroup.cpp \
qpauseanimation.cpp \
qatomic_unix.cpp \
qglobal.cpp \
qglobalstatic.cpp \
qlibraryinfo.cpp \
qmalloc.cpp \
qnumeric.cpp \
qlogging.cpp \
qatomic.cpp \
qexception.cpp \
qresultstore.cpp \
qfutureinterface.cpp \
qfuturewatcher.cpp \
qmutex.cpp \
qreadwritelock.cpp \
qrunnable.cpp \
qmutexpool.cpp \
qsemaphore.cpp \
qthread.cpp \
qthreadpool.cpp \
qthreadstorage.cpp \
qthread_unix.cpp \
qwaitcondition_unix.cpp \
qarraydata.cpp \
qbitarray.cpp \
qbytearray.cpp \
qbytearraymatcher.cpp \
qcollator.cpp \
qcryptographichash.cpp \
qdatetime.cpp \
qeasingcurve.cpp \
qelapsedtimer.cpp \
qfreelist.cpp \
qhash.cpp \
qline.cpp \
qlinkedlist.cpp \
qlist.cpp \
qlocale.cpp \
qlocale_tools.cpp \
qpoint.cpp \
qmap.cpp \
qmargins.cpp \
qmessageauthenticationcode.cpp \
qcontiguouscache.cpp \
qrect.cpp \
qregexp.cpp \
qregularexpression.cpp \
qrefcount.cpp \
qshareddata.cpp \
qsharedpointer.cpp \
qsimd.cpp \
qsize.cpp \
qstring.cpp \
qstringbuilder.cpp \
qstringlist.cpp \
qtextboundaryfinder.cpp \
qtimeline.cpp \
qunicodetools.cpp \
qvector.cpp \
qvsnprintf.cpp \
qelapsedtimer_unix.cpp \
qlocale_unix.cpp \
qlocale_icu.cpp \
pcre16_byte_order.c \
pcre16_chartables.c \
pcre16_compile.c \
pcre16_config.c \
pcre16_dfa_exec.c \
pcre16_exec.c \
pcre16_fullinfo.c \
pcre16_get.c \
pcre16_globals.c \
pcre16_jit_compile.c \
pcre16_maketables.c \
pcre16_newline.c \
pcre16_ord2utf16.c \
pcre16_refcount.c \
pcre16_string_utils.c \
pcre16_study.c \
pcre16_tables.c \
pcre16_ucd.c \
pcre16_utf16_utils.c \
pcre16_valid_utf16.c \
pcre16_version.c \
pcre16_xclass.c \
harfbuzz-buffer.c \
harfbuzz-gdef.c \
harfbuzz-gsub.c \
harfbuzz-gpos.c \
harfbuzz-impl.c \
harfbuzz-open.c \
harfbuzz-stream.c \
harfbuzz-shaper-all.cpp \
qharfbuzz.cpp \
qabstractfileengine.cpp \
qbuffer.cpp \
qdatastream.cpp \
qdataurl.cpp \
qtldurl.cpp \
qdebug.cpp \
qdir.cpp \
qdiriterator.cpp \
qfile.cpp \
qfiledevice.cpp \
qfileinfo.cpp \
qipaddress.cpp \
qiodevice.cpp \
qlockfile.cpp \
qnoncontiguousbytedevice.cpp \
qprocess.cpp \
qtextstream.cpp \
qtemporarydir.cpp \
qtemporaryfile.cpp \
qresource.cpp \
qresource_iterator.cpp \
qsavefile.cpp \
qstandardpaths.cpp \
qurl.cpp \
qurlidna.cpp \
qurlquery.cpp \
qurlrecode.cpp \
qsettings.cpp \
qfsfileengine.cpp \
qfsfileengine_iterator.cpp \
qfilesystemwatcher.cpp \
qfilesystemwatcher_polling.cpp \
qfilesystementry.cpp \
qfilesystemengine.cpp \
qfsfileengine_unix.cpp \
qfilesystemengine_unix.cpp \
qlockfile_unix.cpp \
qprocess_unix.cpp \
qfilesystemiterator_unix.cpp \
qstandardpaths_unix.cpp \
qfilesystemwatcher_inotify.cpp \
qabstractitemmodel.cpp \
qabstractproxymodel.cpp \
qitemselectionmodel.cpp \
qidentityproxymodel.cpp \
qsortfilterproxymodel.cpp \
qstringlistmodel.cpp \
qjson.cpp \
qjsondocument.cpp \
qjsonobject.cpp \
qjsonarray.cpp \
qjsonvalue.cpp \
qjsonwriter.cpp \
qjsonparser.cpp \
qpluginloader.cpp \
qfactoryloader.cpp \
quuid.cpp \
qlibrary.cpp \
qelfparser_p.cpp \
qlibrary_unix.cpp \
qabstracteventdispatcher.cpp \
qabstractnativeeventfilter.cpp \
qbasictimer.cpp \
qeventloop.cpp \
qcoreapplication.cpp \
qcoreevent.cpp \
qmetaobject.cpp \
qmetatype.cpp \
qmetaobjectbuilder.cpp \
qmimedata.cpp \
qobject.cpp \
qobjectcleanuphandler.cpp \
qsignalmapper.cpp \
qsocketnotifier.cpp \
qtimer.cpp \
qtranslator.cpp \
qvariant.cpp \
qcoreglobaldata.cpp \
qsharedmemory.cpp \
qsystemsemaphore.cpp \
qpointer.cpp \
qmath.cpp \
qsystemerror.cpp \
qcore_unix.cpp \
qcrashhandler.cpp \
qeventdispatcher_unix.cpp \
qtimerinfo_unix.cpp \
qsharedmemory_unix.cpp \
qsystemsemaphore_unix.cpp \
qisciicodec.cpp \
qlatincodec.cpp \
qtextcodec.cpp \
qtsciicodec.cpp \
qutfcodec.cpp \
qicucodec.cpp \
qstatemachine.cpp \
qabstractstate.cpp \
qstate.cpp \
qfinalstate.cpp \
qhistorystate.cpp \
qabstracttransition.cpp \
qsignaltransition.cpp \
qeventtransition.cpp \
qmimedatabase.cpp \
qmimetype.cpp \
qmimemagicrulematcher.cpp \
qmimetypeparser.cpp \
qmimemagicrule.cpp \
qmimeglobpattern.cpp \
qmimeprovider.cpp \
qxmlstream.cpp \
qxmlutils.cpp \
qrc_mimetypes.cpp \
moc_qabstractanimation_p.cpp \
moc_qnamespace.cpp \
moc_qthread.cpp \
moc_qthreadpool.cpp \
moc_qfuturewatcher.cpp \
moc_qeasingcurve.cpp \
moc_qlocale.cpp \
moc_qtimeline.cpp \
moc_qfile.cpp \
moc_qfiledevice.cpp \
moc_qiodevice.cpp \
moc_qnoncontiguousbytedevice_p.cpp \
moc_qtextstream_p.cpp \
moc_qtemporaryfile.cpp \
moc_qsavefile.cpp \
moc_qsettings.cpp \
moc_qfilesystemwatcher_p.cpp \
moc_qfilesystemwatcher_polling_p.cpp \
moc_qfilesystemwatcher_inotify_p.cpp \
moc_qabstractitemmodel.cpp \
moc_qstringlistmodel.cpp \
moc_qpluginloader.cpp \
moc_qlibrary.cpp \
moc_qfactoryloader_p.cpp \
moc_qabstracteventdispatcher.cpp \
moc_qeventloop.cpp \
moc_qcoreapplication.cpp \
moc_qcoreevent.cpp \
moc_qmimedata.cpp \
moc_qsocketnotifier.cpp \
moc_qtimer.cpp \
moc_qtranslator.cpp \
moc_qobjectcleanuphandler.cpp \
moc_qsharedmemory.cpp \
moc_qeventdispatcher_unix_p.cpp \
moc_qabstractstate.cpp \
moc_qstate.cpp \
moc_qfinalstate.cpp \
moc_qhistorystate.cpp \
moc_qabstracttransition.cpp \
moc_qsignaltransition.cpp \
moc_qeventtransition.cpp
QT_VPATH += \
qtbase/src/3rdparty/harfbuzz/src \
qtbase/src/3rdparty/pcre \
qtbase/src/corelib/animation \
qtbase/src/corelib/arch \
qtbase/src/corelib/codecs \
qtbase/src/corelib/global \
qtbase/src/corelib/io \
qtbase/src/corelib/itemmodels \
qtbase/src/corelib/json \
qtbase/src/corelib/kernel \
qtbase/src/corelib/mimetypes \
qtbase/src/corelib/plugin \
qtbase/src/corelib/statemachine \
qtbase/src/corelib/thread \
qtbase/src/corelib/tools \
qtbase/src/corelib/xml \
# some source files need to be generated by moc from other source/header files before
# they get #included again by the original source file in the compiling stage
# source files generated from existing header files ('moc_%.cpp: %.h' rule in import-qt5.inc)
# extracted from 'compiler_moc_header_make_all' target
COMPILER_MOC_HEADER_MAKE_ALL_FILES = \
moc_qabstractanimation.cpp \
moc_qabstractanimation_p.cpp \
moc_qvariantanimation.cpp \
moc_qpropertyanimation.cpp \
moc_qanimationgroup.cpp \
moc_qsequentialanimationgroup.cpp \
moc_qparallelanimationgroup.cpp \
moc_qpauseanimation.cpp \
moc_qnamespace.cpp \
moc_qthread.cpp \
moc_qthreadpool.cpp \
moc_qfuturewatcher.cpp \
moc_qeasingcurve.cpp \
moc_qlocale.cpp \
moc_qtimeline.cpp \
moc_qbuffer.cpp \
moc_qfile.cpp \
moc_qfiledevice.cpp \
moc_qiodevice.cpp \
moc_qnoncontiguousbytedevice_p.cpp \
moc_qprocess.cpp \
moc_qtextstream_p.cpp \
moc_qtemporaryfile.cpp \
moc_qsavefile.cpp \
moc_qsettings.cpp \
moc_qfilesystemwatcher.cpp \
moc_qfilesystemwatcher_p.cpp \
moc_qfilesystemwatcher_polling_p.cpp \
moc_qfilesystemwatcher_inotify_p.cpp \
moc_qabstractitemmodel.cpp \
moc_qabstractproxymodel.cpp \
moc_qitemselectionmodel.cpp \
moc_qidentityproxymodel.cpp \
moc_qsortfilterproxymodel.cpp \
moc_qstringlistmodel.cpp \
moc_qpluginloader.cpp \
moc_qlibrary.cpp \
moc_qfactoryloader_p.cpp \
moc_qabstracteventdispatcher.cpp \
moc_qeventloop.cpp \
moc_qcoreapplication.cpp \
moc_qcoreevent.cpp \
moc_qmimedata.cpp \
moc_qobject.cpp \
moc_qsignalmapper.cpp \
moc_qsocketnotifier.cpp \
moc_qtimer.cpp \
moc_qtranslator.cpp \
moc_qobjectcleanuphandler.cpp \
moc_qsharedmemory.cpp \
moc_qeventdispatcher_unix_p.cpp \
moc_qstatemachine.cpp \
moc_qabstractstate.cpp \
moc_qstate.cpp \
moc_qfinalstate.cpp \
moc_qhistorystate.cpp \
moc_qabstracttransition.cpp \
moc_qsignaltransition.cpp \
moc_qeventtransition.cpp
# source files generated from existing source files ('%.moc: %.cpp' rule in import-qt5.inc)
# extracted from 'compiler_moc_source_make_all' rule
COMPILER_MOC_SOURCE_MAKE_ALL_FILES = \
qprocess_unix.moc \
qtimer.moc \
qstatemachine.moc

@ -0,0 +1,7 @@
SHARED_LIB = yes
SRC_CC = qrc_dejavusans.cpp
LIBS = qt5_core
vpath % $(REP_DIR)/src/lib/qt5/dejavusans

@ -0,0 +1,41 @@
include $(REP_DIR)/lib/import/import-qt5_gui.mk
SHARED_LIB = yes
# use default warning level to avoid noise when compiling contrib code
CC_WARN = -Wno-unused-but-set-variable -Wno-deprecated-declarations
include $(REP_DIR)/lib/mk/qt5_gui_generated.inc
# remove unneeded files to prevent moc warnings
COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT = \
moc_qsessionmanager.cpp \
moc_qsound.cpp \
moc_qsound_p.cpp \
moc_qmenudata.cpp \
moc_qprintpreviewwidget.cpp \
moc_qabstractprintdialog.cpp \
moc_qabstractpagesetupdialog.cpp \
moc_qpagesetupdialog.cpp \
moc_qprintdialog.cpp \
moc_qprintpreviewdialog.cpp \
moc_qpagesetupdialog_unix_p.cpp
COMPILER_MOC_SOURCE_MAKE_ALL_FILES_FILTER_OUT = \
qprintpreviewwidget.moc \
qprintdialog_unix.moc \
qprintpreviewdialog.moc
# UI headers
qfiledialog.o: ui_qfiledialog.h
include $(REP_DIR)/lib/mk/qt5.inc
INC_DIR += $(REP_DIR)/include/qt5/qtbase/QtGui/private \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtGui/$(QT_VERSION) \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtGui/$(QT_VERSION)/QtGui \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtGui/$(QT_VERSION)/QtGui/private \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION) \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION)/QtCore
LIBS += qt5_core jpeg zlib libpng

@ -0,0 +1,281 @@
QT_DEFINES += -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB
QT_INCPATH += \
qtbase/include \
qtbase/include/QtCore \
qtbase/include/QtCore/5.1.0 \
qtbase/include/QtCore/5.1.0/QtCore \
qtbase/include/QtGui \
qtbase/include/QtGui/5.1.0 \
qtbase/include/QtGui/5.1.0/QtGui \
qtbase/mkspecs/genode-g++ \
qtbase/src/gui \
qtbase/src/gui/image \
QT_SOURCES += \
qclipboard_qpa.cpp \
qcursor_qpa.cpp \
qgenericpluginfactory.cpp \
qgenericplugin.cpp \
qwindowsysteminterface.cpp \
qplatforminputcontextfactory.cpp \
qplatforminputcontextplugin.cpp \
qplatforminputcontext.cpp \
qplatformintegration.cpp \
qplatformdrag.cpp \
qplatformscreen.cpp \
qplatformintegrationfactory.cpp \
qplatformintegrationplugin.cpp \
qplatformtheme.cpp \
qplatformthemefactory.cpp \
qplatformthemeplugin.cpp \
qplatformwindow.cpp \
qplatformoffscreensurface.cpp \
qplatformcursor.cpp \
qplatformclipboard.cpp \
qplatformnativeinterface.cpp \
qsessionmanager.cpp \
qshapedpixmapdndwindow.cpp \
qsimpledrag.cpp \
qsurfaceformat.cpp \
qguiapplication.cpp \
qwindow.cpp \
qoffscreensurface.cpp \
qplatformsurface.cpp \
qsurface.cpp \
qclipboard.cpp \
qcursor.cpp \
qdrag.cpp \
qdnd.cpp \
qevent.cpp \
qinputmethod.cpp \
qkeysequence.cpp \
qkeymapper.cpp \
qkeymapper_qpa.cpp \
qpalette.cpp \
qguivariant.cpp \
qscreen.cpp \
qshortcutmap.cpp \
qstylehints.cpp \
qtouchdevice.cpp \
qplatformsharedgraphicscache.cpp \
qplatformdialoghelper.cpp \
qplatformservices.cpp \
qplatformscreenpageflipper.cpp \
qplatformsystemtrayicon_qpa.cpp \
qbitmap.cpp \
qimage.cpp \
qimageiohandler.cpp \
qimagereader.cpp \
qimagewriter.cpp \
qpaintengine_pic.cpp \
qpicture.cpp \
qpictureformatplugin.cpp \
qpixmap.cpp \
qpixmapcache.cpp \
qplatformpixmap.cpp \
qmovie.cpp \
qpixmap_raster.cpp \
qpixmap_blitter.cpp \
qnativeimage.cpp \
qimagepixmapcleanuphooks.cpp \
qicon.cpp \
qiconloader.cpp \
qiconengine.cpp \
qiconengineplugin.cpp \
qbmphandler.cpp \
qppmhandler.cpp \
qxbmhandler.cpp \
qxpmhandler.cpp \
qpnghandler.cpp \
qjpeghandler.cpp \
qgifhandler.cpp \
qfont.cpp \
qfontengine.cpp \
qfontsubset.cpp \
qfontmetrics.cpp \
qfontdatabase.cpp \
qtextengine.cpp \
qtextlayout.cpp \
qtextformat.cpp \
qtextobject.cpp \
qtextoption.cpp \
qfragmentmap.cpp \
qtextdocument.cpp \
qtextdocument_p.cpp \
qtexthtmlparser.cpp \
qabstracttextdocumentlayout.cpp \
qtextdocumentlayout.cpp \
qtextcursor.cpp \
qtextdocumentfragment.cpp \
qtextimagehandler.cpp \
qtexttable.cpp \
qtextlist.cpp \
qtextdocumentwriter.cpp \
qsyntaxhighlighter.cpp \
qcssparser.cpp \
qzip.cpp \
qtextodfwriter.cpp \
qstatictext.cpp \
qrawfont.cpp \
qglyphrun.cpp \
qdistancefield.cpp \
qfont_qpa.cpp \
qfontengine_qpa.cpp \
qplatformfontdatabase.cpp \
qrawfont_qpa.cpp \
qbackingstore.cpp \
qbezier.cpp \
qblendfunctions.cpp \
qblittable.cpp \
qbrush.cpp \
qcolor.cpp \
qcolor_p.cpp \
qcosmeticstroker.cpp \
qcssutil.cpp \
qdrawhelper.cpp \
qemulationpaintengine.cpp \
qgammatables.cpp \
qgrayraster.c \
qimagescale.cpp \
qmatrix.cpp \
qmemrotate.cpp \
qoutlinemapper.cpp \
qpagedpaintdevice.cpp \
qpaintdevice.cpp \
qpaintengine.cpp \
qpaintengineex.cpp \
qpaintengine_blitter.cpp \
qpaintengine_raster.cpp \
qpainter.cpp \
qpainterpath.cpp \
qpathclipper.cpp \
qpdf.cpp \
qpdfwriter.cpp \
qpen.cpp \
qpolygon.cpp \
qrasterizer.cpp \
qregion.cpp \
qstroker.cpp \
qtextureglyphcache.cpp \
qtransform.cpp \
qplatformbackingstore.cpp \
qpaintbuffer.cpp \
qpathsimplifier.cpp \
qdesktopservices.cpp \
qvalidator.cpp \
qgenericmatrix.cpp \
qmatrix4x4.cpp \
qquaternion.cpp \
qvector2d.cpp \
qvector3d.cpp \
qvector4d.cpp \
qguivariantanimation.cpp \
qstandarditemmodel.cpp \
moc_qgenericplugin.cpp \
moc_qplatforminputcontext.cpp \
moc_qplatforminputcontextplugin_p.cpp \
moc_qplatformintegrationplugin.cpp \
moc_qplatformthemeplugin.cpp \
moc_qplatformnativeinterface.cpp \
moc_qplatformmenu.cpp \
moc_qshapedpixmapdndwindow_p.cpp \
moc_qoffscreensurface.cpp \
moc_qclipboard.cpp \
moc_qdrag.cpp \
moc_qdnd_p.cpp \
moc_qkeymapper_p.cpp \
moc_qpalette.cpp \
moc_qsessionmanager.cpp \
moc_qscreen.cpp \
moc_qstylehints.cpp \
moc_qplatformsharedgraphicscache.cpp \
moc_qplatformdialoghelper.cpp \
moc_qplatformscreenpageflipper.cpp \
moc_qimageiohandler.cpp \
moc_qpictureformatplugin.cpp \
moc_qiconengineplugin.cpp \
moc_qfont.cpp \
moc_qfontdatabase.cpp \
moc_qfontengine_p.cpp \
moc_qtextformat.cpp \
moc_qtextobject.cpp \
moc_qtextdocument.cpp \
moc_qtextimagehandler_p.cpp \
moc_qtexttable.cpp \
moc_qtextlist.cpp \
moc_qbrush.cpp \
moc_qpainter.cpp \
moc_qpdfwriter.cpp \
moc_qvalidator.cpp
QT_VPATH += \
qtbase/src/gui/animation \
qtbase/src/gui/image \
qtbase/src/gui/itemmodels \
qtbase/src/gui/kernel \
qtbase/src/gui/math3d \
qtbase/src/gui/painting \
qtbase/src/gui/text \
qtbase/src/gui/util \
# some source files need to be generated by moc from other source/header files before
# they get #included again by the original source file in the compiling stage
# source files generated from existing header files ('moc_%.cpp: %.h' rule in import-qt5.inc)
# extracted from 'compiler_moc_header_make_all' target
COMPILER_MOC_HEADER_MAKE_ALL_FILES = \
moc_qgenericplugin.cpp \
moc_qplatforminputcontext.cpp \
moc_qplatforminputcontextplugin_p.cpp \
moc_qplatformintegrationplugin.cpp \
moc_qplatformthemeplugin.cpp \
moc_qplatformnativeinterface.cpp \
moc_qplatformmenu.cpp \
moc_qshapedpixmapdndwindow_p.cpp \
moc_qguiapplication.cpp \
moc_qwindow.cpp \
moc_qoffscreensurface.cpp \
moc_qclipboard.cpp \
moc_qdrag.cpp \
moc_qdnd_p.cpp \
moc_qinputmethod.cpp \
moc_qkeymapper_p.cpp \
moc_qpalette.cpp \
moc_qsessionmanager.cpp \
moc_qscreen.cpp \
moc_qstylehints.cpp \
moc_qplatformsharedgraphicscache.cpp \
moc_qplatformdialoghelper.cpp \
moc_qplatformscreenpageflipper.cpp \
moc_qplatformsystemtrayicon.cpp \
moc_qimageiohandler.cpp \
moc_qmovie.cpp \
moc_qpictureformatplugin.cpp \
moc_qiconengineplugin.cpp \
moc_qfont.cpp \
moc_qfontdatabase.cpp \
moc_qfontengine_p.cpp \
moc_qtextformat.cpp \
moc_qtextobject.cpp \
moc_qtextdocument.cpp \
moc_qabstracttextdocumentlayout.cpp \
moc_qtextdocumentlayout_p.cpp \
moc_qtextimagehandler_p.cpp \
moc_qtexttable.cpp \
moc_qtextlist.cpp \
moc_qsyntaxhighlighter.cpp \
moc_qbrush.cpp \
moc_qpainter.cpp \
moc_qpdfwriter.cpp \
moc_qvalidator.cpp \
moc_qstandarditemmodel.cpp
# source files generated from existing source files ('%.moc: %.cpp' rule in import-qt5.inc)
# extracted from 'compiler_moc_source_make_all' rule
COMPILER_MOC_SOURCE_MAKE_ALL_FILES = \
qpixmapcache.moc \
qdesktopservices.moc

@ -0,0 +1,21 @@
include $(REP_DIR)/lib/import/import-qt5_jscore.mk
SHARED_LIB = yes
# additional defines for the Genode version
CC_OPT += -DSQLITE_NO_SYNC=1 -DSQLITE_THREADSAFE=0
# enable C++ functions that use C99 math functions (disabled by default in the Genode tool chain)
CC_CXX_OPT += -D_GLIBCXX_USE_C99_MATH
# use default warning level to avoid noise when compiling contrib code
CC_WARN =
include $(REP_DIR)/lib/mk/qt5_jscore_generated.inc
QT_INCPATH += qtwebkit/Source/JavaScriptCore/generated
include $(REP_DIR)/lib/mk/qt5.inc
LIBS += qt5_network qt5_core icu pthread libc libm

@ -0,0 +1,319 @@
QT_DEFINES += -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DBUILDING_QT__=1 -DNDEBUG -DENABLE_3D_RENDERING=1 -DENABLE_BLOB=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_CSS_BOX_DECORATION_BREAK=1 -DENABLE_CSS_COMPOSITING=1 -DENABLE_CSS_EXCLUSIONS=1 -DENABLE_CSS_FILTERS=1 -DENABLE_CSS_IMAGE_SET=1 -DENABLE_CSS_REGIONS=1 -DENABLE_CSS_STICKY_POSITION=1 -DENABLE_DATALIST_ELEMENT=1 -DENABLE_DETAILS_ELEMENT=1 -DENABLE_FAST_MOBILE_SCROLLING=1 -DENABLE_FILTERS=1 -DENABLE_FTPDIR=1 -DENABLE_GESTURE_EVENTS=1 -DENABLE_ICONDATABASE=1 -DENABLE_IFRAME_SEAMLESS=1 -DENABLE_INPUT_TYPE_COLOR=1 -DENABLE_INSPECTOR=1 -DENABLE_INSPECTOR_SERVER=1 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_LEGACY_NOTIFICATIONS=1 -DENABLE_LEGACY_VIEWPORT_ADAPTION=1 -DENABLE_LEGACY_VENDOR_PREFIXES=1 -DENABLE_LINK_PREFETCH=1 -DENABLE_METER_ELEMENT=1 -DENABLE_MHTML=1 -DENABLE_MUTATION_OBSERVERS=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_PAGE_VISIBILITY_API=1 -DENABLE_PROGRESS_ELEMENT=1 -DENABLE_RESOLUTION_MEDIA_QUERY=1 -DENABLE_REQUEST_ANIMATION_FRAME=1 -DENABLE_SHARED_WORKERS=1 -DENABLE_SMOOTH_SCROLLING=1 -DENABLE_SQL_DATABASE=1 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_TOUCH_ADJUSTMENT=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_WEB_TIMING=1 -DENABLE_WORKERS=1 -DENABLE_XHR_TIMEOUT=1 -DWTF_USE_TILED_BACKING_STORE=1 -DHAVE_QTPRINTSUPPORT=1 -DHAVE_QSTYLE=1 -DHAVE_QTTESTLIB=1 -DWTF_USE_LIBJPEG=1 -DWTF_USE_LIBPNG=1 -DPLUGIN_ARCHITECTURE_UNSUPPORTED=1 -DENABLE_TOUCH_SLIDER=1 -DENABLE_ACCELERATED_2D_CANVAS=0 -DENABLE_ANIMATION_API=0 -DENABLE_BATTERY_STATUS=0 -DENABLE_CSP_NEXT=0 -DENABLE_CSS_GRID_LAYOUT=0 -DENABLE_CSS_HIERARCHIES=0 -DENABLE_CSS_IMAGE_ORIENTATION=0 -DENABLE_CSS_IMAGE_RESOLUTION=0 -DENABLE_CSS_SHADERS=0 -DENABLE_CSS_VARIABLES=0 -DENABLE_CSS3_BACKGROUND=0 -DENABLE_CSS3_CONDITIONAL_RULES=0 -DENABLE_CSS3_TEXT=0 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_DATAGRID=0 -DENABLE_DATA_TRANSFER_ITEMS=0 -DENABLE_DEVICE_ORIENTATION=0 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_DOWNLOAD_ATTRIBUTE=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_FULLSCREEN_API=0 -DENABLE_GAMEPAD=0 -DENABLE_GEOLOCATION=0 -DENABLE_HIGH_DPI_CANVAS=0 -DENABLE_INDEXED_DATABASE=0 -DENABLE_INPUT_SPEECH=0 -DENABLE_INPUT_TYPE_DATE=0 -DENABLE_INPUT_TYPE_DATETIME=0 -DENABLE_INPUT_TYPE_DATETIMELOCAL=0 -DENABLE_INPUT_TYPE_MONTH=0 -DENABLE_INPUT_TYPE_TIME=0 -DENABLE_INPUT_TYPE_WEEK=0 -DENABLE_LEGACY_CSS_VENDOR_PREFIXES=0 -DENABLE_LINK_PRERENDER=0 -DENABLE_MATHML=0 -DENABLE_MEDIA_SOURCE=0 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_MEDIA_STREAM=0 -DENABLE_MICRODATA=0 -DENABLE_NAVIGATOR_CONTENT_UTILS=0 -DENABLE_NETSCAPE_PLUGIN_API=0 -DENABLE_NETWORK_INFO=0 -DENABLE_ORIENTATION_EVENTS=0 -DENABLE_PROXIMITY_EVENTS=0 -DENABLE_QUOTA=0 -DENABLE_SCRIPTED_SPEECH=0 -DENABLE_SHADOW_DOM=0 -DENABLE_STYLE_SCOPED=0 -DENABLE_SVG_DOM_OBJC_BINDINGS=0 -DENABLE_TEXT_AUTOSIZING=0 -DENABLE_TEXT_NOTIFICATIONS_ONLY=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_VIBRATION=0 -DENABLE_VIDEO=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_WEBGL=0 -DENABLE_WEB_AUDIO=0 -DENABLE_XSLT=0 -DBUILDING_JavaScriptCore -DBUILDING_WEBKIT -DQT_ASCII_CAST_WARNINGS -DSTATICALLY_LINKED_WITH_WTF -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB
QT_INCPATH += \
qtbase/include \
qtbase/include/QtCore \
qtbase/mkspecs/genode-g++ \
qtscript/include \
qtscript/include/QtScript \
qtwebkit/Source \
qtwebkit/Source/JavaScriptCore \
qtwebkit/Source/JavaScriptCore/API \
qtwebkit/Source/JavaScriptCore/assembler \
qtwebkit/Source/JavaScriptCore/bytecode \
qtwebkit/Source/JavaScriptCore/bytecompiler \
qtwebkit/Source/JavaScriptCore/debugger \
qtwebkit/Source/JavaScriptCore/dfg \
qtwebkit/Source/JavaScriptCore/disassembler \
qtwebkit/Source/JavaScriptCore/ForwardingHeaders \
qtwebkit/Source/JavaScriptCore/heap \
qtwebkit/Source/JavaScriptCore/interpreter \
qtwebkit/Source/JavaScriptCore/jit \
qtwebkit/Source/JavaScriptCore/llint \
qtwebkit/Source/JavaScriptCore/parser \
qtwebkit/Source/JavaScriptCore/profiler \
qtwebkit/Source/JavaScriptCore/runtime \
qtwebkit/Source/JavaScriptCore/tools \
qtwebkit/Source/JavaScriptCore/yarr \
qtwebkit/Source/WTF \
QT_SOURCES += \
YarrInterpreter.cpp \
YarrPattern.cpp \
YarrSyntaxChecker.cpp \
YarrCanonicalizeUCS2.cpp \
JSBase.cpp \
JSCallbackConstructor.cpp \
JSCallbackFunction.cpp \
JSCallbackObject.cpp \
JSClassRef.cpp \
JSContextRef.cpp \
JSObjectRef.cpp \
JSStringRef.cpp \
JSValueRef.cpp \
JSWeakObjectMapRefPrivate.cpp \
OpaqueJSString.cpp \
ARMAssembler.cpp \
ARMv7Assembler.cpp \
LinkBuffer.cpp \
MacroAssembler.cpp \
MacroAssemblerARM.cpp \
MacroAssemblerSH4.cpp \
ArrayAllocationProfile.cpp \
ArrayProfile.cpp \
CallLinkInfo.cpp \
CallLinkStatus.cpp \
CodeBlock.cpp \
CodeBlockHash.cpp \
CodeOrigin.cpp \
CodeType.cpp \
DFGExitProfile.cpp \
ExecutionCounter.cpp \
GetByIdStatus.cpp \
JumpTable.cpp \
LazyOperandValueProfile.cpp \
MethodOfGettingAValueProfile.cpp \
Opcode.cpp \
PolymorphicPutByIdList.cpp \
PutByIdStatus.cpp \
ResolveGlobalStatus.cpp \
SamplingTool.cpp \
SpecialPointer.cpp \
SpeculatedType.cpp \
StructureStubClearingWatchpoint.cpp \
StructureStubInfo.cpp \
UnlinkedCodeBlock.cpp \
Watchpoint.cpp \
BytecodeGenerator.cpp \
NodesCodegen.cpp \
CopiedSpace.cpp \
CopyVisitor.cpp \
ConservativeRoots.cpp \
DFGCodeBlocks.cpp \
WeakSet.cpp \
WeakHandleOwner.cpp \
WeakBlock.cpp \
HandleSet.cpp \
HandleStack.cpp \
BlockAllocator.cpp \
GCThreadSharedData.cpp \
GCThread.cpp \
Heap.cpp \
HeapStatistics.cpp \
HeapTimer.cpp \
IncrementalSweeper.cpp \
JITStubRoutineSet.cpp \
MachineStackMarker.cpp \
MarkStack.cpp \
MarkedAllocator.cpp \
MarkedBlock.cpp \
MarkedSpace.cpp \
SlotVisitor.cpp \
VTableSpectrum.cpp \
WriteBarrierSupport.cpp \
DebuggerActivation.cpp \
DebuggerCallFrame.cpp \
Debugger.cpp \
DFGAbstractState.cpp \
DFGArgumentsSimplificationPhase.cpp \
DFGArrayMode.cpp \
DFGAssemblyHelpers.cpp \
DFGByteCodeParser.cpp \
DFGCapabilities.cpp \
DFGCFAPhase.cpp \
DFGCFGSimplificationPhase.cpp \
DFGConstantFoldingPhase.cpp \
DFGCorrectableJumpPoint.cpp \
DFGCSEPhase.cpp \
DFGDisassembler.cpp \
DFGDominators.cpp \
DFGDriver.cpp \
DFGFixupPhase.cpp \
DFGGraph.cpp \
DFGJITCompiler.cpp \
DFGMinifiedNode.cpp \
DFGNodeFlags.cpp \
DFGOperations.cpp \
DFGOSREntry.cpp \
DFGOSRExit.cpp \
DFGOSRExitCompiler.cpp \
DFGOSRExitCompiler64.cpp \
DFGOSRExitCompiler32_64.cpp \
DFGPhase.cpp \
DFGPredictionPropagationPhase.cpp \
DFGRepatch.cpp \
DFGSpeculativeJIT.cpp \
DFGSpeculativeJIT32_64.cpp \
DFGSpeculativeJIT64.cpp \
DFGStructureCheckHoistingPhase.cpp \
DFGThunks.cpp \
DFGValueSource.cpp \
DFGVariableAccessDataDump.cpp \
DFGVariableEvent.cpp \
DFGVariableEventStream.cpp \
DFGValidate.cpp \
DFGVirtualRegisterAllocationPhase.cpp \
Disassembler.cpp \
AbstractPC.cpp \
CallFrame.cpp \
Interpreter.cpp \
JSStack.cpp \
ClosureCallStubRoutine.cpp \
ExecutableAllocatorFixedVMPool.cpp \
ExecutableAllocator.cpp \
HostCallReturnValue.cpp \
GCAwareJITStubRoutine.cpp \
JITArithmetic.cpp \
JITArithmetic32_64.cpp \
JITCall.cpp \
JITCall32_64.cpp \
JITCode.cpp \
JIT.cpp \
JITDisassembler.cpp \
JITExceptions.cpp \
JITOpcodes.cpp \
JITOpcodes32_64.cpp \
JITPropertyAccess.cpp \
JITPropertyAccess32_64.cpp \
JITStubRoutine.cpp \
JITStubs.cpp \
JumpReplacementWatchpoint.cpp \
ThunkGenerators.cpp \
LLIntCLoop.cpp \
LLIntData.cpp \
LLIntEntrypoints.cpp \
LLIntExceptions.cpp \
LLIntSlowPaths.cpp \
LLIntThunks.cpp \
LowLevelInterpreter.cpp \
Lexer.cpp \
Nodes.cpp \
ParserArena.cpp \
Parser.cpp \
SourceProviderCache.cpp \
Profile.cpp \
ProfileGenerator.cpp \
ProfileNode.cpp \
Profiler.cpp \
ArgList.cpp \
Arguments.cpp \
ArrayConstructor.cpp \
ArrayPrototype.cpp \
BooleanConstructor.cpp \
BooleanObject.cpp \
BooleanPrototype.cpp \
CallData.cpp \
CodeCache.cpp \
CodeSpecializationKind.cpp \
CommonIdentifiers.cpp \
Completion.cpp \
ConstructData.cpp \
DateConstructor.cpp \
DateConversion.cpp \
DateInstance.cpp \
DatePrototype.cpp \
ErrorConstructor.cpp \
Error.cpp \
ErrorInstance.cpp \
ErrorPrototype.cpp \
ExceptionHelpers.cpp \
Executable.cpp \
FunctionConstructor.cpp \
FunctionPrototype.cpp \
GCActivityCallback.cpp \
GetterSetter.cpp \
Options.cpp \
Identifier.cpp \
IndexingType.cpp \
InitializeThreading.cpp \
InternalFunction.cpp \
JSActivation.cpp \
JSAPIValueWrapper.cpp \
JSArray.cpp \
JSCell.cpp \
JSDateMath.cpp \
JSFunction.cpp \
JSBoundFunction.cpp \
JSGlobalData.cpp \
JSGlobalObject.cpp \
JSGlobalObjectFunctions.cpp \
JSProxy.cpp \
JSLock.cpp \
JSNotAnObject.cpp \
JSObject.cpp \
JSONObject.cpp \
JSPropertyNameIterator.cpp \
JSSegmentedVariableObject.cpp \
JSWithScope.cpp \
JSNameScope.cpp \
JSScope.cpp \
JSString.cpp \
JSStringJoiner.cpp \
JSSymbolTableObject.cpp \
JSValue.cpp \
JSVariableObject.cpp \
JSWrapperObject.cpp \
LiteralParser.cpp \
Lookup.cpp \
MathObject.cpp \
MemoryStatistics.cpp \
NameConstructor.cpp \
NameInstance.cpp \
NamePrototype.cpp \
NativeErrorConstructor.cpp \
NativeErrorPrototype.cpp \
NumberConstructor.cpp \
NumberObject.cpp \
NumberPrototype.cpp \
ObjectConstructor.cpp \
ObjectPrototype.cpp \
Operations.cpp \
PropertyDescriptor.cpp \
PropertyNameArray.cpp \
PropertySlot.cpp \
RegExpConstructor.cpp \
RegExpCachedResult.cpp \
RegExpMatchesArray.cpp \
RegExp.cpp \
RegExpObject.cpp \
RegExpPrototype.cpp \
RegExpCache.cpp \
SamplingCounter.cpp \
SmallStrings.cpp \
SparseArrayValueMap.cpp \
StrictEvalActivation.cpp \
StringConstructor.cpp \
StringObject.cpp \
StringPrototype.cpp \
StringRecursionChecker.cpp \
StructureChain.cpp \
Structure.cpp \
SymbolTable.cpp \
TimeoutChecker.cpp \
CodeProfile.cpp \
CodeProfiling.cpp \
YarrJIT.cpp
QT_VPATH += \
qtwebkit/Source/JavaScriptCore/API \
qtwebkit/Source/JavaScriptCore/assembler \
qtwebkit/Source/JavaScriptCore/bytecode \
qtwebkit/Source/JavaScriptCore/bytecompiler \
qtwebkit/Source/JavaScriptCore/debugger \
qtwebkit/Source/JavaScriptCore/dfg \
qtwebkit/Source/JavaScriptCore/disassembler \
qtwebkit/Source/JavaScriptCore/heap \
qtwebkit/Source/JavaScriptCore/interpreter \
qtwebkit/Source/JavaScriptCore/jit \
qtwebkit/Source/JavaScriptCore/llint \
qtwebkit/Source/JavaScriptCore/parser \
qtwebkit/Source/JavaScriptCore/profiler \
qtwebkit/Source/JavaScriptCore/runtime \
qtwebkit/Source/JavaScriptCore/tools \
qtwebkit/Source/JavaScriptCore/yarr \
# some source files need to be generated by moc from other source/header files before
# they get #included again by the original source file in the compiling stage
# source files generated from existing header files ('moc_%.cpp: %.h' rule in import-qt5.inc)
# extracted from 'compiler_moc_header_make_all' target
COMPILER_MOC_HEADER_MAKE_ALL_FILES = \
# source files generated from existing source files ('%.moc: %.cpp' rule in import-qt5.inc)
# extracted from 'compiler_moc_source_make_all' rule
COMPILER_MOC_SOURCE_MAKE_ALL_FILES = \

@ -0,0 +1,35 @@
include $(REP_DIR)/lib/import/import-qt5_network.mk
SHARED_LIB = yes
# use default warning level to avoid noise when compiling contrib code
CC_WARN =
include $(REP_DIR)/lib/mk/qt5_network_generated.inc
# remove unneeded files to prevent moc warnings
COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT = \
moc_qftp_p.cpp \
moc_qnetworkaccessdebugpipebackend_p.cpp \
moc_qnetworkaccessftpbackend_p.cpp \
moc_qnetworksession.cpp \
moc_qnetworkconfigmanager.cpp \
moc_qnetworkconfigmanager_p.cpp \
moc_qnetworksession_p.cpp \
moc_qbearerengine_p.cpp \
moc_qbearerplugin_p.cpp \
moc_qudpsocket.cpp \
moc_qsslsocket_openssl_p.cpp \
COMPILER_MOC_SOURCE_MAKE_ALL_FILES_FILTER_OUT = \
qftp.moc
include $(REP_DIR)/lib/mk/qt5.inc
INC_DIR += $(REP_DIR)/contrib/$(QT5)/qtbase/include/QtNetwork/$(QT_VERSION) \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtNetwork/$(QT_VERSION)/QtNetwork \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION) \
$(REP_DIR)/contrib/$(QT5)/qtbase/include/QtCore/$(QT_VERSION)/QtCore
LIBS += qt5_core zlib libc libssl

@ -0,0 +1,171 @@
QT_DEFINES += -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB
QT_INCPATH += \