|
|
@ -2,10 +2,7 @@ QT += core xml gui |
|
|
|
|
|
|
|
CONFIG += c++17 |
|
|
|
|
|
|
|
QMAKE_SPEC_T = $$[QMAKE_SPEC] |
|
|
|
|
|
|
|
INCLUDEPATH += \ |
|
|
|
# /usr/include/vulkan \ |
|
|
|
$$PWD/third_party \ |
|
|
|
# $$PWD/third_party/vkbootstrap \ |
|
|
|
# $$PWD/third_party/vkbootstrap/build \ |
|
|
@ -15,8 +12,6 @@ INCLUDEPATH += \ |
|
|
|
# $$PWD/third_party/fmt/build |
|
|
|
|
|
|
|
LIBS += \ |
|
|
|
-lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi \ |
|
|
|
-lvulkan \ |
|
|
|
# -L$$PWD/third_party/pugixml/build -lpugixml \ |
|
|
|
# -lSDL2main -lSDL2 -lvk-bootstrap \ |
|
|
|
# -L$$PWD/third_party/fmt/build -lfmt |
|
|
@ -47,9 +42,17 @@ DISTFILES += \ |
|
|
|
shaders/VulkanTutorial1.0/HelloTriangle/vert.spv |
|
|
|
|
|
|
|
|
|
|
|
contains(QMAKE_SPEC_T,.*android.*) { |
|
|
|
QT += |
|
|
|
android { |
|
|
|
QT += \ |
|
|
|
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android |
|
|
|
|
|
|
|
INCLUDEPATH += \ |
|
|
|
|
|
|
|
LIBS += -landroid -llog |
|
|
|
|
|
|
|
DEFINES += VK_USE_PLATFORM_ANDROID_KHR |
|
|
|
|
|
|
|
OTHER_FILES += android/src/Vulkan \ |
|
|
|
android/AndroidManifest.xml \ |
|
|
|
android/build.gradle \ |
|
|
@ -59,8 +62,12 @@ contains(QMAKE_SPEC_T,.*android.*) { |
|
|
|
android/gradlew.bat \ |
|
|
|
android/res/values/libs.xml |
|
|
|
} |
|
|
|
contains(QMAKE_SPEC_T,.*linux.*) { |
|
|
|
QT += x11extras |
|
|
|
linux64 { |
|
|
|
QT += x11extrass |
|
|
|
|
|
|
|
LIBS += \ |
|
|
|
-lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi \ |
|
|
|
-lvulkan \ |
|
|
|
|
|
|
|
INCLUDEPATH += \ |
|
|
|
/usr/include/vulkan \ |
|
|
|