mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Fix] (buildsystem): fix build on Windows
This commit is contained in:
@@ -325,6 +325,14 @@ if (ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT ANDROID)
|
if (NOT ANDROID)
|
||||||
|
find_package(Vulkan)
|
||||||
|
if (Vulkan_FOUND)
|
||||||
|
target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC Vulkan::Vulkan Vulkan::Headers)
|
||||||
|
target_link_libraries(${CMAKE_PROJECT_NAME}_s PUBLIC Vulkan::Vulkan Vulkan::Headers)
|
||||||
|
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC ${Vulkan_INCLUDE_DIR})
|
||||||
|
target_include_directories(${CMAKE_PROJECT_NAME}_s PUBLIC ${Vulkan_INCLUDE_DIR})
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (MOBILEGL_BUILD_TEST)
|
if (MOBILEGL_BUILD_TEST)
|
||||||
add_subdirectory(MobileGL/MG_Test)
|
add_subdirectory(MobileGL/MG_Test)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
+2
-1
@@ -80,7 +80,6 @@
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <vulkan/vulkan.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -106,6 +105,8 @@
|
|||||||
#define TRACY_ZONECOLOR_BACKEND 0x00FF00
|
#define TRACY_ZONECOLOR_BACKEND 0x00FF00
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <vulkan/vulkan.h>
|
||||||
|
|
||||||
// Post-includes for significant project headers
|
// Post-includes for significant project headers
|
||||||
#include "MG_Util/Debug/Log.h"
|
#include "MG_Util/Debug/Log.h"
|
||||||
#include "MG_Util/Types.h"
|
#include "MG_Util/Types.h"
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace MobileGL {
|
|||||||
#if MOBILEGL_BACKEND == MOBILEGL_BACKEND_TYPE_DIRECT_GLES
|
#if MOBILEGL_BACKEND == MOBILEGL_BACKEND_TYPE_DIRECT_GLES
|
||||||
return MG_Backend::DirectGLES::GetString(name);
|
return MG_Backend::DirectGLES::GetString(name);
|
||||||
#endif
|
#endif
|
||||||
|
return (const GLubyte*)"3.3 <Unknown>";
|
||||||
}
|
}
|
||||||
|
|
||||||
inline String GetFormattedBackendGLVersion() {
|
inline String GetFormattedBackendGLVersion() {
|
||||||
|
|||||||
Reference in New Issue
Block a user