mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Merge pull request #542 from rfht/main
build on OpenBSD via Linux pathways
This commit is contained in:
commit
10ce4e48b7
@ -138,7 +138,7 @@ find_package(SDL2 REQUIRED)
|
||||
message("SDL2 Include Dir is ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS}")
|
||||
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
message("Building for Linux")
|
||||
add_compile_definitions(POSIX __LINUX__ _USE_OGL_ACTIVE_TEXTURES PRIMARY_HOG=\"d3-linux.hog\")
|
||||
set(PLATFORM_INCLUDES "lib/linux" ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS})
|
||||
|
@ -4,7 +4,7 @@ set(HEADERS
|
||||
mono.h)
|
||||
set(CPPS
|
||||
debug.cpp
|
||||
$<$<PLATFORM_ID:Darwin,Linux>:
|
||||
$<$<PLATFORM_ID:Darwin,Linux,OpenBSD>:
|
||||
lnxdebug.cpp
|
||||
lnxmono.cpp
|
||||
>
|
||||
|
@ -16,7 +16,7 @@ set(CPPS
|
||||
lnxkey_null.cpp
|
||||
lnxmouse.cpp
|
||||
lnxkey_sdl.cpp
|
||||
$<$<PLATFORM_ID:Darwin,Linux>:
|
||||
$<$<PLATFORM_ID:Darwin,Linux,OpenBSD>:
|
||||
lnxfile.cpp
|
||||
>
|
||||
$<$<PLATFORM_ID:Windows>:
|
||||
|
@ -7,7 +7,7 @@ set(HEADERS
|
||||
osiris_import.h
|
||||
osiris_vector.h)
|
||||
set(CPPS
|
||||
$<$<PLATFORM_ID:Darwin,Linux>:
|
||||
$<$<PLATFORM_ID:Darwin,Linux,OpenBSD>:
|
||||
linux_lib.cpp
|
||||
>
|
||||
)
|
||||
@ -87,7 +87,7 @@ foreach(SCRIPT ${SCRIPTS})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
set(HOG_NAME "linux")
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(HOG_NAME "osx")
|
||||
|
Loading…
Reference in New Issue
Block a user