<commit_before>BUILD_DIR      := $(ROOT_DIR)/build
DOWNLOAD_DIR   := $(ROOT_DIR)/download

QT_DIR         := $(BUILD_DIR)/qt
QT_SRC_DIR     := $(QT_DIR)/source
QT_BUILD_DIR   := $(QT_DIR)/build
QT_INSTALL_DIR := $(QT_DIR)/install

DOWNLOADED  := $(QT_DIR)/.downloaded
EXTRACTED   := $(QT_DIR)/.extracted
CONFIGURED  := $(QT_DIR)/.configured
ENVIRONMENT := $(QT_DIR)/.environment

QT_URL    := http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz
QT_MD5    := 1864987bdbb2f58f8ae8b350dfdbe133
QT_BUNDLE := $(DOWNLOAD_DIR)/$(notdir $(QT_URL))

QT_PATCH := qt_patch.txt

define option_get
$(shell echo OPTION_BOOLEAN_third_party__qt__core__$(1) | gcc -P -E -include $(ROOT_DIR)/build/base/src-gen/include/config/third_party/qt/core.h -)
endef

ifeq (arm,$(EMBOX_ARCH))
ARCH_FLAGS   := -arch arm
ENDIAN_FLAGS := -little-endian
else ifeq (x86,$(EMBOX_ARCH))
ARCH_FLAGS   := -arch i386
ENDIAN_FLAGS := -little-endian
else
$(error Unsupported architecture: $(EMBOX_ARCH))
endif

CROSS_COMPILER_FLAGS :=
ifneq (,$(EMBOX_CROSS_COMPILE))
CROSS_COMPILER_FLAGS += -device-option CROSS_COMPILE='$(EMBOX_CROSS_COMPILE)'
endif

QT_CONF_FLAGS :=
QT_CONF_FLAGS += -hostprefix $(QT_INSTALL_DIR)
QT_CONF_FLAGS += $(ARCH_FLAGS) $(ENDIAN_FLAGS) $(CROSS_COMPILER_FLAGS)
QT_CONF_FLAGS += -embedded-lite vnc -v
QT_CONF_FLAGS += -xplatform qws/embox-generic-g++ -static
QT_CONF_FLAGS += -opensource -confirm-license
QT_CONF_FLAGS += -no-pch -fast
QT_CONF_FLAGS += -no-largefile -no-qt3support
QT_CONF_FLAGS += -no-kbd-tty -no-mouse-pc -no-mouse-linuxtp \
				 -no-gfx-linuxfb -no-gfx-multiscreen
QT_CONF_FLAGS += -no-feature-TEMPORARYFILE -D QT_NO_TEMPORARYFILE
QT_CONF_FLAGS += -no-feature-PROCESS -D QT_NO_PROCESS
QT_CONF_FLAGS += -no-feature-SHAREDMEMORY -D QT_NO_SHAREDMEMORY
QT_CONF_FLAGS += -no-feature-NETWORKINTERFACE -D QT_NO_NETWORKINTERFACE
QT_CONF_FLAGS += -no-feature-HOSTINFO -D QT_NO_HOSTINFO
QT_CONF_FLAGS += -no-feature-QWS_INPUTMETHODS -D QT_NO_QWS_INPUTMETHODS
ifeq (1,$(call option_get,stl_support))
QT_CONF_FLAGS += -stl
endif
QT_CONF_FLAGS += -D QT_NO_IM
QT_CONF_FLAGS += -D Q_NO_POSIX_SIGNALS
QT_CONF_FLAGS += -D QT_NO_BEARERMANAGEMENT
QT_CONF_FLAGS += -D QT_NO_DYNAMIC_LIBRARY
QT_CONF_FLAGS += -no-sql-sqlite
QT_CONF_FLAGS += -nomake examples -nomake demos
QT_CONF_FLAGS += -nomake translations
ifneq (,$(filter -fno-exceptions,$(EMBOX_CXXFLAGS)))
QT_CONF_FLAGS += -no-exceptions
endif
QT_CONF_FLAGS += -debug
QT_CONF_FLAGS += -qt-gfx-vnc
QT_CONF_FLAGS += -no-freetype
QT_CONF_FLAGS += -no-xmlpatterns
QT_CONF_FLAGS += -D QEMBOX_PLUGIN_VNC
ifneq (arm,$(EMBOX_ARCH))<commit_msg>qt-pro: define no_stl if STL is disabled<commit_after>BUILD_DIR      := $(ROOT_DIR)/build
DOWNLOAD_DIR   := $(ROOT_DIR)/download

