Compare commits

..

4 Commits

2 changed files with 4 additions and 3 deletions

View File

@@ -14,6 +14,6 @@ target_include_directories(nova
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
) )
target_compile_definitions(nova set_target_properties(nova PROPERTIES
PRIVATE NOVA_EXPORT_SYMBOLS DEFINE_SYMBOL NOVA_EXPORT_SYMBOLS
) )

View File

@@ -15,13 +15,14 @@
#else #else
#define NOVA_API __declspec(dllimport) #define NOVA_API __declspec(dllimport)
#endif #endif
#elif defined(NOVA_PLATFORM_LINUX) || defined(NOVA_PLATFORM_MACOS) #elif defined(NOVA_PLATFORM_MACOS) || defined(NOVA_PLATFORM_LINUX)
#if defined(NOVA_EXPORT_SYMBOLS) #if defined(NOVA_EXPORT_SYMBOLS)
#define NOVA_API __attribute__((visibility("default"))) #define NOVA_API __attribute__((visibility("default")))
#else #else
#define NOVA_API #define NOVA_API
#endif #endif
#else #else
#warning "NOVA_API is not defined for this platform"
#define NOVA_API #define NOVA_API
#endif #endif
#endif #endif