mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
Remove mman-win32 dependency
This commit is contained in:
parent
8e26431665
commit
d69fdffdd1
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule "external/mman-win32"]
|
|
||||||
path = external/mman-win32
|
|
||||||
url = https://github.com/witwall/mman-win32.git
|
|
4
cmake/external/CMakeLists.txt
vendored
4
cmake/external/CMakeLists.txt
vendored
@ -1,7 +1,3 @@
|
|||||||
##### External files
|
##### External files
|
||||||
|
|
||||||
set(EXTERNAL_PREFIX "${CMAKE_BINARY_DIR}/external")
|
set(EXTERNAL_PREFIX "${CMAKE_BINARY_DIR}/external")
|
||||||
|
|
||||||
if(MINGW)
|
|
||||||
include(mman-win32.cmake)
|
|
||||||
endif()
|
|
||||||
|
18
cmake/external/mman-win32.cmake
vendored
18
cmake/external/mman-win32.cmake
vendored
@ -1,18 +0,0 @@
|
|||||||
###### External Project: mman-win32
|
|
||||||
include(ExternalProject)
|
|
||||||
|
|
||||||
SET(MMAN_WIN32_PREFIX_DIR ${PROJECT_SOURCE_DIR}/external/mman-win32)
|
|
||||||
|
|
||||||
SET(MMAN_WIN32_SOURCES
|
|
||||||
${MMAN_WIN32_PREFIX_DIR}/mman.c)
|
|
||||||
add_library(mman
|
|
||||||
${MMAN_WIN32_SOURCES})
|
|
||||||
|
|
||||||
# The source folder for mman has mman.h, however, we require sys/mman.h
|
|
||||||
# To get this, we copy it to the build directory.. This gives us a virtual sys/ folder.
|
|
||||||
add_custom_command(
|
|
||||||
TARGET mman
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${MMAN_WIN32_PREFIX_DIR}/mman.h" "${CMAKE_CURRENT_BINARY_DIR}/include/sys/mman.h"
|
|
||||||
)
|
|
||||||
|
|
||||||
target_include_directories(mman INTERFACE SYSTEM ${CMAKE_CURRENT_BINARY_DIR}/include)
|
|
1
external/mman-win32
vendored
1
external/mman-win32
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit 8c7114f138d59aef428a271b00860c554c69920d
|
|
@ -135,8 +135,7 @@ add_library(rwengine
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
target_link_libraries(rwengine
|
target_link_libraries(rwengine)
|
||||||
mman)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(rwengine
|
target_link_libraries(rwengine
|
||||||
|
Loading…
Reference in New Issue
Block a user