From b14b8d07facba8564a37e6dd2a346f0e490de89d Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 13 Dec 2016 20:58:03 +0000 Subject: [PATCH] Add compatibility pkg-config modules: libtoxcore, libtoxav. These were generated by the autotools build. Some clients may depend on these files instead of the newer split pkg-config files. New clients should be using the toxcore, toxav, toxencryptsave, and toxdns modules. --- CMakeLists.txt | 14 ++++++++++++++ other/pkgconfig/libtoxav.pc.in | 8 ++++++++ other/pkgconfig/libtoxcore.pc.in | 8 ++++++++ 3 files changed, 30 insertions(+) create mode 100644 other/pkgconfig/libtoxav.pc.in create mode 100644 other/pkgconfig/libtoxcore.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 29f09efbb..0733d83b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,7 +551,20 @@ configure_file( @ONLY ) +configure_file( + "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxcore.pc.in" + "${CMAKE_BINARY_DIR}/libtoxcore.pc" + @ONLY +) + +configure_file( + "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxav.pc.in" + "${CMAKE_BINARY_DIR}/libtoxav.pc" + @ONLY +) + install(FILES + ${CMAKE_BINARY_DIR}/libtoxcore.pc ${CMAKE_BINARY_DIR}/toxcore.pc ${CMAKE_BINARY_DIR}/toxdns.pc ${CMAKE_BINARY_DIR}/toxencryptsave.pc @@ -564,6 +577,7 @@ install(FILES if(BUILD_TOXAV) install(FILES + ${CMAKE_BINARY_DIR}/libtoxav.pc ${CMAKE_BINARY_DIR}/toxav.pc DESTINATION "lib/pkgconfig") install(FILES diff --git a/other/pkgconfig/libtoxav.pc.in b/other/pkgconfig/libtoxav.pc.in new file mode 100644 index 000000000..e0b95b48f --- /dev/null +++ b/other/pkgconfig/libtoxav.pc.in @@ -0,0 +1,8 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libtoxav +Description: Tox A/V library - compatibility module (use toxav instead) +Requires: toxav +Version: @PROJECT_VERSION@ diff --git a/other/pkgconfig/libtoxcore.pc.in b/other/pkgconfig/libtoxcore.pc.in new file mode 100644 index 000000000..c5588bb4a --- /dev/null +++ b/other/pkgconfig/libtoxcore.pc.in @@ -0,0 +1,8 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libtoxcore +Description: Tox protocol library - compatibility module (use toxcore, toxdns, and toxencryptsave instead) +Requires: toxcore toxdns toxencryptsave +Version: @PROJECT_VERSION@