Merge pull request #542 from rfht/main

build on OpenBSD via Linux pathways
This commit is contained in:
Louis Gombert 2024-08-20 18:30:23 +02:00 committed by GitHub
commit 10ce4e48b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -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})

View File

@ -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
>

View File

@ -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>:

View File

@ -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")