QT_DIR         := $(BUILD_DIR)/qt
QT_SRC_DIR     := $(QT_DIR)/source
QT_BUILD_DIR   := $(QT_DIR)/build
QT_INSTALL_DIR := $(QT_DIR)/install

DOWNLOADED  := $(QT_DIR)/.downloaded
EXTRACTED   := $(QT_DIR)/.extracted
CONFIGURED  := $(QT_DIR)/.configured
ENVIRONMENT := $(QT_DIR)/.environment

QT_URL    := http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz
QT_MD5    := 1864987bdbb2f58f8ae8b350dfdbe133
QT_BUNDLE := $(DOWNLOAD_DIR)/$(notdir $(QT_URL))

QT_PATCH := qt_patch.txt

define option_get
$(shell echo OPTION_BOOLEAN_third_party__qt__core__$(1) | gcc -P -E -include $(ROOT_DIR)/build/base/src-gen/include/config/third_party/qt/core.h -)
endef

ifeq (arm,$(EMBOX_ARCH))
ARCH_FLAGS   := -arch arm
ENDIAN_FLAGS := -little-endian
else ifeq (x86,$(EMBOX_ARCH))
ARCH_FLAGS   := -arch i386
ENDIAN_FLAGS := -little-endian
else
$(error Unsupported architecture: $(EMBOX_ARCH))
endif

CROSS_COMPILER_FLAGS :=
ifneq (,$(EMBOX_CROSS_COMPILE))
CROSS_COMPILER_FLAGS += -device-option CROSS_COMPILE='$(EMBOX_CROSS_COMPILE)'
endif

QT_CONF_FLAGS :=
QT_CONF_FLAGS += -hostprefix $(QT_INSTALL_DIR)
QT_CONF_FLAGS += $(ARCH_FLAGS) $(ENDIAN_FLAGS) $(CROSS_COMPILER_FLAGS)
QT_CONF_FLAGS += -embedded-lite vnc -v
QT_CONF_FLAGS += -xplatform qws/embox-generic-g++ -static
QT_CONF_FLAGS += -opensource -confirm-license
QT_CONF_FLAGS += -no-pch -fast
QT_CONF_FLAGS += -no-largefile -no-qt3support
QT_CONF_FLAGS += -no-kbd-tty -no-mouse-pc -no-mouse-linuxtp \
				 -no-gfx-linuxfb -no-gfx-multiscreen
QT_CONF_FLAGS += -no-feature-TEMPORARYFILE -D QT_NO_TEMPORARYFILE
QT_CONF_FLAGS += -no-feature-PROCESS -D QT_NO_PROCESS
QT_CONF_FLAGS += -no-feature-SHAREDMEMORY -D QT_NO_SHAREDMEMORY
QT_CONF_FLAGS += -no-feature-NETWORKINTERFACE -D QT_NO_NETWORKINTERFACE
QT_CONF_FLAGS += -no-feature-HOSTINFO -D QT_NO_HOSTINFO
QT_CONF_FLAGS += -no-feature-QWS_INPUTMETHODS -D QT_NO_QWS_INPUTMETHODS
ifneq (0,$(call option_get,stl_support))
QT_CONF_FLAGS += -stl
else
QT_CONF_FLAGS += -no-stl -D QT_NO_STL
endif
QT_CONF_FLAGS += -D QT_NO_IM
QT_CONF_FLAGS += -D Q_NO_POSIX_SIGNALS
QT_CONF_FLAGS += -D QT_NO_BEARERMANAGEMENT
QT_CONF_FLAGS += -D QT_NO_DYNAMIC_LIBRARY
QT_CONF_FLAGS += -no-sql-sqlite
QT_CONF_FLAGS += -nomake examples -nomake demos
QT_CONF_FLAGS += -nomake translations
ifneq (,$(filter -fno-exceptions,$(EMBOX_CXXFLAGS)))
QT_CONF_FLAGS += -no-exceptions
endif
QT_CONF_FLAGS += -debug
QT_CONF_FLAGS += -qt-gfx-vnc
QT_CONF_FLAGS += -no-freetype
QT_CONF_FLAGS += -no-xmlpatterns
QT_CONF_FLAGS += -D QEMBOX_PLUGIN_VNC
ifneq (arm,$(EMBOX_ARCH))
{'fraction_non_alphanumeric': 0.13690140845070423, 'fraction_numerical': 0.013145539906103286, 'mean_word_length': 5.348033373063171, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6055622', 'n_tokens_mistral': 2344, 'n_tokens_neox': 2161, 'n_words': 350}