The core now uses cmake. Please update CMakeLists.txt if any files are added/removed. Also started adapting the core to be GNU compatible. It'll be done in small steps, often committed as I don't have lots of time and can't risk my copy becoming out of date.

Jooles
This commit is contained in:
Urioxis 2009-05-05 17:35:58 +00:00
parent dff9ba2702
commit 9c7159776a
2 changed files with 94 additions and 1 deletions

90
src/core/CMakeLists.txt Normal file
View File

@ -0,0 +1,90 @@
project( core )
SET (CMAKE_BUILD_TYPE DEBUG)
set(SOURCES
pch.cpp
pch.hpp
PlaybackQueue.cpp
Common.cpp
Crypt.cpp
Image.cpp
MessageQueue.cpp
Preferences.cpp
ThreadHelper.cpp
tracklist/Base.cpp
tracklist/LibraryList.cpp
tracklist/MultiLibraryList.cpp
Indexer.cpp
LibraryFactory.cpp
Query/Base.cpp
Query/Factory.cpp
Query/ListBase.cpp
Query/ListSelection.cpp
Query/SortTracks.cpp
Query/SortTracksWithData.cpp
Query/TrackMetadata.cpp
Library/Base.cpp
Library/LocalDB.cpp
Library/Remote.cpp
db/CachedStatement.cpp
db/Connection.cpp
db/ScopedTransaction.cpp
db/Statement.cpp
MetadataValue.cpp
MetaKey.cpp
NonLibraryTrackHelper.cpp
PluginFactory.cpp
audio/Buffer.cpp
audio/Player.cpp
audio/Stream.cpp
audio/Transport.cpp
server/Connection.cpp
Server.cpp
server/User.cpp
server/UserSession.cpp
xml/Node.cpp
xml/Parser.cpp
xml/ParserNode.cpp
xml/Socket.cpp
xml/Writer.cpp
xml/WriterNode.cpp
http/RequestParser.cpp
http/Responder.cpp
http/Server.cpp
http/TrackSender.cpp
filestreams/Factory.cpp
filestreams/LocalFileStream.cpp
GenericTrack.cpp
IndexerTrack.cpp
LibraryTrack.cpp
Track.cpp
TrackFactory.cpp
)
set (WINDOWS_EXTRAS
)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DWIN32)
if(NOT DEFINED MINGW)
SET(SOURCES ${SOURCES} ${WINDOWS_EXTRAS})
endif(NOT DEFINED MINGW)
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")
include_directories(
..
../3rdparty/include
../3rdparty/include/jpeg-6b
)
add_definitions(
-DXML_STATIC
-D_CRT_SECURE_NO_DEPRECATE
-D_DEBUG
)
add_library( core STATIC ${SOURCES} )

View File

@ -52,12 +52,15 @@
#else
#define DLLEXPORT __declspec( dllimport )
#endif
typedef unsigned __int64 UINT64;
#else
typedef unsigned long long UINT64;
typedef long long __int64; //TODO: Is this necessary?
#endif // WIN32
////////////////////////////////
typedef unsigned __int64 UINT64;
typedef unsigned int DBINT;
typedef UINT64 VERSION;
typedef unsigned int DBTIME;