adding symbols to dll on windows

This commit is contained in:
2023-12-08 18:56:33 +01:00
parent 591c144104
commit b078165849
5 changed files with 28 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 21:49:46 by maldavid #+# #+# */
/* Updated: 2023/11/23 14:25:43 by maldavid ### ########.fr */
/* Updated: 2023/12/08 18:52:47 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,10 +24,11 @@
#include <core/graphics.h>
#include <platform/inputs.h>
#include <core/profile.h>
namespace mlx::core
{
class Application
class MLX_API Application
{
public:
Application();

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:42:32 by maldavid #+# #+# */
/* Updated: 2022/10/08 19:06:41 by maldavid ### ########.fr */
/* Updated: 2023/12/08 18:53:11 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,6 +14,7 @@
#define __MLX_ERRORS__
#include <string>
#include <core/profile.h>
enum class e_kind
{
@@ -25,7 +26,7 @@ enum class e_kind
namespace mlx::core::error
{
void report(e_kind kind, std::string msg, ...);
void MLX_API report(e_kind kind, std::string msg, ...);
}
#endif // __MLX_ERRORS__

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/10 08:49:17 by maldavid #+# #+# */
/* Updated: 2023/11/10 09:05:56 by maldavid ### ########.fr */
/* Updated: 2023/12/08 18:49:38 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -41,6 +41,20 @@
#warning "This compiler is not fully supported"
#endif
#if defined(_WIN32) || defined(_WIN64)
#define MLX_EXPORT __declspec(dllexport)
#define MLX_IMPORT __declspec(dllexport)
#else
#define MLX_EXPORT
#define MLX_IMPORT
#endif
#ifdef MLX_BUILD
#define MLX_API MLX_EXPORT
#else
#define MLX_API MLX_IMPORT
#endif
// Checking common assumptions
#include <climits>
#include <cstdint>

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */
/* Updated: 2023/12/08 12:14:39 by kbz_8 ### ########.fr */
/* Updated: 2023/12/08 18:54:03 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -18,6 +18,8 @@
#include <SDL2/SDL.h>
#include <unordered_map>
#include <core/profile.h>
#include "window.h"
namespace mlx
@@ -30,7 +32,7 @@ namespace mlx
void* param = nullptr;
};
class Input
class MLX_API Input
{
public:
Input();

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/08 19:16:32 by maldavid #+# #+# */
/* Updated: 2023/11/20 07:20:43 by maldavid ### ########.fr */
/* Updated: 2023/12/08 18:53:36 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,6 +24,7 @@
#include <utils/singleton.h>
#include <core/errors.h>
#include <core/profile.h>
namespace mlx
{
@@ -42,7 +43,7 @@ namespace mlx
constexpr const int MAX_FRAMES_IN_FLIGHT = 3;
class Render_Core : public Singleton<Render_Core>
class MLX_API Render_Core : public Singleton<Render_Core>
{
public:
Render_Core() = default;