correct shared DLL compilation on Win32;

pull/121/head
Bryan Biedenkapp 1 month ago
parent 69aaced3cf
commit 0e1d45716f

@ -40,6 +40,7 @@ include(src/vocoder/CMakeLists.txt)
add_library(vocoder ${DVM_LIBRARY_TYPE} ${vocoder_SRC} ${vocoder_INCLUDE})
if (SHARED_LIBS)
target_compile_definitions(vocoder PRIVATE VOCODER_EXPORTS)
target_link_libraries(vocoder PRIVATE common)
else ()
target_compile_definitions(vocoder PUBLIC VOCODER_STATIC)
endif (SHARED_LIBS)

@ -132,15 +132,15 @@
/**
* @brief (Global) Display log level.
*/
extern uint32_t g_logDisplayLevel;
extern DVM_COMMON_API uint32_t g_logDisplayLevel;
/**
* @brief (Global) Flag for displaying timestamps on log entries (does not apply to syslog logging).
*/
extern bool g_disableTimeDisplay;
extern DVM_COMMON_API bool g_disableTimeDisplay;
/**
* @brief (Global) Flag indicating whether or not logging goes to the syslog.
*/
extern bool g_useSyslog;
extern DVM_COMMON_API bool g_useSyslog;
/**
* @brief (Global) Flag indicating whether or not network logging is disabled.
*/
@ -806,7 +806,7 @@ extern DVM_COMMON_API void LogFinalise();
* This is a variable argument function. This shouldn't be called directly, utilize the LogXXXX macros above, instead.
*/
template<typename ... Args>
DVM_COMMON_API void Log(uint32_t level, log_internal::SourceLocation sourceLoc, const std::string& fmt, Args... args)
void Log(uint32_t level, log_internal::SourceLocation sourceLoc, const std::string& fmt, Args... args)
{
using namespace log_internal;

@ -31,7 +31,7 @@
* @tparam T Type of data to store in RingBuffer.
*/
template<class T>
class DVM_COMMON_API RingBuffer {
class RingBuffer {
public:
/**
* @brief Initializes a new instance of the RingBuffer class.

@ -43,7 +43,7 @@ namespace lookups
* @ingroup lookups
*/
template <class T>
class DVM_COMMON_API LookupTable : public Thread {
class LookupTable : public Thread {
public:
/**
* @brief Initializes a new instance of the LookupTable class.

@ -49,7 +49,7 @@ namespace restapi
* HTTP client/server.
* @ingroup http
*/
struct HTTPPayload {
struct DVM_COMMON_API HTTPPayload {
/**
* @brief HTTP Status/Response Codes
*/

@ -633,7 +633,7 @@ namespace yaml
* @brief Serialization configuration structure, describing output behavior.
* @ingroup yaml
*/
struct SerializeConfig {
struct DVM_COMMON_API SerializeConfig {
/**
* @brief Initializes a new instance of the SerializeConfig struct.
* @param spaceIndentation Number of spaces per indentation.

@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#/*
# * Digital Voice Modem - Remote Command Client
# * Digital Voice Modem - Vocoder
# * GPLv2 Open Source. Use is subject to license terms.
# * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# *

Loading…
Cancel
Save

Powered by TurnKey Linux.