mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
94 lines
2.8 KiB
Plaintext
94 lines
2.8 KiB
Plaintext
From 91397ed3ae0efebfd2b8006cd3effef57f2c4e92 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Thu, 15 Aug 2019 20:00:02 +1000
|
|
Subject: Fix build for Haiku
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 693c09f..6b5bf0f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -55,7 +55,7 @@ find_package(KF5 REQUIRED COMPONENTS
|
|
# include(MacroPushRequiredVars) -> include(CMakePushCheckState)
|
|
# macro_push_required_vars() -> cmake_push_check_state()
|
|
# macro_pop_required_vars() -> cmake_pop_check_state()
|
|
-find_package(GPSim REQUIRED)
|
|
+find_package(GPSim)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
@@ -72,7 +72,7 @@ add_definitions(-fPIC)
|
|
if (KTECHLAB_DEVELOPER_BUILD)
|
|
# for debugging with GCC 5
|
|
add_definitions( -fno-omit-frame-pointer )
|
|
- set(SANITIZE_FLAGS " -fsanitize=address -fno-omit-frame-pointer -fPIC") # address
|
|
+ #set(SANITIZE_FLAGS " -fsanitize=address -fno-omit-frame-pointer -fPIC") # address
|
|
#set(SANITIZE_FLAGS " -fsanitize=undefined -fno-omit-frame-pointer ") # undefined
|
|
#set(SANITIZE_FLAGS "") # disabled
|
|
|
|
@@ -147,7 +147,7 @@ add_subdirectory( src )
|
|
add_subdirectory( examples )
|
|
add_subdirectory( icons )
|
|
add_subdirectory( icons-kde3 )
|
|
-add_subdirectory( doc )
|
|
+#add_subdirectory( doc )
|
|
|
|
add_subdirectory(tests)
|
|
|
|
diff --git a/microbe/CMakeLists.txt b/microbe/CMakeLists.txt
|
|
index 82dce56..8530915 100644
|
|
--- a/microbe/CMakeLists.txt
|
|
+++ b/microbe/CMakeLists.txt
|
|
@@ -19,7 +19,6 @@ add_executable(microbe ${microbe_SRCS})
|
|
target_link_libraries(microbe
|
|
KF5::KDELibs4Support
|
|
KF5::CoreAddons
|
|
- Qt5::Core
|
|
- pthread)
|
|
+ Qt5::Core)
|
|
|
|
install(TARGETS microbe ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
diff --git a/src/electronics/port.cpp b/src/electronics/port.cpp
|
|
index cc3d3b5..5bd7fa6 100644
|
|
--- a/src/electronics/port.cpp
|
|
+++ b/src/electronics/port.cpp
|
|
@@ -22,7 +22,7 @@
|
|
#include <sys/ioctl.h>
|
|
#include <unistd.h>
|
|
|
|
-#ifndef DARWIN
|
|
+#if !defined(DARWIN) && !defined(__HAIKU__)
|
|
#include <linux/ppdev.h>
|
|
#endif
|
|
|
|
@@ -39,7 +39,7 @@ Port::~Port()
|
|
|
|
QStringList Port::ports( unsigned probeResult )
|
|
{
|
|
-#ifndef DARWIN
|
|
+#if !defined(DARWIN) && !defined(__HAIKU__)
|
|
return SerialPort::ports(probeResult) + ParallelPort::ports(probeResult);
|
|
#else
|
|
return SerialPort::ports(probeResult);
|
|
@@ -120,7 +120,7 @@ bool SerialPort::pinState( Pin pin )
|
|
break;
|
|
|
|
case RD:
|
|
- mask = TIOCM_SR;
|
|
+ mask = TIOCM_DSR;
|
|
break;
|
|
|
|
case CTS:
|
|
@@ -264,7 +264,7 @@ const int INPUT_MODE_BIT = 1 << 21; // Controls if the data pins are input or ou
|
|
|
|
// No code using these values will be reached on Darwin, this is just to
|
|
// keep the preprocessor happy.
|
|
-#ifdef DARWIN
|
|
+#if defined(DARWIN) || defined(__HAIKU__)
|
|
#define PPRDATA 0xFACADE
|
|
#define PPRCONTROL 0xC001D00D
|
|
#define PPWDATA 0xC0EDBABE
|
|
--
|
|
2.21.0
|
|
|