forked from SaschaWillems/VulkanCapsViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vulkanCapsViewer.pro
105 lines (98 loc) · 3.1 KB
/
vulkanCapsViewer.pro
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# ----------------------------------------------------
# This file is generated by the Qt Visual Studio Add-in.
# ------------------------------------------------------
TEMPLATE = app
TARGET = vulkanCapsViewer
QT += core network widgets gui
CONFIG += c++17
#CONFIG += release bad for debugging
DEFINES += QT_DLL QT_NETWORK_LIB QT_WIDGETS_LIB VK_ENABLE_BETA_EXTENSIONS
INCLUDEPATH += ./GeneratedFiles \
. \
./GeneratedFiles/Release
INCLUDEPATH += "Vulkan-Headers/include"
INCLUDEPATH += "/Vulkan-Headers/include"
win32 {
DEFINES += WIN64
DEFINES += VK_USE_PLATFORM_WIN32_KHR
win32:contains(QMAKE_HOST.arch, x86_64) {
LIBS += "$$PWD/libs/vulkan/lib/vulkan-1.lib"
} else {
LIBS += "$$PWD/libs/vulkan/lib32/vulkan-1.lib"
}
LIBS += Advapi32.lib
}
linux:!android {
LIBS += -lvulkan
contains(DEFINES, X11) {
message("Building for X11")
QT += x11extras
DEFINES += VK_USE_PLATFORM_XCB_KHR
}
contains(DEFINES, WAYLAND) {
message("Building for Wayland")
QT += waylandclient
DEFINES += VK_USE_PLATFORM_WAYLAND_KHR
}
target.path = /usr/bin
INSTALLS += target
desktop.files = vulkanCapsViewer.desktop
desktop.path = /usr/share/applications
icon.extra = cp $$PWD/gfx/android_icon_256.png vulkanCapsViewer.png
icon.files = vulkanCapsViewer.png
icon.path = /usr/share/icons/hicolor/256x256/apps/
INSTALLS += desktop icon
}
android {
DEFINES += VK_NO_PROTOTYPES
DEFINES += VK_USE_PLATFORM_ANDROID_KHR
QT += androidextras
CONFIG += mobility
MOBILITY =
LIBS += -landroid
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
DISTFILES += \
android/AndroidManifest.xml \
android/build.gradle \
android/res/values/libs.xml
}
macx {
DEFINES += VK_USE_PLATFORM_METAL_EXT
VULKAN_DYLIB = $(VULKAN_SDK)/lib/libvulkan.dylib
LIBS += $$VULKAN_DYLIB -framework Cocoa -framework QuartzCore
OBJECTIVE_SOURCES += appleutils.mm
ICON = $${PWD}/vulkanCapsViewer.icns
}
ios {
TARGET = "Vulkan Caps Viewer"
QMAKE_INFO_PLIST = iOS/Info.plist
DEFINES += VK_USE_PLATFORM_METAL_EXT
DEFINES += VK_USE_PLATFORM_MACOS_MVK
LIBS += $(VULKAN_SDK)/lib/MoltenVk.xcframework/ios-arm64/libMoltenVK.a
LIBS += -framework QuartzCore
OBJECTIVE_SOURCES += appleutils.mm
ICON = $${PWD}/iOS/vulkanCapsViewer.png
}
DEPENDPATH += .
MOC_DIR += ./GeneratedFiles/release
OBJECTS_DIR += release
UI_DIR += ./GeneratedFiles
RCC_DIR += ./GeneratedFiles
include(vulkanCapsViewer.pri)
win32:RC_FILE = vulkanCapsViewer.rc
HEADERS +=
SOURCES +=
DISTFILES += \
android/AndroidManifest.xml \
android/gradle.properties \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew.bat
contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_EXTRA_LIBS = \
$$PWD/libs/openssl/x86/libcrypto.so \
$$PWD/libs/openssl/x86/libssl.so
}