mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
adding symbols to dll on windows
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2022/10/04 21:49:46 by maldavid #+# #+# */
|
/* 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 <core/graphics.h>
|
||||||
#include <platform/inputs.h>
|
#include <platform/inputs.h>
|
||||||
|
#include <core/profile.h>
|
||||||
|
|
||||||
namespace mlx::core
|
namespace mlx::core
|
||||||
{
|
{
|
||||||
class Application
|
class MLX_API Application
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Application();
|
Application();
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2022/10/04 17:42:32 by maldavid #+# #+# */
|
/* 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__
|
#define __MLX_ERRORS__
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <core/profile.h>
|
||||||
|
|
||||||
enum class e_kind
|
enum class e_kind
|
||||||
{
|
{
|
||||||
@@ -25,7 +26,7 @@ enum class e_kind
|
|||||||
|
|
||||||
namespace mlx::core::error
|
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__
|
#endif // __MLX_ERRORS__
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/10 08:49:17 by maldavid #+# #+# */
|
/* 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"
|
#warning "This compiler is not fully supported"
|
||||||
#endif
|
#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
|
// Checking common assumptions
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */
|
/* 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 <SDL2/SDL.h>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
namespace mlx
|
namespace mlx
|
||||||
@@ -30,7 +32,7 @@ namespace mlx
|
|||||||
void* param = nullptr;
|
void* param = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Input
|
class MLX_API Input
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Input();
|
Input();
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2022/10/08 19:16:32 by maldavid #+# #+# */
|
/* 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 <utils/singleton.h>
|
||||||
#include <core/errors.h>
|
#include <core/errors.h>
|
||||||
|
#include <core/profile.h>
|
||||||
|
|
||||||
namespace mlx
|
namespace mlx
|
||||||
{
|
{
|
||||||
@@ -42,7 +43,7 @@ namespace mlx
|
|||||||
|
|
||||||
constexpr const int MAX_FRAMES_IN_FLIGHT = 3;
|
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:
|
public:
|
||||||
Render_Core() = default;
|
Render_Core() = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user