meta: add msvc support
since bluelib is already cross-platform, this is mostly just adding __declspec(dllexport) to the library functions.
This commit is contained in:
@@ -2,3 +2,5 @@ file(GLOB_RECURSE asm_sources *.c *.h include/ivy/asm/*.h)
|
||||
|
||||
add_library(ivy-asm SHARED ${asm_sources})
|
||||
target_include_directories(ivy-asm PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||
target_link_libraries(ivy-asm ivy-common)
|
||||
target_compile_definitions(ivy-asm PRIVATE IVY_EXPORT=1)
|
||||
8
asm/include/ivy/asm/lex.h
Normal file
8
asm/include/ivy/asm/lex.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef IVY_ASM_LEX_H_
|
||||
#define IVY_ASM_LEX_H_
|
||||
|
||||
#include <ivy/misc.h>
|
||||
|
||||
IVY_API void placeholder12(void);
|
||||
|
||||
#endif
|
||||
6
asm/lex.c
Normal file
6
asm/lex.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <ivy/asm/lex.h>
|
||||
|
||||
IVY_API void placeholder12(void)
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user