summaryrefslogtreecommitdiffstats
path: root/tools/qmake/mkspecs/features/default_pre.prf
blob: cec9be1bdcb08d6fda9ac5ce0545940b8344dd1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Resolve root directories for sources
QTWEBENGINE_ROOT = $$replace(PWD, /tools/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 = "src/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)