1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 03:42:48 +01:00

Remove mman-win32 dependency

This commit is contained in:
darkf 2017-09-13 12:08:17 -05:00 committed by Daniel Evans
parent 8e26431665
commit d69fdffdd1
5 changed files with 1 additions and 28 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "external/mman-win32"]
path = external/mman-win32
url = https://github.com/witwall/mman-win32.git

View File

@ -1,7 +1,3 @@
##### External files
set(EXTERNAL_PREFIX "${CMAKE_BINARY_DIR}/external")
if(MINGW)
include(mman-win32.cmake)
endif()

View File

@ -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 +0,0 @@
Subproject commit 8c7114f138d59aef428a271b00860c554c69920d

View File

@ -135,8 +135,7 @@ add_library(rwengine
)
if(MINGW)
target_link_libraries(rwengine
mman)
target_link_libraries(rwengine)
endif()
target_link_libraries(rwengine