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
)
target_compile_definitions(nova
PRIVATE NOVA_EXPORT_SYMBOLS
set_target_properties(nova PROPERTIES
DEFINE_SYMBOL NOVA_EXPORT_SYMBOLS
)

View File

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