TARGET_LINK_LIBRARIES(tag ${ZLIB_LIBRARIES})
endif(ZLIB_FOUND)
-SET_TARGET_PROPERTIES(tag PROPERTIES VERSION 1.4.0 SOVERSION 1 INSTALL_NAME_DIR ${LIB_INSTALL_DIR})
+SET_TARGET_PROPERTIES(tag PROPERTIES
+ VERSION 1.4.0
+ SOVERSION 1
+ INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
+ DEFINE_SYMBOL MAKE_TAGLIB_LIB
+)
INSTALL(TARGETS tag DESTINATION ${LIB_INSTALL_DIR} )
-INSTALL( FILES tag.h fileref.h audioproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
+INSTALL( FILES tag.h fileref.h audioproperties.h taglib_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
#ifndef TAGLIB_AUDIOPROPERTIES_H
#define TAGLIB_AUDIOPROPERTIES_H
+#include "taglib_export.h"
+
namespace TagLib {
//! A simple, abstract interface to common audio properties
* interface that is sufficient for most applications.
*/
- class AudioProperties
+ class TAGLIB_EXPORT AudioProperties
{
public:
#include <tstringlist.h>
+#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib {
* \see addFileTypeResolver()
*/
- class FileRef
+ class TAGLIB_EXPORT FileRef
{
public:
#ifndef TAGLIB_TAG_H
#define TAGLIB_TAG_H
+#include "taglib_export.h"
#include "tstring.h"
namespace TagLib {
* in TagLib::AudioProperties, TagLib::File and TagLib::FileRef.
*/
- class Tag
+ class TAGLIB_EXPORT Tag
{
public:
--- /dev/null
+/*
+ Copyright (c) 2006 Volker Krause <vkrause@kde.org>
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+ License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to the
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+*/
+
+#ifndef TAGLIB_EXPORT_H
+#define TAGLIB_EXPORT_H
+
+#if defined(_WIN32) || defined(_WIN64)
+#ifdef MAKE_TAGLIB_LIB
+#define TAGLIB_EXPORT __declspec(dllexport)
+#else
+#define TAGLIB_EXPORT __declspec(dllimport)
+#endif
+#else
+#define TAGLIB_EXPORT
+#endif
+
+#endif