mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Rename several Windows files to use the same naming scheme.
[skip alpine ci] [skip irctest ci] [skip macos ci] [skip ubuntu ci]
This commit is contained in:
parent
b4e3e97329
commit
fd564cd44a
@ -37,7 +37,7 @@
|
||||
* order to build on Windows correctly.
|
||||
*/
|
||||
#if defined _WIN32
|
||||
# include "inspircd_win32wrapper.h"
|
||||
# include "win32wrapper.h"
|
||||
#else
|
||||
# define DllExport __attribute__ ((visibility ("default")))
|
||||
# define CoreExport __attribute__ ((visibility ("default")))
|
||||
|
@ -45,7 +45,7 @@ string(REGEX REPLACE ".*InspIRCd-([^\"]+).*" "\\1" VERSION_FULL "${VERSIONSH}")
|
||||
file(GLOB INSPIRCD_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
"${INSPIRCD_BASE}/src/*.cpp"
|
||||
"${INSPIRCD_BASE}/src/socketengines/select.cpp"
|
||||
"${INSPIRCD_BASE}/win/inspircd_win32wrapper.cpp"
|
||||
"${INSPIRCD_BASE}/win/win32wrapper.cpp"
|
||||
"${INSPIRCD_BASE}/win/win32service.cpp"
|
||||
)
|
||||
list(SORT INSPIRCD_SOURCES)
|
||||
@ -54,14 +54,14 @@ include_directories("${INSPIRCD_BASE}/win" "${INSPIRCD_BASE}/include")
|
||||
include_directories(SYSTEM "${INSPIRCD_BASE}/vendor")
|
||||
|
||||
if(MSVC)
|
||||
add_library(win32_memory STATIC "${INSPIRCD_BASE}/win/inspircd_memory_functions.cpp")
|
||||
add_library(win32memory STATIC "${INSPIRCD_BASE}/win/win32memory.cpp")
|
||||
endif()
|
||||
|
||||
configure_file("${INSPIRCD_BASE}/win/inspircd.rc.cmake" "${INSPIRCD_BASE}/win/inspircd.rc")
|
||||
configure_file("${INSPIRCD_BASE}/make/template/config.h" "${INSPIRCD_BASE}/include/config.h")
|
||||
|
||||
add_executable(inspircd ${INSPIRCD_SOURCES} "${INSPIRCD_BASE}/win/inspircd.rc")
|
||||
target_link_libraries(inspircd win32_memory)
|
||||
target_link_libraries(inspircd win32memory)
|
||||
set_target_properties(inspircd PROPERTIES COMPILE_DEFINITIONS "FMT_LIB_EXPORT" ENABLE_EXPORTS ON)
|
||||
install(TARGETS inspircd RUNTIME DESTINATION .)
|
||||
|
||||
|
@ -64,8 +64,8 @@ foreach(MODULE_NAME ${INSPIRCD_MODULES})
|
||||
target_link_libraries(${BASE_NAME} inspircd)
|
||||
add_dependencies(${BASE_NAME} inspircd)
|
||||
if(MSVC)
|
||||
target_link_libraries(${BASE_NAME} win32_memory)
|
||||
add_dependencies(${BASE_NAME} win32_memory)
|
||||
target_link_libraries(${BASE_NAME} win32memory)
|
||||
add_dependencies(${BASE_NAME} win32memory)
|
||||
endif()
|
||||
|
||||
if(CONAN_CXX_FLAGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user