refs #403 add BlackSound shared library build

This commit is contained in:
Roland Winklmeier
2015-04-10 21:54:32 +02:00
parent 9c81467fe9
commit d14ecb3db5
3 changed files with 30 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ precompile_header:!isEmpty(PRECOMPILED_HEADER) {
DEFINES += USING_PCH
}
DEFINES += LOG_IN_FILE
DEFINES += LOG_IN_FILE BUILD_BLACKSOUND_LIB
HEADERS += *.h
SOURCES += *.cpp

View File

@@ -0,0 +1,27 @@
/* Copyright (C) 2015
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKSOUND_MACROS_H
#define BLACKSOUND_MACROS_H
#include <QtGlobal>
#ifndef WITH_STATIC
# if defined(BUILD_BLACKSOUND_LIB)
# define BLACKSOUND_EXPORT Q_DECL_EXPORT
# else
# define BLACKSOUND_EXPORT Q_DECL_IMPORT
# endif
#else
# define BLACKSOUND_EXPORT
#endif
#endif // BLACKSOUND_MACROS_H

View File

@@ -12,6 +12,7 @@
#ifndef BLACKSOUND_SOUNDGENERATOR_H
#define BLACKSOUND_SOUNDGENERATOR_H
#include "blacksoundexport.h"
#include "blackmisc/aviation/selcal.h"
#include "blackmisc/audio/audiodeviceinfo.h"
#include "blackmisc/pq/time.h"
@@ -28,7 +29,7 @@ namespace BlackSound
{
//! Playing simple sounds
class CSoundGenerator : public QIODevice
class BLACKSOUND_EXPORT CSoundGenerator : public QIODevice
{
Q_OBJECT