fixing windows build x3 | replacing compile commands by compile flags

This commit is contained in:
2024-09-15 07:52:25 +02:00
parent 91b51a5621
commit 4c17f2e165
7 changed files with 45 additions and 825 deletions

View File

@@ -47,6 +47,11 @@
#include <math.h> // sincos
#endif
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#define VMA_VULKAN_VERSION 1000000
#define VMA_ASSERT(expr) ((void)0)
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
@@ -69,6 +74,9 @@
#include <Utils/AntiWindows.h>
#include <Renderer/Vulkan/VulkanPrototypes.h>
#ifdef DEBUG
#define KVF_ENABLE_VALIDATION_LAYERS
#endif
#include <kvf.h>
#include <Core/Logs.h>

View File

@@ -1,15 +1,11 @@
#include <mlx_profile.h>
#include <PreCompiled.h>
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#define VMA_VULKAN_VERSION 1000000
#define VMA_ASSERT(expr) ((void)0)
#define VMA_IMPLEMENTATION
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#include <PreCompiled.h>
#include <vma.h>
#pragma clang diagnostic pop
#elif defined(MLX_COMPILER_GCC)
#pragma GCC diagnostic push
@@ -18,10 +14,10 @@
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wparentheses"
#include <PreCompiled.h>
#include <vma.h>
#pragma GCC diagnostic pop
#else
#include <PreCompiled.h>
#include <vma.h>
#endif
#include <Renderer/RenderCore.h>

View File

@@ -1,8 +1,11 @@
#include <PreCompiled.h>
#define KVF_IMPLEMENTATION
#ifdef DEBUG
#define KVF_ENABLE_VALIDATION_LAYERS
#endif
#include <PreCompiled.h>
#include <kvf.h>
#include <Renderer/RenderCore.h>
#include <Renderer/Vulkan/VulkanLoader.h>

View File

@@ -14,8 +14,6 @@
#else
typedef int (__stdcall* FARPROC)(void);
#endif
#else
#include <dlfcn.h>
#endif
namespace mlx