mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 20:00:04 -04:00
build on OpenBSD via Linux pathways
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user