summaryrefslogtreecommitdiffstats
path: root/tools/qmake/mkspecs/features/default_pre.prf
blob: cb0625c2e5738fe11ee3d0feb81dcc0dce06bc59 (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
# Resolve root directories for sources
QTWEBENGINE_ROOT = $$replace(PWD, /tools/qmake/mkspecs/features$,)

# We depend on libc++ to build chromium so our macosx-version-min has to be 10.7
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7

QTWEBENGINEPROCESS_NAME = QtWebEngineProcess

# Location of sync.profile
MODULE_BASE_DIR = $$QTWEBENGINE_ROOT

EOL = $$escape_expand(\\n)

# Call the original default_pre.
load(default_pre)
load(functions)

# Check platform support and run config tests early enough to bail
equals(_PRO_FILE_, "$$QTWEBENGINE_ROOT/qtwebengine.pro"): CONFIG += root_project_file

root_project_file:isPlatformSupported() {
   !exists($$QTWEBENGINE_ROOT/src/3rdparty/chromium) {
       error("Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.")
   }
   load(configure)
   runConfigure()
}