Skip to content

Commit

Permalink
Merge pull request xbmc#23906 from webosbrew/fix-acb-stub
Browse files Browse the repository at this point in the history
[webOS] Acb: Install empty dummy library
  • Loading branch information
sundermann authored Oct 11, 2023
2 parents 8afd788 + e4a4b8e commit 671c9b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cmake/modules/FindAcbAPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ if(NOT TARGET ACBAPI::ACBAPI)
IMPORTED_LOCATION "${ACBAPI_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${ACBAPI_INCLUDE_DIR}")
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP ACBAPI::ACBAPI)

# creates an empty library to install on webOS 5+ devices
file(TOUCH dummy.c)
add_library(AcbAPI SHARED dummy.c)
set_target_properties(AcbAPI PROPERTIES VERSION 1.0.0 SOVERSION 1)
endif()
endif()
4 changes: 2 additions & 2 deletions cmake/scripts/webos/Install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set(APP_INSTALL_DIRS ${CMAKE_BINARY_DIR}/addons
${CMAKE_BINARY_DIR}/userdata)
set(APP_TOOLCHAIN_FILES ${TOOLCHAIN}/${HOST}/sysroot/lib/libatomic.so.1
${TOOLCHAIN}/${HOST}/sysroot/lib/libcrypt.so.1
${DEPENDS_PATH}/lib/libAcbAPI.so.1)
${CMAKE_BINARY_DIR}/libAcbAPI.so.1)
set(BIN_ADDONS_DIR ${DEPENDS_PATH}/addons)

file(WRITE ${CMAKE_BINARY_DIR}/install.cmake "
Expand All @@ -54,7 +54,7 @@ file(WRITE ${CMAKE_BINARY_DIR}/install.cmake "

# Copy files to the location expected by the webOS packaging scripts.
add_custom_target(bundle
DEPENDS ${APP_NAME_LC} ${CMAKE_BINARY_DIR}/missing_libs.txt
DEPENDS ${APP_NAME_LC} ${CMAKE_BINARY_DIR}/missing_libs.txt AcbAPI
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/install.cmake
)

Expand Down

0 comments on commit 671c9b9

Please sign in to comment.