Export C API functions on Win32.

This commit is contained in:
Peter Johnson
2015-08-04 00:15:00 -07:00
parent 7d409f071e
commit f683a5c63c
2 changed files with 39 additions and 0 deletions

View File

@@ -9,6 +9,9 @@ endif()
file(GLOB_RECURSE SRC_FILES src/*.cpp)
include_directories(include src)
if (WIN32)
set(SRC_FILES ${SRC_FILES} ntcore.def)
endif()
add_library(ntcore SHARED ${SRC_FILES})
set_target_properties(ntcore PROPERTIES VERSION 1.0.0 SOVERSION 1)
#target_link_libraries(ntcore)

36
ntcore.def Normal file
View File

@@ -0,0 +1,36 @@
LIBRARY NTCORE
EXPORTS
NT_GetEntryValue @1
NT_SetEntryValue @2
NT_SetEntryTypeValue @3
NT_SetEntryFlags @4
NT_GetEntryFlags @5
NT_DeleteEntry @6
NT_DeleteAllEntries @7
NT_GetEntryInfo @8
NT_Flush @9
NT_AddEntryListener @10
NT_RemoveEntryListener @11
NT_AddConnectionListener @12
NT_RemoveConnectionListener @13
NT_CreateRpc @14
NT_DeleteRpc @15
NT_CallRpc @16
NT_GetRpcResult @17
NT_SetNetworkIdentity @18
NT_StartServer @19
NT_StopServer @20
NT_StartClient @21
NT_StopClient @22
NT_SetUpdateRate @23
NT_GetConnections @24
NT_SavePersistent @25
NT_LoadPersistent @26
NT_DisposeValue @27
NT_InitValue @28
NT_DisposeString @29
NT_InitString @30
NT_DisposeConnectionInfoArray @31
NT_Now @32
NT_SetLogger @33