build on OpenBSD via Linux pathways

This commit is contained in:
thfrwn
2024-08-20 10:03:24 -04:00
parent 3cb1e8911a
commit 35bcbe8bf0
4 changed files with 5 additions and 5 deletions

View File

@@ -136,7 +136,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")