Skip to content

Commit

Permalink
Removed translation library dependency for plugin
Browse files Browse the repository at this point in the history
Removed translation library dependency for plugin pt2

Removed translation library dependency for plugin pt2
  • Loading branch information
LufeBisect committed Dec 20, 2024
1 parent 536104a commit 9c38482
Show file tree
Hide file tree
Showing 14 changed files with 704 additions and 632 deletions.
39 changes: 39 additions & 0 deletions cpp/demos/config/nmos_plugin_node_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"node": {
"id": "d5504cd1-fe68-489d-99d4-20d3f075f062",
"configuration": {
"label": "BISECT OSSRF Node2",
"description": "BISECT OSSRF node2",
"host_addresses": [
"192.168.1.120"
],
"interfaces": [
{
"chassis_id": "c8-94-02-f7-3e-eb",
"name": "wlp1s0",
"port_id": "00-e0-4c-68-01-8d"
}
],
"clocks": [
{
"name": "clk0",
"ref_type": "ptp",
"traceable": false,
"version": "IEEE1588-2008",
"gmid": "00-20-fc-ff-fe-35-9c-25",
"locked": true
}
],
"registry_address": "192.168.1.120",
"registry_version": "v1.3",
"registration_port": 8010,
"system_address": "192.168.1.120",
"system_version": "v1.0",
"system_port": 8010,
"http_port": 5113
}
},
"device": {},
"receivers": [],
"senders": []
}
2 changes: 1 addition & 1 deletion cpp/demos/ossrf-nmos-api/config/nmos_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@
}
}
]
}
}
72 changes: 0 additions & 72 deletions cpp/demos/ossrf-nmos-api/config/nmos_plugin_config.json

This file was deleted.

14 changes: 0 additions & 14 deletions cpp/demos/ossrf-nmos-api/config/nmos_receiver_config.json

This file was deleted.

25 changes: 0 additions & 25 deletions cpp/demos/ossrf-nmos-api/config/nmos_sender_config.json

This file was deleted.

1 change: 0 additions & 1 deletion cpp/libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ add_subdirectory(bisect_sdp)
add_subdirectory(bisect_gst)
add_subdirectory(gst_nmos_sender_plugin)
add_subdirectory(ossrf_nmos_api)
add_subdirectory(ossrf_c_nmos_api)
add_subdirectory(ossrf_gstreamer_api)
add_subdirectory(bisect_json)
21 changes: 15 additions & 6 deletions cpp/libs/gst_nmos_sender_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(gst_nmos_sender_plugin LANGUAGES C)
project(gst_nmos_sender_plugin LANGUAGES CXX)

# Define the path to the ossrf_c_nmos_api directory
set(OSSRF_C_NMOS_API_PATH "../ossrf_c_nmos_api/")
find_package(nlohmann_json REQUIRED)
find_package(PkgConfig REQUIRED)

# Find required GStreamer packages
find_package(PkgConfig REQUIRED)
Expand All @@ -12,13 +12,13 @@ pkg_search_module(GSTREAMER_AUDIO REQUIRED gstreamer-audio-1.0>=1.4)
pkg_search_module(GSTREAMER_VIDEO REQUIRED gstreamer-video-1.0>=1.4)

# Include source files
file(GLOB_RECURSE ${PROJECT_NAME}_source_files *.c *.h)
file(GLOB_RECURSE ${PROJECT_NAME}_source_files *.cpp *.h)

# Define the plugin as a shared library
add_library(${PROJECT_NAME} MODULE ${${PROJECT_NAME}_source_files})

# Include directories
target_include_directories(${PROJECT_NAME} PRIVATE ${GSTREAMER_INCLUDE_DIRS} ${OSSRF_C_NMOS_API_PATH})
target_include_directories(${PROJECT_NAME} PRIVATE ${GSTREAMER_INCLUDE_DIRS})

# Link GStreamer libraries
target_compile_options(${PROJECT_NAME} PRIVATE ${GSTREAMER_CFLAGS_OTHER})
Expand All @@ -27,7 +27,14 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
${GSTREAMER_APP_LIBRARIES}
${GSTREAMER_AUDIO_LIBRARIES}
${GSTREAMER_VIDEO_LIBRARIES}
ossrf::ossrf_c_nmos_api)
PUBLIC
bisect::project_warnings
bisect::expected
bisect::bisect_nmoscpp
bisect::bisect_json
nlohmann_json::nlohmann_json
ossrf::ossrf_nmos_api
${GLIB_LIBRARIES})

# Specify the output directory and the library name
set_target_properties(${PROJECT_NAME} PROPERTIES
Expand All @@ -40,3 +47,5 @@ add_library(ossrf::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
# Install the plugin to the system's GStreamer plugin directory
install(TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION ~/.local/lib/gstreamer-1.0)

add_subdirectory(utils)
Loading

0 comments on commit 9c38482

Please sign in to comment.