rhi.pro 887 Bytes
Newer Older
1
2
TARGET = QtRhi

Laszlo Agocs's avatar
Laszlo Agocs committed
3
QT += shadertools gui-private
4
5
6
7
8
9
10

DEFINES += QT_BUILD_RHI_LIB

HEADERS += \
    qtrhiglobal.h \
    qtrhiglobal_p.h \
    qrhi.h \
Laszlo Agocs's avatar
Laszlo Agocs committed
11
12
    qrhi_p.h \
    qrhiprofiler.h \
13
    qrhiprofiler_p.h
14
15
16

SOURCES += \
    qrhi.cpp \
17
    qrhiprofiler.cpp
18
19
20
21
22
23
24
25

qtConfig(opengl) {
    HEADERS += \
        qrhigles2.h \
        qrhigles2_p.h
    SOURCES += \
        qrhigles2.cpp
}
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

qtConfig(vulkan) {
    HEADERS += \
        qrhivulkan.h \
        qrhivulkan_p.h
    SOURCES += \
        qrhivulkan.cpp
}

win32 {
    HEADERS += \
        qrhid3d11.h \
        qrhid3d11_p.h
    SOURCES += \
        qrhid3d11.cpp

    LIBS += -ld3d11 -ldxgi -ldxguid -ld3dcompiler
}

mac {
    HEADERS += \
        qrhimetal.h \
        qrhimetal_p.h
    SOURCES += \
        qrhimetal.mm

    LIBS += -framework AppKit -framework Metal
}

include($$PWD/../3rdparty/VulkanMemoryAllocator.pri)
56
57

load(qt_module)