diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-22 17:29:42 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-22 17:34:39 +0000 |
commit | c8359c843b3f2a693e5c9ff47e1a9a0f288fa26d (patch) | |
tree | 182beea3f56701bba9e19116397beb5bfcc216d5 /CMakeLists.txt | |
parent | d7471482d133c00c61016335c8518b02c6ac9bc7 (diff) |
Fix toxcore.pc generation.
It's missing vpx and opus at the moment.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cea97fce..d14538d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -215,6 +215,18 @@ endif() | |||
215 | # | 215 | # |
216 | ################################################################################ | 216 | ################################################################################ |
217 | 217 | ||
218 | # toxcore_PKGCONFIG_LIBS is what's added to the Libs: line in toxcore.pc. It | ||
219 | # needs to contain all the libraries a program using toxcore should link against | ||
220 | # if it's statically linked. If it's dynamically linked, there is no need to | ||
221 | # explicitly link against all the dependencies, but it doesn't harm much(*) | ||
222 | # either. | ||
223 | # | ||
224 | # (*) It allows client code to use symbols from our dependencies without | ||
225 | # explicitly linking against them. | ||
226 | set(toxcore_PKGCONFIG_LIBS) | ||
227 | # Requires: in pkg-config file. | ||
228 | set(toxcore_PKGCONFIG_REQUIRES) | ||
229 | |||
218 | # LAYER 1: Crypto core | 230 | # LAYER 1: Crypto core |
219 | # -------------------- | 231 | # -------------------- |
220 | apidsl(toxcore/crypto_core.api.h) | 232 | apidsl(toxcore/crypto_core.api.h) |
@@ -227,7 +239,7 @@ include(CheckFunctionExists) | |||
227 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) | 239 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) |
228 | check_function_exists(memset_s HAVE_MEMSET_S) | 240 | check_function_exists(memset_s HAVE_MEMSET_S) |
229 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${LIBSODIUM_LIBRARIES}) | 241 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${LIBSODIUM_LIBRARIES}) |
230 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} libsodium) | 242 | set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} libsodium) |
231 | 243 | ||
232 | # LAYER 2: Basic networking | 244 | # LAYER 2: Basic networking |
233 | # ------------------------- | 245 | # ------------------------- |
@@ -364,12 +376,12 @@ endif() | |||
364 | 376 | ||
365 | if(RT_LIBRARIES) | 377 | if(RT_LIBRARIES) |
366 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${RT_LIBRARIES}) | 378 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${RT_LIBRARIES}) |
367 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} "-lrt") | 379 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} -lrt) |
368 | endif() | 380 | endif() |
369 | 381 | ||
370 | if(WIN32) | 382 | if(WIN32) |
371 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ws2_32 iphlpapi) | 383 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ws2_32 iphlpapi) |
372 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} "-lws2_32 -liphlpapi") | 384 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} -lws2_32 -liphlpapi) |
373 | endif() | 385 | endif() |
374 | 386 | ||
375 | ################################################################################ | 387 | ################################################################################ |