Merge remote-tracking branch 'gperks/master'

Conflicts:
	taglib/asf/asfpicture.cpp
	taglib/it/itproperties.h
This commit is contained in:
Lukáš Lalinský 2011-07-28 19:03:46 +02:00
commit 0730076a0f
8 changed files with 33 additions and 9 deletions

View File

@ -9,6 +9,7 @@ if(ENABLE_STATIC)
else()
set(BUILD_SHARED_LIBS ON)
endif()
OPTION(ENABLE_STATIC_RUNTIME "Visual Studio, link with runtime statically" OFF)
option(BUILD_TESTS "Build the test suite" OFF)
option(BUILD_EXAMPLES "Build the examples" OFF)
@ -34,6 +35,11 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()
if (MSVC AND ENABLE_STATIC_RUNTIME)
foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endforeach(flag_var)
endif()
set(TAGLIB_LIB_MAJOR_VERSION "1")
set(TAGLIB_LIB_MINOR_VERSION "7")

22
INSTALL
View File

@ -30,7 +30,27 @@ an Universal Binary framework with Mac OS X 10.4 as the deployment target:
-DCMAKE_CXX_COMPILER=/usr/bin/c++-4.0 \
-DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk/ \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.4 \
-DCMAKE_OSX_ARCHITECTURES="ppc;i368;x86_64"
-DCMAKE_OSX_ARCHITECTURES="ppc;i386;x86_64"
For a 10.6 Snow Leopard static library, use:
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.6 \
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DENABLE_STATIC=ON \
-DCMAKE_INSTALL_PREFIX="<folder you want to build to>"
After 'make', and 'make install', add libtag.a to your XCode project, and add
the include folder to the project's User Header Search Paths.
For Windows with Visual Studio 2010, cd to the taglib folder then:
md build
cd build
cmake -DENABLE_STATIC=ON -DENABLE_STATIC_RUNTIME=ON -G "Visual Studio 10" ..
Including ENABLE_STATIC_RUNTIME=ON indicates you want taglib built using the
static runtime library, rather than the DLL form of the runtime.
cmake will create a Visual Studio solution, taglib.sln that you can open and
build as normal.
Unit Tests
----------

View File

@ -35,8 +35,9 @@
using namespace TagLib;
struct ASF::Picture::PicturePriavte : public RefCounter
class ASF::Picture::PicturePrivate : public RefCounter
{
public:
bool valid;
Type type;
String mimeType;
@ -50,7 +51,7 @@ struct ASF::Picture::PicturePriavte : public RefCounter
ASF::Picture::Picture()
{
d = new PicturePriavte();
d = new PicturePrivate();
d->valid = true;
}

View File

@ -208,8 +208,8 @@ namespace TagLib
friend class Attribute;
#endif
private:
struct PicturePriavte;
PicturePriavte *d;
class PicturePrivate;
PicturePrivate *d;
};
}
}

View File

@ -41,7 +41,6 @@ namespace TagLib {
uint instrumentCount() const;
uchar lengthInPatterns() const;
protected:
void setChannels(int channels);
void setInstrumentCount(uint sampleCount);

View File

@ -61,7 +61,6 @@ namespace TagLib {
uchar tempo() const;
uchar bpmSpeed() const;
protected:
void setChannels(int channels);
void setLengthInPatterns (ushort lengthInPatterns);

View File

@ -65,7 +65,7 @@
/*!
* This namespace contains everything in TagLib. For projects working with
* TagLib extensively it may be conveniten to add a
* TagLib extensively it may be convenient to add a
* \code
* using namespace TagLib;
* \endcode

View File

@ -54,7 +54,6 @@ namespace TagLib {
ushort tempo() const;
ushort bpmSpeed() const;
protected:
void setChannels(int channels);
void setLengthInPatterns(ushort lengthInPatterns);