Skip to content

Commit 84d2c72

Browse files
committed
Add pkg-config file
1 parent 8cdd099 commit 84d2c72

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Build/pkgconfig/bento4.pc.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
3+
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
4+
5+
Name: @PROJECT_NAME@
6+
Description: Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
7+
Version: @BENTO4_VERSION@
8+
Libs: -L${libdir} -lap4
9+
Cflags: -I${includedir}/bento4

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ configure_package_config_file(
124124
INSTALL_DESTINATION "${config_install_dir}"
125125
)
126126

127+
configure_file(
128+
"Build/pkgconfig/bento4.pc.in"
129+
"${generated_dir}/bento4.pc"
130+
@ONLY
131+
)
132+
127133
install(
128134
TARGETS ap4 ${BENTO4_APPS_LOWERCASE}
129135
EXPORT "${TARGETS_EXPORT_NAME}"
@@ -143,6 +149,11 @@ install(
143149
DESTINATION "${config_install_dir}"
144150
)
145151

152+
install(
153+
FILES "${generated_dir}/bento4.pc"
154+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
155+
)
156+
146157
install(
147158
EXPORT "${TARGETS_EXPORT_NAME}"
148159
NAMESPACE "${namespace}"

0 commit comments

Comments
 (0)