summaryrefslogtreecommitdiffstats
path: root/src/process/process.pro
blob: a28267ee9a177a650b89f18e68d27dd4ec48083d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
TARGET = $$QTWEBENGINEPROCESS_NAME

# Needed to set LSUIElement=1
QMAKE_INFO_PLIST = Info_mac.plist

QT_PRIVATE += core-private webenginecore-private

INCLUDEPATH += ../core

SOURCES = main.cpp

CONFIG -= ltcg

# On windows we need to statically link to the windows sandbox code
win32 {
    # The Chromium headers we include are not clean
    CONFIG -= warnings_are_errors

    # Look for linking information produced by GN
    linking_pri = $$OUT_PWD/../core/$$getConfigDir()/qtwebengine_sandbox_win.pri

    !include($$linking_pri) {
        error("Could not find the linking information that gn should have generated.")
    }
    isEmpty(NINJA_OBJECTS): error("//sandbox/win:sandbox linking changed, update process.pro")
    isEmpty(NINJA_ARCHIVES): error("//sandbox/win:sandbox linking changed, update process.pro")

    LIBS_PRIVATE += $$NINJA_LIB_DIRS $$NINJA_LIBS $$NINJA_ARCHIVES $$NINJA_OBJECTS
    QMAKE_LFLAGS += $$NINJA_LFLAGS
    POST_TARGETDEPS += $$NINJA_TARGETDEPS

    CHROMIUM_SRC_DIR = $$QTWEBENGINE_ROOT/$$getChromiumSrcDir()
    INCLUDEPATH += $$CHROMIUM_SRC_DIR \
                   $$OUT_PWD/../core/$$getConfigDir()/gen

    SOURCES += \
        support_win.cpp

    msvc: QMAKE_LFLAGS += /MANIFESTINPUT:$$PWD/process.exe.manifest
    VERSION = $${QT_VERSION}.0
} else {
    VERSION = $${QT_VERSION}
}

TEMPLATE = app

load(qt_build_paths)

!build_pass:qtConfig(debug_and_release): CONFIG += release
CONFIG += relative_qt_rpath

qtConfig(build_all): CONFIG += build_all

qtConfig(framework) {
    # Deploy the QtWebEngineProcess app bundle into the QtWebEngineCore framework.
    DESTDIR = $$MODULE_BASE_OUTDIR/lib/QtWebEngineCore.framework/Versions/5/Helpers

    # Deploy the entitlements file so macdeployqt can use it.
    entitlements.files = QtWebEngineProcess.entitlements
    entitlements.path = Contents/Resources/
    QMAKE_BUNDLE_DATA += entitlements
} else {
    CONFIG -= app_bundle
    win32: DESTDIR = $$MODULE_BASE_OUTDIR/bin
    else:  DESTDIR = $$MODULE_BASE_OUTDIR/libexec
}
msvc: QMAKE_LFLAGS *= /LARGEADDRESSAWARE

qtConfig(framework) {
    target.path = $$[QT_INSTALL_LIBS]/QtWebEngineCore.framework/Versions/5/Helpers
} else {
    target.path = $$[QT_INSTALL_LIBEXECS]
}

load(qt_targets)
load(qt_common)

INSTALLS += target