You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.4 KiB
84 lines
2.4 KiB
QT += core xml gui
|
|
|
|
CONFIG += c++17
|
|
|
|
INCLUDEPATH += \
|
|
$$PWD/third_party \
|
|
# $$PWD/third_party/vkbootstrap \
|
|
# $$PWD/third_party/vkbootstrap/build \
|
|
# $$PWD/third_party/fmt/include \
|
|
# $$PWD/third_party/SDL/build/include/SDL2 \
|
|
# $$PWD/third_party/SDL/build/include-config-/SDL2 \
|
|
# $$PWD/third_party/fmt/build
|
|
|
|
LIBS += \
|
|
# -L$$PWD/third_party/pugixml/build -lpugixml \
|
|
# -lSDL2main -lSDL2 -lvk-bootstrap \
|
|
# -L$$PWD/third_party/fmt/build -lfmt
|
|
|
|
SOURCES += \
|
|
VulkanTutorial1.0/ComputeAndGraphics.cpp \
|
|
VulkanTutorial1.0/VulkanWindow.cpp \
|
|
main.cpp
|
|
|
|
HEADERS += \
|
|
VulkanTutorial1.0/ComputeAndGraphics.h \
|
|
VulkanTutorial1.0/Types.h \
|
|
VulkanTutorial1.0/VulkanWindow.h
|
|
|
|
|
|
DISTFILES += \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/compComp.spv \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/compile.sh \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/fragComp.spv \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/shaderCompute.comp \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/shaderCompute.frag \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/shaderCompute.vert \
|
|
shaders/VulkanTutorial1.0/ComputeAndGraphics/vertComp.spv \
|
|
shaders/VulkanTutorial1.0/HelloTriangle/compile.sh \
|
|
shaders/VulkanTutorial1.0/HelloTriangle/frag.spv \
|
|
shaders/VulkanTutorial1.0/HelloTriangle/shader.frag \
|
|
shaders/VulkanTutorial1.0/HelloTriangle/shader.vert \
|
|
shaders/VulkanTutorial1.0/HelloTriangle/vert.spv
|
|
|
|
|
|
android {
|
|
QT += \
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
|
NDK_PATH = /home/ali-mehrabani/host-projects/Android/Sdk/ndk/21.0.6113669
|
|
|
|
INCLUDEPATH += \
|
|
# /usr/include/vulkan \
|
|
$$NDK_PATH/platforms/android-29/arch-arm64/usr/lib/
|
|
|
|
LIBS += -landroid -llog \
|
|
-L$$NDK_PATH/platforms/android-29/arch-arm64/usr/lib -lvulkan
|
|
|
|
DEFINES += \
|
|
VK_USE_PLATFORM_ANDROID_KHR
|
|
|
|
# ANDROID_ABIS = arm64-v8a armeabi-v7a
|
|
|
|
OTHER_FILES += android/src/Vulkan \
|
|
android/AndroidManifest.xml \
|
|
android/build.gradle \
|
|
android/gradle/wrapper/gradle-wrapper.jar \
|
|
android/gradle/wrapper/gradle-wrapper.properties \
|
|
android/gradlew \
|
|
android/gradlew.bat \
|
|
android/res/values/libs.xml
|
|
}
|
|
linux-g++* {
|
|
QT += x11extras
|
|
|
|
LIBS += \
|
|
-lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -lvulkan \
|
|
|
|
DEFINES += \
|
|
VK_USE_PLATFORM_XCB_KHR
|
|
|
|
INCLUDEPATH += \
|
|
/usr/include/vulkan \
|
|
}
|
|
|
|
|