Skip to content

Commit

Permalink
Add pkg-config file
Browse files Browse the repository at this point in the history
  • Loading branch information
dguglielmi committed May 9, 2024
1 parent 8cdd099 commit 84d2c72
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Build/pkgconfig/bento4.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@

Name: @PROJECT_NAME@
Description: Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
Version: @BENTO4_VERSION@
Libs: -L${libdir} -lap4
Cflags: -I${includedir}/bento4
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ configure_package_config_file(
INSTALL_DESTINATION "${config_install_dir}"
)

configure_file(
"Build/pkgconfig/bento4.pc.in"
"${generated_dir}/bento4.pc"
@ONLY
)

install(
TARGETS ap4 ${BENTO4_APPS_LOWERCASE}
EXPORT "${TARGETS_EXPORT_NAME}"
Expand All @@ -143,6 +149,11 @@ install(
DESTINATION "${config_install_dir}"
)

install(
FILES "${generated_dir}/bento4.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
)

install(
EXPORT "${TARGETS_EXPORT_NAME}"
NAMESPACE "${namespace}"
Expand Down

0 comments on commit 84d2c72

Please sign in to comment.