-
Notifications
You must be signed in to change notification settings - Fork 26
RDKEMW-6898 : Upgrade GSSDP to latest version #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b30a48e
ff5a4ea
05bb19a
fd42dd9
23c602c
fdff39d
e6da76f
d6ce8c6
5a2e747
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -26,14 +26,24 @@ set (GDIAL_VERSION_MINOR 0) | |||||||||
| find_package (PkgConfig REQUIRED) | ||||||||||
| pkg_search_module (GLIB REQUIRED glib-2.0) | ||||||||||
| pkg_search_module (GIO REQUIRED gio-2.0) | ||||||||||
| pkg_search_module (GSSDP12 gssdp-1.2) | ||||||||||
| pkg_search_module (LIBSOUP3 libsoup-3.0) | ||||||||||
| if (GSSDP12_FOUND) | ||||||||||
| pkg_search_module (GSSDP REQUIRED gssdp-1.2) | ||||||||||
| add_definitions(-DHAVE_GSSDP_VERSION_1_2_OR_NEWER) | ||||||||||
| message("Using gssdp-1.2") | ||||||||||
| if (LIBSOUP3_FOUND) | ||||||||||
| add_definitions(-DHAVE_LIBSOUP_VERSION_3) | ||||||||||
| pkg_search_module (GSSDP16 gssdp-1.6) | ||||||||||
| if (GSSDP16_FOUND) | ||||||||||
| pkg_search_module (GSSDP REQUIRED gssdp-1.6) | ||||||||||
| add_definitions(-DHAVE_GSSDP_VERSION_1_6_OR_NEWER) | ||||||||||
| message("Using gssdp-1.6") | ||||||||||
| endif() | ||||||||||
| else() | ||||||||||
| pkg_search_module (GSSDP REQUIRED gssdp-1.0) | ||||||||||
| pkg_search_module (GSSDP12 gssdp-1.2) | ||||||||||
| if (GSSDP12_FOUND) | ||||||||||
| pkg_search_module (GSSDP REQUIRED gssdp-1.2) | ||||||||||
| add_definitions(-DHAVE_GSSDP_VERSION_1_2_OR_NEWER) | ||||||||||
| message("Using gssdp-1.2") | ||||||||||
| else() | ||||||||||
| pkg_search_module (GSSDP REQUIRED gssdp-1.0) | ||||||||||
| endif() | ||||||||||
| endif() | ||||||||||
| if (LIBSOUP3_FOUND) | ||||||||||
| pkg_search_module (SOUP REQUIRED libsoup-3.0) | ||||||||||
|
|
@@ -73,14 +83,27 @@ include_directories ( | |||||||||
| ${PROJECT_GLIB_INCLUDE_DIRS} | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| set (GDIAL_EXEC_SOURCE_FILES | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-util.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-app.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-rest.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-ssdp.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-shield.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdialservice.cpp | ||||||||||
| ) | ||||||||||
| if (LIBSOUP3_FOUND) | ||||||||||
| set (GDIAL_EXEC_SOURCE_FILES | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-util.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial-app.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-rest.c | ||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-ssdp.c | ||||||||||
|
Comment on lines
+90
to
+91
|
||||||||||
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-rest.c | |
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-ssdp.c | |
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-rest.c | |
| ${CMAKE_CURRENT_SOURCE_DIR}/gdial1p6-ssdp.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
LIBSOUP3_FOUNDis true, GSSDP is only set ifGSSDP16_FOUNDis true; otherwiseGSSDPis never marked REQUIRED and${GSSDP_INCLUDE_DIRS}/${GSSDP_LIBRARIES}may be empty, leading to build/link failures later. If libsoup3 builds require gssdp-1.6, makepkg_search_module(GSSDP REQUIRED gssdp-1.6)unconditional in that branch (or add a clear fallback/error path).