summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/opengl/opengl.pri
blob: 4308992e593ec48b211697f39e9944b30dacfecd (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
QT += core-private gui-private 3dcore 3dcore-private 3drender 3drender-private opengl-private

CONFIG += c++17

# Qt3D is free of Q_FOREACH - make sure it stays that way:
DEFINES += QT_NO_FOREACH
DEFINES += BUILD_QT3D_MODULE

# For Q_AUTOTEST_EXPORT to work
DEFINES += QT_BUILDING_QT

DISTFILES += \
    openglrenderer.json

include (renderer/renderer.pri)
include (io/io.pri)
include (textures/textures.pri)
include (graphicshelpers/graphicshelpers.pri)
include (managers/managers.pri)

!integrity: include (debug/debug.pri)

INCLUDEPATH += $$PWD

# Qt3D is free of Q_FOREACH - make sure it stays that way:
DEFINES += QT_NO_FOREACH

gcov {
    QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
    QMAKE_LFLAGS += -fprofile-arcs -ftest-coverage
}

qtConfig(qt3d-simd-avx2) {
    CONFIG += simd
    QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX2
}

qtConfig(qt3d-simd-sse2):!qtConfig(qt3d-simd-avx2) {
    CONFIG += simd
    QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE2
}