2023-08-18 05:11:25 +00:00
|
|
|
It was applied, then reverted (by mistake?) in 4d2c55348bc014.
|
|
|
|
|
|
|
|
It's been resubmitted here:
|
|
|
|
https://lists.gnu.org/archive/html/jami/2024-01/msg00005.html
|
2022-11-08 02:32:19 +00:00
|
|
|
|
2023-02-07 15:08:06 +00:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-03-25 01:25:08 +00:00
|
|
|
index 8d71b84b..36729698 100644
|
2023-02-07 15:08:06 +00:00
|
|
|
--- a/CMakeLists.txt
|
2022-11-08 02:32:19 +00:00
|
|
|
+++ b/CMakeLists.txt
|
2023-03-25 01:25:08 +00:00
|
|
|
@@ -136,7 +136,7 @@ set(CMAKE_MODULE_PATH
|
2022-11-08 02:32:19 +00:00
|
|
|
${CMAKE_MODULE_PATH} "${EXTRAS_DIR}/build/cmake/modules")
|
|
|
|
find_package(LibJami REQUIRED)
|
|
|
|
if(LIBJAMI_FOUND)
|
|
|
|
- include_directories(${LIBJAMI_INCLUDE_DIRS})
|
|
|
|
+ include_directories(${LIBJAMI_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(FindPython3)
|
2023-02-07 15:08:06 +00:00
|
|
|
diff --git a/extras/build/cmake/modules/FindLibJami.cmake b/extras/build/cmake/modules/FindLibJami.cmake
|
2023-03-25 01:25:08 +00:00
|
|
|
index 5cce45fc..11746cd8 100644
|
2023-02-07 15:08:06 +00:00
|
|
|
--- a/extras/build/cmake/modules/FindLibJami.cmake
|
2022-11-08 02:32:19 +00:00
|
|
|
+++ b/extras/build/cmake/modules/FindLibJami.cmake
|
2023-03-25 01:25:08 +00:00
|
|
|
@@ -20,30 +20,19 @@
|
2022-11-08 02:32:19 +00:00
|
|
|
|
|
|
|
# Once done, this find module will set:
|
|
|
|
#
|
|
|
|
-# LIBJAMI_INCLUDE_DIRS - libjami include directories
|
2023-03-25 01:25:08 +00:00
|
|
|
+# LIBJAMI_INCLUDE_DIR - libjami include directory
|
2022-11-08 02:32:19 +00:00
|
|
|
# LIBJAMI_FOUND - whether it was able to find the include directories
|
|
|
|
# LIBJAMI_LIB - path to libjami or libring library
|
|
|
|
|
|
|
|
set(LIBJAMI_FOUND true)
|
|
|
|
|
|
|
|
if(WITH_DAEMON_SUBMODULE)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${DAEMON_DIR}/src/jami)
|
|
|
|
+ set(LIBJAMI_INCLUDE_DIR ${DAEMON_DIR}/src/jami)
|
|
|
|
else()
|
|
|
|
- if(EXISTS ${LIBJAMI_INCLUDE_DIR}/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${LIBJAMI_INCLUDE_DIR})
|
|
|
|
- elseif(EXISTS ${LIBJAMI_BUILD_DIR}/jami/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${LIBJAMI_BUILD_DIR}/jami)
|
|
|
|
- elseif(EXISTS ${RING_INCLUDE_DIR}/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${RING_INCLUDE_DIR})
|
|
|
|
- elseif(EXISTS ${RING_BUILD_DIR}/jami/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${RING_BUILD_DIR}/jami)
|
|
|
|
- elseif(EXISTS ${CMAKE_INSTALL_PREFIX}/include/jami/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/include/jami)
|
2023-03-25 01:25:08 +00:00
|
|
|
- elseif(EXISTS ${CMAKE_INSTALL_PREFIX}/daemon/include/jami/jami.h)
|
|
|
|
- set(LIBJAMI_INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/daemon/include/jami)
|
2022-11-08 02:32:19 +00:00
|
|
|
- else()
|
|
|
|
+ find_path(LIBJAMI_INCLUDE_DIR jami.h PATH_SUFFIXES jami)
|
|
|
|
+ if(NOT LIBJAMI_INCLUDE_DIR)
|
|
|
|
message(STATUS "Jami daemon headers not found!
|
|
|
|
-Set -DLIBJAMI_BUILD_DIR or -DCMAKE_INSTALL_PREFIX")
|
2023-03-25 01:25:08 +00:00
|
|
|
+To build using the daemon git submodule, set -DWITH_DAEMON_SUBMODULE")
|
2022-11-08 02:32:19 +00:00
|
|
|
set(LIBJAMI_FOUND false)
|
|
|
|
endif()
|
|
|
|
endif()
|
2023-03-25 01:25:08 +00:00
|
|
|
@@ -115,5 +104,5 @@ endif()
|
2022-11-08 02:32:19 +00:00
|
|
|
# Restore the original value of CMAKE_FIND_LIBRARY_SUFFIXES.
|
|
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_orig})
|
|
|
|
|
|
|
|
-message(STATUS "Jami daemon headers are in " ${LIBJAMI_INCLUDE_DIRS})
|
|
|
|
+message(STATUS "Jami daemon headers are in " ${LIBJAMI_INCLUDE_DIR})
|
|
|
|
message(STATUS "Jami daemon library is at " ${LIBJAMI_LIB})
|
2023-02-07 15:08:06 +00:00
|
|
|
diff --git a/src/libclient/CMakeLists.txt b/src/libclient/CMakeLists.txt
|
2023-03-25 01:25:08 +00:00
|
|
|
index 144efaf5..cb87fc2a 100644
|
2023-02-07 15:08:06 +00:00
|
|
|
--- a/src/libclient/CMakeLists.txt
|
2022-11-08 02:32:19 +00:00
|
|
|
+++ b/src/libclient/CMakeLists.txt
|
|
|
|
@@ -62,7 +62,7 @@ set(CMAKE_MODULE_PATH
|
|
|
|
${CMAKE_MODULE_PATH} "${EXTRAS_DIR}/build/cmake/modules")
|
|
|
|
find_package(LibJami REQUIRED)
|
|
|
|
if(LIBJAMI_FOUND)
|
|
|
|
- include_directories(${LIBJAMI_INCLUDE_DIRS})
|
|
|
|
+ include_directories(${LIBJAMI_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
string(SUBSTRING ${CMAKE_GENERATOR} 0 14 CMAKE_GENERATOR_SHORT)
|
2023-02-07 15:08:06 +00:00
|
|
|
diff --git a/src/libclient/qtwrapper/CMakeLists.txt b/src/libclient/qtwrapper/CMakeLists.txt
|
2023-03-25 01:25:08 +00:00
|
|
|
index 46887051..a20658ad 100644
|
2023-02-07 15:08:06 +00:00
|
|
|
--- a/src/libclient/qtwrapper/CMakeLists.txt
|
|
|
|
+++ b/src/libclient/qtwrapper/CMakeLists.txt
|
2022-11-08 02:32:19 +00:00
|
|
|
@@ -46,7 +46,7 @@ else()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
-include_directories(${LIBJAMI_INCLUDE_DIRS})
|
|
|
|
+include_directories(${LIBJAMI_INCLUDE_DIR})
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../dbus)
|
|
|
|
|