Skip to content

Commit

Permalink
Add 'Fake' aribb25.pc for VLC aribb25 module build
Browse files Browse the repository at this point in the history
Change-Id: I0f1ba7b2a0be1aaf84fa52ae6988cf80736ed167
  • Loading branch information
koron393 committed Apr 13, 2024
1 parent a8fabef commit 0b8de61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ if(UNIX AND NOT CYGWIN)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink-${ARIBB25_LIB_NAME} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} RENAME arib25)
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)")

configure_file(aribb25/${ARIBB25_LIB_NAME}.pc.in ${ARIBB25_LIB_NAME}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ARIBB25_LIB_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake)

# ---------- install (Windows) ----------
Expand Down
11 changes: 11 additions & 0 deletions aribb25/aribb25.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=${prefix}/include

Name: @ARIBB25_LIB_NAME@
Description: @ARIBB25_DESCRIPTION@
URL: @ARIBB25_URL@
Version: @ARIBB25_VERSION_STRING@
Libs: -L${libdir} -l@ARIBB25_LIB_NAME@
Cflags: -I${includedir}

0 comments on commit 0b8de61

Please sign in to comment.