Skip to content

Commit

Permalink
Initial Haiku port
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Dec 18, 2023
1 parent 4c5eae3 commit 70dca45
Show file tree
Hide file tree
Showing 8 changed files with 529 additions and 8 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ else()
if(SCREENSHOT_BUILD)
set(TMS_BACKEND "screenshot-linux")
else()
set(TMS_BACKEND "linux")
if(HAIKU)
set(TMS_BACKEND "haiku")
else()
set(TMS_BACKEND "linux")
endif()
endif()
endif()

Expand Down Expand Up @@ -169,7 +173,11 @@ else()
if(SCREENSHOT_BUILD)
set(COMMON_FLAGS "${COMMON_FLAGS} -DNO_UI -DTMS_BACKEND_LINUX_SS")
else()
set(COMMON_FLAGS "${COMMON_FLAGS} -DTMS_BACKEND_LINUX")
if(HAIKU)
set(COMMON_FLAGS "${COMMON_FLAGS} -DTMS_BACKEND_HAIKU")
else()
set(COMMON_FLAGS "${COMMON_FLAGS} -DTMS_BACKEND_LINUX")
endif()
endif()
endif()

Expand Down
2 changes: 2 additions & 0 deletions src/src/main.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class pkginfo;
# endif
#elif defined(TMS_BACKEND_IOS)
#define OS_STRING "iOS"
#elif defined(TMS_BACKEND_HAIKU)
#define OS_STRING "Haiku"
#else
#define OS_STRING "unknown"
#endif
Expand Down
Loading

0 comments on commit 70dca45

Please sign in to comment.