-
Pierre Rossi authored
Change-Id: I574ce207384e084c8b65cd66114e47e01cd4f42a Reviewed-by:
Zeno Albisser <zeno.albisser@digia.com>
b7210ab3
default_pre.prf 959 B
# Resolve root directories for sources
QTWEBENGINE_ROOT = $$replace(PWD, /build/qmake/mkspecs/features$,)
QTWEBENGINEPROCESS_NAME = QtWebEngineProcess
git_chromium_src_dir = $$system("git config qtwebengine.chromiumsrcdir")
# Fall back to the snapshot path if git does not know about chromium sources (i.e. init-repository.py has not been used)
isEmpty(git_chromium_src_dir): git_chromium_src_dir = "3rdparty/chromium"
CHROMIUM_SRC_DIR = $$absolute_path("$$QTWEBENGINE_ROOT/$$git_chromium_src_dir")
INCLUDEPATH += $$CHROMIUM_SRC_DIR
# Tweaks that shouldn't affect our examples
!contains(_PRO_FILE_PWD_, $$QTWEBENGINE_ROOT/examples) {
# Used for our export macros
DEFINES += BUILDING_CHROMIUM
# We have to disable RTTI for now since that's how chromium builds on linux
unix:QMAKE_CXXFLAGS += -fno-rtti
}
# Location of sync.profile
MODULE_BASE_DIR = $$QTWEBENGINE_ROOT
load(functions)
# Call the original default_pre.
load(default_pre)