You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(25) |
Jul
(288) |
Aug
(119) |
Sep
(31) |
Oct
(59) |
Nov
(458) |
Dec
(359) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(268) |
Feb
(26) |
Mar
(36) |
Apr
(48) |
May
(119) |
Jun
(37) |
Jul
(173) |
Aug
(429) |
Sep
(137) |
Oct
(156) |
Nov
(59) |
Dec
(45) |
| 2011 |
Jan
(398) |
Feb
(257) |
Mar
(49) |
Apr
(5) |
May
(34) |
Jun
(11) |
Jul
(38) |
Aug
(12) |
Sep
(1) |
Oct
(49) |
Nov
(5) |
Dec
(10) |
| 2012 |
Jan
(21) |
Feb
(32) |
Mar
(20) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(173) |
Aug
|
Sep
(25) |
Oct
(6) |
Nov
(44) |
Dec
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:49
|
Module: performous
Branch: dance
Commit: c32b0e39924263b0c7727a269d7b7a0079be51e6
Author: Lasse Karkkainen <tro...@tr...>
Date: Fri Nov 27 16:19:53 2009 +0200
Made libs part of performous build again
---
CMakeLists.txt | 3 ++-
docs/Compiling.txt | 16 +++-------------
game/CMakeLists.txt | 16 ++++++++++++----
libs/CMakeLists.txt | 8 ++++++++
libs/libda/CMakeLists.txt | 30 +++++++++++++++++-------------
libs/libda/src/CMakeLists.txt | 4 +++-
libs/plugin++/CMakeLists.txt | 16 +++++++++-------
7 files changed, 54 insertions(+), 39 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 35002bb..6437a8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
-include("${CMAKE_SOURCE_DIR}/cmake/performous-packaging.cmake")
+include(cmake/performous-packaging.cmake)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
@@ -32,6 +32,7 @@ mark_as_advanced(SHARE_INSTALL)
include_directories(libs/plugin++/include)
include_directories(libs/libda/include)
+add_subdirectory(libs)
add_subdirectory(themes)
add_subdirectory(data)
add_subdirectory(game)
diff --git a/docs/Compiling.txt b/docs/Compiling.txt
index 4327ad9..ef02a4b 100644
--- a/docs/Compiling.txt
+++ b/docs/Compiling.txt
@@ -2,21 +2,11 @@ To install from git:
# Checkout the git
git clone git://performous.git.sourceforge.net/gitroot/performous/performous
- # Create separate build folder under trunk to avoid polluting the source three
+ # Create separate build folder under trunk to avoid polluting the source tree
mkdir performous/build
cd performous/build
- # Compile and install libplugin++ (our C++ plugin/DLL library)
- cmake ../libs/plugin++/
- make
- sudo make install
- rm -rf *
- # Compile and install libda (our audio library)
- cmake ../libs/libda/
- make
- sudo make install
- rm -rf *
- # Compile the game itself
- cmake ..
+ # Compile the game and its support libraries
+ cmake ../
make
sudo make install
# Run the game
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt
index 66b61da..951e708 100644
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -9,20 +9,28 @@ set(SOURCES ${SOURCE_FILES} ${HEADER_FILES})
find_package(Boost 1.36 REQUIRED COMPONENTS thread date_time program_options regex filesystem)
include_directories(${Boost_INCLUDE_DIRS})
-set(LIBS ${LIBS} ${Boost_LIBRARIES})
+list(APPEND LIBS ${Boost_LIBRARIES})
+
+# Libraries are part of Performous build process (for now)
+set(SLAVE_LIBS TRUE)
+if(SLAVE_LIBS)
+ list(APPEND LIBS plugin++ da)
+else()
+ set(OUR_LIBS Plugin++ LibDA)
+endif()
# Find all the libs that don't require extra parameters
-foreach(lib Plugin++ LibDA SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
+foreach(lib ${OUR_LIBS} SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
find_package(${lib} REQUIRED)
include_directories(${${lib}_INCLUDE_DIRS})
- set(LIBS ${LIBS} ${${lib}_LIBRARIES})
+ list(APPEND LIBS ${${lib}_LIBRARIES})
add_definitions(${${lib}_DEFINITIONS})
endforeach(lib)
find_package(PortMidi)
if(PortMidi_FOUND)
include_directories(PortMidi_INCLUDE_DIRS)
- set(LIBS ${LIBS} ${PortMidi_LIBRARIES})
+ list(APPEND LIBS ${PortMidi_LIBRARIES})
add_definitions("-DHAVE_PORTMIDI")
endif(PortMidi_FOUND)
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
new file mode 100644
index 0000000..679f8c3
--- /dev/null
+++ b/libs/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 2.6)
+
+# Make plugin++ and libda not install themselves on the system
+set(SLAVE_LIB TRUE)
+
+add_subdirectory(plugin++)
+add_subdirectory(libda)
+
diff --git a/libs/libda/CMakeLists.txt b/libs/libda/CMakeLists.txt
index f151649..5c8f5d4 100644
--- a/libs/libda/CMakeLists.txt
+++ b/libs/libda/CMakeLists.txt
@@ -11,8 +11,6 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif()
-include("${CMAKE_SOURCE_DIR}/cmake/libda-packaging.cmake")
-
# Add a sensible build type default and warning because empty means no optimization and no debug info.
if(NOT CMAKE_BUILD_TYPE)
message("WARNING: CMAKE_BUILD_TYPE is not defined!\n Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
@@ -27,13 +25,17 @@ set(LibDA_PLUGIN_DIR "lib${LIB_SUFFIX}/libda")
include_directories(include)
-# Store version data in config.h
-set(CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/config.h)
-configure_file(cmake/config.h.in ${CONFIG_H} ESCAPE_QUOTES @ONLY)
-
-# Install include files
-file(GLOB HEADER_FILES "include/libda/*")
-install(FILES ${HEADER_FILES} ${CONFIG_H} DESTINATION include/libda)
+if(NOT SLAVE_LIB)
+ include(cmake/libda-packaging.cmake)
+ # Store version data in config.h
+ set(CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+ configure_file(cmake/config.h.in ${CONFIG_H} ESCAPE_QUOTES @ONLY)
+ # Install include files
+ file(GLOB HEADER_FILES "include/libda/*")
+ install(FILES ${HEADER_FILES} ${CONFIG_H} DESTINATION include/libda)
+ # Generate CMake scripts for finding the library
+ add_subdirectory(cmake)
+endif()
if(CMAKE_COMPILER_IS_GNUCXX)
message(STATUS "GCC detected, adding compile flags")
@@ -48,11 +50,13 @@ set(Boost_USE_MULTITHREAD ON)
find_package(Boost 1.36 REQUIRED COMPONENTS thread date_time)
include_directories(${Boost_INCLUDE_DIRS})
-find_package(Plugin++ REQUIRED)
-message(plugin++ ${Plugin++_INCLUDE_DIRS})
-include_directories(${Plugin++_INCLUDE_DIRS})
+if(SLAVE_LIB)
+ set(Plugin++_LIBRARIES da)
+else()
+ find_package(Plugin++ REQUIRED)
+ include_directories(${Plugin++_INCLUDE_DIRS})
+endif()
add_subdirectory(src)
add_subdirectory(plugins)
-add_subdirectory(cmake)
diff --git a/libs/libda/src/CMakeLists.txt b/libs/libda/src/CMakeLists.txt
index ba22301..a767b7d 100644
--- a/libs/libda/src/CMakeLists.txt
+++ b/libs/libda/src/CMakeLists.txt
@@ -11,5 +11,7 @@ set_target_properties(da PROPERTIES
INSTALL_RPATH_USE_LINK_PATH TRUE
)
-install(TARGETS da EXPORT LibDA DESTINATION lib${LIB_SUFFIX})
+if(NOT SLAVE_LIB)
+ install(TARGETS da EXPORT LibDA DESTINATION lib${LIB_SUFFIX})
+endif()
diff --git a/libs/plugin++/CMakeLists.txt b/libs/plugin++/CMakeLists.txt
index 4d2e22c..b8e8b16 100644
--- a/libs/plugin++/CMakeLists.txt
+++ b/libs/plugin++/CMakeLists.txt
@@ -10,8 +10,6 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif()
-include("${CMAKE_SOURCE_DIR}/cmake/plugin++-packaging.cmake")
-
# Add a sensible build type default and warning because empty means no optimization and no debug info.
if(NOT CMAKE_BUILD_TYPE)
message("WARNING: CMAKE_BUILD_TYPE is not defined!\n Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
@@ -50,11 +48,15 @@ set_target_properties(plugin++ PROPERTIES
INSTALL_RPATH_USE_LINK_PATH TRUE
)
-install(TARGETS plugin++ EXPORT Plugin++ DESTINATION lib${LIB_SUFFIX})
+if(NOT SLAVE_LIB)
+ include(cmake/plugin++-packaging.cmake)
+
+ install(TARGETS plugin++ EXPORT Plugin++ DESTINATION lib${LIB_SUFFIX})
-FILE(GLOB HEADER_FILES "include/plugin++/*")
-install(FILES ${HEADER_FILES} DESTINATION include/plugin++)
+ FILE(GLOB HEADER_FILES "include/plugin++/*")
+ install(FILES ${HEADER_FILES} DESTINATION include/plugin++)
-# Install/generate CMake files for finding Plugin++
-add_subdirectory(cmake)
+ # Install/generate CMake files for finding Plugin++
+ add_subdirectory(cmake)
+endif()
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:47
|
Module: performous
Branch: dance
Commit: bc84486eeedcc8af3579ec7426521f4df871da94
Author: Lasse Karkkainen <tro...@tr...>
Date: Fri Nov 27 05:43:37 2009 +0200
Minor plugin++ cleanup
---
libs/plugin++/include/plugin++/execname.hpp | 4 ++++
libs/plugin++/include/plugin++/loader.hpp | 1 +
libs/plugin++/include/plugin++/plugin.hpp | 11 +----------
3 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/libs/plugin++/include/plugin++/execname.hpp b/libs/plugin++/include/plugin++/execname.hpp
index 4c53315..e999cb9 100644
--- a/libs/plugin++/include/plugin++/execname.hpp
+++ b/libs/plugin++/include/plugin++/execname.hpp
@@ -1,4 +1,7 @@
#pragma once
+#ifndef EXECNAME_HPP_INCLUDED
+#define EXECNAME_HPP_INCLUDED
+
#include <boost/filesystem.hpp>
namespace plugin {
@@ -7,3 +10,4 @@ namespace plugin {
boost::filesystem::path execname();
}
+#endif
diff --git a/libs/plugin++/include/plugin++/loader.hpp b/libs/plugin++/include/plugin++/loader.hpp
index 5c551a9..4463cf6 100644
--- a/libs/plugin++/include/plugin++/loader.hpp
+++ b/libs/plugin++/include/plugin++/loader.hpp
@@ -1,3 +1,4 @@
+#pragma once
#ifndef LOADER_HPP_INCLUDED
#define LOADER_HPP_INCLUDED
diff --git a/libs/plugin++/include/plugin++/plugin.hpp b/libs/plugin++/include/plugin++/plugin.hpp
index b1fa2f0..3222e79 100644
--- a/libs/plugin++/include/plugin++/plugin.hpp
+++ b/libs/plugin++/include/plugin++/plugin.hpp
@@ -1,13 +1,4 @@
-// plugin.hpp - C++ plugin framework
-
-// Copyright Lasse Karkkainen 2007-2008
-
-// Use, modification, and distribution is subject to the Boost Software
-// License, Version 1.0 or later. (See accompanying file LICENSE_1_0.txt or
-// copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See library home page at http://www.boost.org/libs/plugin
-
+#pragma once
#ifndef PLUGIN_HPP_INCLUDED
#define PLUGIN_HPP_INCLUDED
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:45
|
Module: performous
Branch: dance
Commit: 3af6a7970126fecd8ee41d720fe35109fc4d8712
Author: Lasse Karkkainen <tro...@tr...>
Date: Thu Nov 26 17:58:43 2009 +0200
Omit libs dir from source package
---
cmake/performous-packaging.cmake | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cmake/performous-packaging.cmake b/cmake/performous-packaging.cmake
index d987ed5..8fe3e9f 100644
--- a/cmake/performous-packaging.cmake
+++ b/cmake/performous-packaging.cmake
@@ -6,6 +6,7 @@ set(CPACK_SOURCE_IGNORE_FILES
"/.cvsignore"
"/.gitignore"
"/songs/"
+ "/libs/"
"/build/"
"/.svn/"
"/.git/"
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:43
|
Module: performous Branch: dance Commit: 217deed21757a41d185176e44998aea42d570876 Author: Lasse Karkkainen <tro...@tr...> Date: Thu Nov 26 16:54:23 2009 +0200 Merge branch 'master' of ssh://tronic@git.performous.org/gitroot/performous/performous --- |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:41
|
Module: performous
Branch: dance
Commit: 8b318c7c2e81cd83f626ddf2796f3e2f96f48932
Author: Lasse Karkkainen <tro...@tr...>
Date: Thu Nov 26 16:31:36 2009 +0200
LibDA header docs and config.h with version macros
---
libs/libda/CMakeLists.txt | 9 +++++++--
libs/libda/cmake/config.h.in | 9 +++++++++
libs/libda/include/libda/audio.hpp | 7 +++----
libs/libda/include/libda/audio_dev.hpp | 7 +++++++
libs/libda/include/libda/mixer.hpp | 5 ++++-
5 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/libs/libda/CMakeLists.txt b/libs/libda/CMakeLists.txt
index c856b95..763e8d7 100644
--- a/libs/libda/CMakeLists.txt
+++ b/libs/libda/CMakeLists.txt
@@ -25,8 +25,13 @@ set(LibDA_PLUGIN_DIR "lib${LIB_SUFFIX}/libda")
include_directories(include)
-FILE(GLOB HEADER_FILES "include/libda/*")
-install(FILES ${HEADER_FILES} DESTINATION include/libda)
+# Store version data in config.h
+set(CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+configure_file(cmake/config.h.in ${CONFIG_H} ESCAPE_QUOTES @ONLY)
+
+# Install include files
+file(GLOB HEADER_FILES "include/libda/*")
+install(FILES ${HEADER_FILES} ${CONFIG_H} DESTINATION include/libda)
if(CMAKE_COMPILER_IS_GNUCXX)
message(STATUS "GCC detected, adding compile flags")
diff --git a/libs/libda/cmake/config.h.in b/libs/libda/cmake/config.h.in
new file mode 100644
index 0000000..b08238c
--- /dev/null
+++ b/libs/libda/cmake/config.h.in
@@ -0,0 +1,9 @@
+#ifndef LIBDA_CONFIG_H
+#define LIBDA_CONFIG_H
+
+#define LIBDA_VERSION "@LibDA_VERSION@"
+#define LIBDA_VERSION_MAJOR @LibDA_VERSION_MAJOR@
+#define LIBDA_VERSION_MINOR @LibDA_VERSION_MINOR@
+
+#endif
+
diff --git a/libs/libda/include/libda/audio.hpp b/libs/libda/include/libda/audio.hpp
index 10e5cf5..4626f36 100644
--- a/libs/libda/include/libda/audio.hpp
+++ b/libs/libda/include/libda/audio.hpp
@@ -2,16 +2,15 @@
#define LIBDA_AUDIO_HPP_INCLUDED
/**
-@file audio.hpp LibDA public interface.
+@file audio.hpp LibDA audio I/O public interface
-Link with libda when you use this.
+Link with libda when you use this. ABI will change, API is likely to change in
+future versions (which hopefully will bring API and ABI compatibility).
**/
// Library version number, may be used to test whether a certain function is
// available. Incremented by one each time a new release is done.
-#define LIBDA_VERSION 0
-
#include "sample.hpp"
#include <boost/function.hpp>
#include <boost/scoped_ptr.hpp>
diff --git a/libs/libda/include/libda/audio_dev.hpp b/libs/libda/include/libda/audio_dev.hpp
index ad8ab00..10970f2 100644
--- a/libs/libda/include/libda/audio_dev.hpp
+++ b/libs/libda/include/libda/audio_dev.hpp
@@ -1,6 +1,13 @@
#ifndef AUDIO_DEV_HPP_INCLUDED
#define AUDIO_DEV_HPP_INCLUDED
+/**
+@file audio_dev.hpp Audio plugin interface. Not very stable yet.
+
+This requires linking with libda and the ABI is not stable yet. The API might
+also change.
+**/
+
#include <libda/audio.hpp>
#include <plugin++/plugin.hpp>
diff --git a/libs/libda/include/libda/mixer.hpp b/libs/libda/include/libda/mixer.hpp
index 370056e..29ae38e 100644
--- a/libs/libda/include/libda/mixer.hpp
+++ b/libs/libda/include/libda/mixer.hpp
@@ -2,7 +2,10 @@
#define LIBDA_MIXER_HPP_INCLUDED
/**
-@file mixer.hpp LibDA mixer interface.
+@file mixer.hpp LibDA mixer interface, version 1.
+
+This appears to be too complex and will probably be removed in later release in
+favor of something easier and faster.
Link with libda when you use this.
**/
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:39
|
Module: performous
Branch: dance
Commit: 5680d527e223e072cd9f0407fa21eb770fdad187
Author: Markus Raab <un...@ma...>
Date: Thu Nov 26 10:28:52 2009 +0100
libda packaging
---
libs/libda/CMakeLists.txt | 2 +
libs/libda/cmake/LibDAConfig.cmake.in | 2 +-
libs/libda/cmake/LibDAConfigVersion.cmake.in | 10 ++--
libs/libda/cmake/libda-packaging.cmake | 61 ++++++++++++++++++++++++++
libs/plugin++/cmake/plugin++-packaging.cmake | 2 +-
5 files changed, 70 insertions(+), 7 deletions(-)
diff --git a/libs/libda/CMakeLists.txt b/libs/libda/CMakeLists.txt
index c856b95..8404f91 100644
--- a/libs/libda/CMakeLists.txt
+++ b/libs/libda/CMakeLists.txt
@@ -11,6 +11,8 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif()
+include("${CMAKE_SOURCE_DIR}/cmake/libda-packaging.cmake")
+
# Add a sensible build type default and warning because empty means no optimization and no debug info.
if(NOT CMAKE_BUILD_TYPE)
message("WARNING: CMAKE_BUILD_TYPE is not defined!\n Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
diff --git a/libs/libda/cmake/LibDAConfig.cmake.in b/libs/libda/cmake/LibDAConfig.cmake.in
index 29973af..17a77e4 100644
--- a/libs/libda/cmake/LibDAConfig.cmake.in
+++ b/libs/libda/cmake/LibDAConfig.cmake.in
@@ -6,5 +6,5 @@ if(NOT LibDA_FOUND)
include("@CMAKE_INSTALL_PREFIX@/@LibDA_CMAKE_DIR@/LibDA.cmake")
set(LibDA_LIBRARIES da)
-endif()
+endif(NOT LibDA_FOUND)
diff --git a/libs/libda/cmake/LibDAConfigVersion.cmake.in b/libs/libda/cmake/LibDAConfigVersion.cmake.in
index 2f5b3dd..12739be 100644
--- a/libs/libda/cmake/LibDAConfigVersion.cmake.in
+++ b/libs/libda/cmake/LibDAConfigVersion.cmake.in
@@ -1,13 +1,13 @@
-if ("${PACKAGE_VERSION}" VERSION_EQUAL "@LibDA_VERSION@")
+if ("${PACKAGE_VERSION}" EQUAL "@LibDA_VERSION@")
set(PACKAGE_VERSION_EXACT TRUE)
-else()
+else("${PACKAGE_VERSION}" EQUAL "@LibDA_VERSION@")
set(PACKAGE_VERSION_EXACT FALSE)
-endif()
+endif("${PACKAGE_VERSION}" EQUAL "@LibDA_VERSION@")
-if (PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" VERSION_LESS "@LibDA_VERSION@")
+if (PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" LESS "@LibDA_VERSION@")
set(PACKAGE_VERSION "@LibDA_VERSION@")
set(PACKAGE_VERSION_COMPATIBLE TRUE)
set(PACKAGE_VERSION_UNSUITABLE FALSE)
set(PACKAGE_VERSION_EXACT FALSE)
-endif()
+endif(PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" LESS "@LibDA_VERSION@")
diff --git a/libs/libda/cmake/libda-packaging.cmake b/libs/libda/cmake/libda-packaging.cmake
new file mode 100644
index 0000000..e107fad
--- /dev/null
+++ b/libs/libda/cmake/libda-packaging.cmake
@@ -0,0 +1,61 @@
+set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
+set(CPACK_PACKAGE_VERSION "${LibDA_VERSION}")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ digital audio I/O and processing library.")
+set(CPACK_PACKAGE_CONTACT "http://performous.org/")
+set(CPACK_SOURCE_IGNORE_FILES
+ "/.cvsignore"
+ "/.gitignore"
+ "/songs/"
+ "/build/"
+ "/.svn/"
+ "/.git/"
+ "/osx-utils/"
+ "/portage-overlay/"
+)
+
+
+if("${CMAKE_BUILD_TYPE}" MATCHES "Release")
+ set(CPACK_STRIP_FILES TRUE)
+endif("${CMAKE_BUILD_TYPE}" MATCHES "Release")
+
+
+if(UNIX)
+ # Try to find architecture
+ execute_process(COMMAND uname -m OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
+ string(STRIP "${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_ARCHITECTURE)
+ # Try to find distro name and distro-specific arch
+ execute_process(COMMAND lsb_release -is OUTPUT_VARIABLE LSB_ID)
+ execute_process(COMMAND lsb_release -rs OUTPUT_VARIABLE LSB_RELEASE)
+ string(STRIP "${LSB_ID}" LSB_ID)
+ string(STRIP "${LSB_RELEASE}" LSB_RELEASE)
+ set(LSB_DISTRIB "${LSB_ID}${LSB_RELEASE}")
+ if(NOT LSB_DISTRIB)
+ set(LSB_DISTRIB "unix")
+ endif(NOT LSB_DISTRIB)
+ # For Debian-based distros we want to create DEB packages.
+ if("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
+ set(CPACK_GENERATOR "DEB")
+ set(CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
+ set(CPACK_DEBIAN_PACKAGE_SECTION "universe/games")
+ set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "ultrastar-songs, ultrastar-songs-restricted, msttcorefonts")
+ # We need to alter the architecture names as per distro rules
+ if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
+ set(CPACK_PACKAGE_ARCHITECTURE i386)
+ endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
+ if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
+ set(CPACK_PACKAGE_ARCHITECTURE amd64)
+ endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
+ # Set the dependencies based on the distro version
+ if("${LSB_DISTRIB}" MATCHES "Debian5.*")
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-dev, libasound2, libjack0")
+ endif("${LSB_DISTRIB}" MATCHES "Debian5.*")
+ if(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
+ message("WARNING: ${LSB_DISTRIB} not supported yet.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
+ endif(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
+ endif("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
+ set(CPACK_SYSTEM_NAME "${LSB_DISTRIB}-${CPACK_PACKAGE_ARCHITECTURE}")
+ message(STATUS "Detected ${CPACK_SYSTEM_NAME}. Use make package to build packages (${CPACK_GENERATOR}).")
+endif(UNIX)
+
+include(CPack)
+
diff --git a/libs/plugin++/cmake/plugin++-packaging.cmake b/libs/plugin++/cmake/plugin++-packaging.cmake
index c0c192a..68e8862 100644
--- a/libs/plugin++/cmake/plugin++-packaging.cmake
+++ b/libs/plugin++/cmake/plugin++-packaging.cmake
@@ -1,6 +1,6 @@
set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
set(CPACK_PACKAGE_VERSION "${Plugin++_VERSION}")
-set(CPACK_PACKAGE_DESCRIPTION_SUMMARY " Plugin++ is a cross platform plug-in framework for C++ that uses XML to marshal data across the application and the shared library space.")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Plugin++ is a cross platform plug-in framework for C++ that uses XML to marshal data across the application and the shared library space.")
set(CPACK_PACKAGE_CONTACT "http://sourceforge.net/projects/pluginpp/")
set(CPACK_SOURCE_IGNORE_FILES
"/.cvsignore"
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:37
|
Module: performous
Branch: dance
Commit: 4b22765913c319bb6ddf9ed511727c600fbc7a5d
Author: Markus Raab <un...@ma...>
Date: Thu Nov 26 10:08:32 2009 +0100
Make Plugin++Config* cmake 2.6 compatible
---
libs/plugin++/cmake/Plugin++Config.cmake.in | 2 +-
libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libs/plugin++/cmake/Plugin++Config.cmake.in b/libs/plugin++/cmake/Plugin++Config.cmake.in
index 8b539c8..34df072 100644
--- a/libs/plugin++/cmake/Plugin++Config.cmake.in
+++ b/libs/plugin++/cmake/Plugin++Config.cmake.in
@@ -6,5 +6,5 @@ if(NOT Plugin++_FOUND)
include("@CMAKE_INSTALL_PREFIX@/@Plugin++_CMAKE_DIR@/Plugin++.cmake")
set(Plugin++_LIBRARIES "plugin++")
-endif()
+endif(NOT Plugin++_FOUND)
diff --git a/libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in b/libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in
index f7c9948..2f2643c 100644
--- a/libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in
+++ b/libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in
@@ -1,13 +1,13 @@
-if ("${PACKAGE_VERSION}" VERSION_EQUAL "@Plugin++_VERSION@")
+if ("${PACKAGE_VERSION}" EQUAL "@Plugin++_VERSION@")
set(PACKAGE_VERSION_EXACT TRUE)
-else()
+else("${PACKAGE_VERSION}" EQUAL "@Plugin++_VERSION@")
set(PACKAGE_VERSION_EXACT FALSE)
-endif()
+endif("${PACKAGE_VERSION}" EQUAL "@Plugin++_VERSION@")
-if (PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" VERSION_LESS "@Plugin++_VERSION@")
+if (PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" LESS "@Plugin++_VERSION@")
set(PACKAGE_VERSION "@Plugin++_VERSION@")
set(PACKAGE_VERSION_COMPATIBLE TRUE)
set(PACKAGE_VERSION_UNSUITABLE FALSE)
set(PACKAGE_VERSION_EXACT FALSE)
-endif()
+endif(PACKAGE_VERSION_EXACT OR "${PACKAGE_VERSION}" LESS "@Plugin++_VERSION@")
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:34
|
Module: performous
Branch: dance
Commit: 6a211f3778dcb876f6c5b59e88d21b1ca77b3c6a
Author: Markus Raab <un...@ma...>
Date: Thu Nov 26 09:11:25 2009 +0100
Packaging for plugin++ (Debian 5.*)
---
libs/plugin++/CMakeLists.txt | 2 +
libs/plugin++/cmake/plugin++-packaging.cmake | 61 ++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/libs/plugin++/CMakeLists.txt b/libs/plugin++/CMakeLists.txt
index fca339f..4d2e22c 100644
--- a/libs/plugin++/CMakeLists.txt
+++ b/libs/plugin++/CMakeLists.txt
@@ -10,6 +10,8 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif()
+include("${CMAKE_SOURCE_DIR}/cmake/plugin++-packaging.cmake")
+
# Add a sensible build type default and warning because empty means no optimization and no debug info.
if(NOT CMAKE_BUILD_TYPE)
message("WARNING: CMAKE_BUILD_TYPE is not defined!\n Defaulting to CMAKE_BUILD_TYPE=Release. Use ccmake to set a proper value.")
diff --git a/libs/plugin++/cmake/plugin++-packaging.cmake b/libs/plugin++/cmake/plugin++-packaging.cmake
new file mode 100644
index 0000000..c0c192a
--- /dev/null
+++ b/libs/plugin++/cmake/plugin++-packaging.cmake
@@ -0,0 +1,61 @@
+set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
+set(CPACK_PACKAGE_VERSION "${Plugin++_VERSION}")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY " Plugin++ is a cross platform plug-in framework for C++ that uses XML to marshal data across the application and the shared library space.")
+set(CPACK_PACKAGE_CONTACT "http://sourceforge.net/projects/pluginpp/")
+set(CPACK_SOURCE_IGNORE_FILES
+ "/.cvsignore"
+ "/.gitignore"
+ "/songs/"
+ "/build/"
+ "/.svn/"
+ "/.git/"
+ "/osx-utils/"
+ "/portage-overlay/"
+)
+
+
+if("${CMAKE_BUILD_TYPE}" MATCHES "Release")
+ set(CPACK_STRIP_FILES TRUE)
+endif("${CMAKE_BUILD_TYPE}" MATCHES "Release")
+
+
+if(UNIX)
+ # Try to find architecture
+ execute_process(COMMAND uname -m OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
+ string(STRIP "${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_ARCHITECTURE)
+ # Try to find distro name and distro-specific arch
+ execute_process(COMMAND lsb_release -is OUTPUT_VARIABLE LSB_ID)
+ execute_process(COMMAND lsb_release -rs OUTPUT_VARIABLE LSB_RELEASE)
+ string(STRIP "${LSB_ID}" LSB_ID)
+ string(STRIP "${LSB_RELEASE}" LSB_RELEASE)
+ set(LSB_DISTRIB "${LSB_ID}${LSB_RELEASE}")
+ if(NOT LSB_DISTRIB)
+ set(LSB_DISTRIB "unix")
+ endif(NOT LSB_DISTRIB)
+ # For Debian-based distros we want to create DEB packages.
+ if("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
+ set(CPACK_GENERATOR "DEB")
+ set(CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
+ set(CPACK_DEBIAN_PACKAGE_SECTION "universe/games")
+ set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "ultrastar-songs, ultrastar-songs-restricted, msttcorefonts")
+ # We need to alter the architecture names as per distro rules
+ if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
+ set(CPACK_PACKAGE_ARCHITECTURE i386)
+ endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
+ if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
+ set(CPACK_PACKAGE_ARCHITECTURE amd64)
+ endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
+ # Set the dependencies based on the distro version
+ if("${LSB_DISTRIB}" MATCHES "Debian5.*")
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-dev, libc6-dev")
+ endif("${LSB_DISTRIB}" MATCHES "Debian5.*")
+ if(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
+ message("WARNING: ${LSB_DISTRIB} not supported yet.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
+ endif(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
+ endif("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
+ set(CPACK_SYSTEM_NAME "${LSB_DISTRIB}-${CPACK_PACKAGE_ARCHITECTURE}")
+ message(STATUS "Detected ${CPACK_SYSTEM_NAME}. Use make package to build packages (${CPACK_GENERATOR}).")
+endif(UNIX)
+
+include(CPack)
+
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:32
|
Module: performous Branch: dance Commit: 295543e7d1e6b7d92ec9632925ca935c56c82d45 Author: knittl <knittl@kbook.(none)> Date: Wed Nov 25 17:45:15 2009 +0100 fixed a typo in docs Compiling.txt had a wrong path in it --- docs/Compiling.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/docs/Compiling.txt b/docs/Compiling.txt index 4358721..4327ad9 100644 --- a/docs/Compiling.txt +++ b/docs/Compiling.txt @@ -16,7 +16,7 @@ To install from git: sudo make install rm -rf * # Compile the game itself - cmake ../libs/libda/ + cmake .. make sudo make install # Run the game |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:30
|
Module: performous Branch: dance Commit: c5e691481909f64fee3f052ddf7b73c42c965484 Author: Lasse Karkkainen <tro...@tr...> Date: Wed Nov 25 17:59:01 2009 +0200 Bump version number to 0.4.0 --- CMakeLists.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbc0d1c..35002bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ project(Performous CXX) cmake_minimum_required(VERSION 2.6) cmake_policy(VERSION 2.6) -set(PROJECT_VERSION "0.4-pre5") +set(PROJECT_VERSION "0.4.0") # Avoid source tree pollution if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:28
|
Module: performous Branch: dance Commit: d377cde202e7982c21523b6b72e4f36adc6ea612 Author: Lasse Karkkainen <tro...@tr...> Date: Wed Nov 25 16:40:17 2009 +0200 Update Compiling.txt --- docs/Compiling.txt | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/Compiling.txt b/docs/Compiling.txt index 6e07ea3..4358721 100644 --- a/docs/Compiling.txt +++ b/docs/Compiling.txt @@ -5,16 +5,25 @@ To install from git: # Create separate build folder under trunk to avoid polluting the source three mkdir performous/build cd performous/build - # Configure and build with CMake - cmake .. + # Compile and install libplugin++ (our C++ plugin/DLL library) + cmake ../libs/plugin++/ + make + sudo make install + rm -rf * + # Compile and install libda (our audio library) + cmake ../libs/libda/ + make + sudo make install + rm -rf * + # Compile the game itself + cmake ../libs/libda/ make - # Install into system prefix /usr/local/ sudo make install # Run the game performous - # Should you need to change building settings (e.g. installation prefix) - ccmake . + In order to change installation location (the default is /usr/local/), + use cmake parameter -DCMAKE_INSTALL_PREFIX=/where/to. Dependencies: @@ -39,6 +48,8 @@ Dependencies: * PortAudio v18 or v19 * Pulseaudio + - PortMidi (optional) for MIDI drum support + Please refer to http://performous.org/develop.html for packages to install. |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:26
|
Module: performous
Branch: dance
Commit: 68c99e93bf197a4ef720ac773445e12bfc78c808
Author: Lasse Karkkainen <tro...@tr...>
Date: Wed Nov 25 00:46:12 2009 +0200
Workaround for CMake target forwarding problem. Works for Performous but plugin++/libda don't work properly stand-alone now.
---
game/CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt
index 846eb1a..66b61da 100644
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories(${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${Boost_LIBRARIES})
# Find all the libs that don't require extra parameters
-foreach(lib LibDA SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
+foreach(lib Plugin++ LibDA SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
find_package(${lib} REQUIRED)
include_directories(${${lib}_INCLUDE_DIRS})
set(LIBS ${LIBS} ${${lib}_LIBRARIES})
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:24
|
Module: performous
Branch: dance
Commit: 66f947dfbd49825bffacba3b4e0dee929ec5b2dd
Author: Lasse Karkkainen <tro...@tr...>
Date: Wed Nov 25 00:46:10 2009 +0200
Add extra plugin++ from libda
---
libs/libda/src/CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/libda/src/CMakeLists.txt b/libs/libda/src/CMakeLists.txt
index e0b76e6..ba22301 100644
--- a/libs/libda/src/CMakeLists.txt
+++ b/libs/libda/src/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
add_library(da SHARED audio.cpp)
-target_link_libraries(da plugin++ ${Boost_LIBRARIES} ${Plugin++_LIBRARIES})
+target_link_libraries(da ${Boost_LIBRARIES} ${Plugin++_LIBRARIES})
set_target_properties(da PROPERTIES
INSTALL_NAME_DIR @rpath
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:22
|
Module: performous
Branch: dance
Commit: 872af913b0e50541ac11ebe006ba19a4b0869c06
Author: Vincent Le Ligeour <yo...@us...>
Date: Tue Nov 24 19:31:45 2009 +0100
Added plugin++ dependency to libda plugins
---
libs/libda/CMakeLists.txt | 4 ++++
libs/libda/src/CMakeLists.txt | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/libs/libda/CMakeLists.txt b/libs/libda/CMakeLists.txt
index 1a5df73..c856b95 100644
--- a/libs/libda/CMakeLists.txt
+++ b/libs/libda/CMakeLists.txt
@@ -41,6 +41,10 @@ set(Boost_USE_MULTITHREAD ON)
find_package(Boost 1.36 REQUIRED COMPONENTS thread date_time)
include_directories(${Boost_INCLUDE_DIRS})
+find_package(Plugin++ REQUIRED)
+message(plugin++ ${Plugin++_INCLUDE_DIRS})
+include_directories(${Plugin++_INCLUDE_DIRS})
+
add_subdirectory(src)
add_subdirectory(plugins)
add_subdirectory(cmake)
diff --git a/libs/libda/src/CMakeLists.txt b/libs/libda/src/CMakeLists.txt
index 3f6dd16..e0b76e6 100644
--- a/libs/libda/src/CMakeLists.txt
+++ b/libs/libda/src/CMakeLists.txt
@@ -1,8 +1,5 @@
cmake_minimum_required(VERSION 2.6)
-find_package(Plugin++ REQUIRED)
-include_directories(${Plugin++_INCLUDE_DIRS})
-
add_library(da SHARED audio.cpp)
target_link_libraries(da plugin++ ${Boost_LIBRARIES} ${Plugin++_LIBRARIES})
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:21
|
Module: performous Branch: dance Commit: 9ecc49ca96ce87aa7ccde89ab2b8f03369c63149 Author: Lasse Karkkainen <tro...@tr...> Date: Tue Nov 24 14:25:06 2009 +0200 LibDA changes: - Add soversioning - Add CMake config system - Rename LIBDA -> LibDA in CMake - Move Boost detection to main level --- libs/libda/CMakeLists.txt | 22 ++++++- libs/libda/plugins/CMakeLists.txt | 116 ++++++++++++++++-------------------- libs/libda/src/CMakeLists.txt | 16 +++-- 3 files changed, 80 insertions(+), 74 deletions(-) |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:17
|
Module: performous Branch: dance Commit: ec09fea9f1f6e2c951ca88650bb4d064d14cd923 Author: Lasse Karkkainen <tro...@tr...> Date: Tue Nov 24 14:23:21 2009 +0200 Add CMake modules to plugin++ and libda, add CMake config files to libda --- libs/libda/cmake/CMakeLists.txt | 11 + libs/libda/cmake/LibDAConfig.cmake.in | 10 + libs/libda/cmake/LibDAConfigVersion.cmake.in | 13 + libs/libda/cmake/Modules/FindALSA.cmake | 34 ++ libs/libda/cmake/Modules/FindAVCodec.cmake | 48 +++ libs/libda/cmake/Modules/FindAVFormat.cmake | 46 +++ libs/libda/cmake/Modules/FindAVUtil.cmake | 44 +++ libs/libda/cmake/Modules/FindAtk.cmake | 34 ++ libs/libda/cmake/Modules/FindAtkmm.cmake | 35 ++ libs/libda/cmake/Modules/FindBoost.cmake | 413 +++++++++++++++++++++ libs/libda/cmake/Modules/FindCairo.cmake | 34 ++ libs/libda/cmake/Modules/FindCairomm.cmake | 34 ++ libs/libda/cmake/Modules/FindClanLib.cmake | 48 +++ libs/libda/cmake/Modules/FindDL.cmake | 23 ++ libs/libda/cmake/Modules/FindFAAC.cmake | 24 ++ libs/libda/cmake/Modules/FindFreetype.cmake | 31 ++ libs/libda/cmake/Modules/FindGDK-PixBuf.cmake | 32 ++ libs/libda/cmake/Modules/FindGDK.cmake | 43 +++ libs/libda/cmake/Modules/FindGDKmm.cmake | 44 +++ libs/libda/cmake/Modules/FindGIO.cmake | 27 ++ libs/libda/cmake/Modules/FindGIOmm.cmake | 35 ++ libs/libda/cmake/Modules/FindGLEW.cmake | 29 ++ libs/libda/cmake/Modules/FindGLFW.cmake | 38 ++ libs/libda/cmake/Modules/FindGObject.cmake | 31 ++ libs/libda/cmake/Modules/FindGStreamer.cmake | 33 ++ libs/libda/cmake/Modules/FindGTK.cmake | 38 ++ libs/libda/cmake/Modules/FindGTKmm.cmake | 46 +++ libs/libda/cmake/Modules/FindGlib.cmake | 39 ++ libs/libda/cmake/Modules/FindGlibmm.cmake | 42 ++ libs/libda/cmake/Modules/FindJack.cmake | 28 ++ libs/libda/cmake/Modules/FindJpeg.cmake | 28 ++ libs/libda/cmake/Modules/FindLibPulse.cmake | 28 ++ libs/libda/cmake/Modules/FindLibPulseSimple.cmake | 28 ++ libs/libda/cmake/Modules/FindLibRSVG.cmake | 35 ++ libs/libda/cmake/Modules/FindLibXML++.cmake | 42 ++ libs/libda/cmake/Modules/FindLibXML2.cmake | 29 ++ libs/libda/cmake/Modules/FindMagick++.cmake | 33 ++ libs/libda/cmake/Modules/FindMagick.cmake | 38 ++ libs/libda/cmake/Modules/FindOpenGL.cmake | 35 ++ libs/libda/cmake/Modules/FindPThread.cmake | 21 + libs/libda/cmake/Modules/FindPango.cmake | 36 ++ libs/libda/cmake/Modules/FindPangoCairo.cmake | 35 ++ libs/libda/cmake/Modules/FindPangomm.cmake | 36 ++ libs/libda/cmake/Modules/FindPng.cmake | 28 ++ libs/libda/cmake/Modules/FindPortMidi.cmake | 21 + libs/libda/cmake/Modules/FindPortaudio.cmake | 35 ++ libs/libda/cmake/Modules/FindProjectM.cmake | 30 ++ libs/libda/cmake/Modules/FindSDL.cmake | 59 +++ libs/libda/cmake/Modules/FindSDL_mixer.cmake | 32 ++ libs/libda/cmake/Modules/FindSWScale.cmake | 46 +++ libs/libda/cmake/Modules/FindSigC++.cmake | 38 ++ libs/libda/cmake/Modules/FindTiff.cmake | 28 ++ libs/libda/cmake/Modules/FindZ.cmake | 28 ++ libs/libda/cmake/Modules/LibFindMacros.cmake | 76 ++++ libs/plugin++/cmake/Modules/FindBoost.cmake | 413 +++++++++++++++++++++ 55 files changed, 2645 insertions(+), 0 deletions(-) |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:15
|
Module: performous
Branch: dance
Commit: 716c793bdc67abbecfac9b59daab85d668714e15
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Nov 24 14:19:57 2009 +0200
Proper soversioning for plugin++
---
libs/plugin++/CMakeLists.txt | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/libs/plugin++/CMakeLists.txt b/libs/plugin++/CMakeLists.txt
index 4b716d2..fca339f 100644
--- a/libs/plugin++/CMakeLists.txt
+++ b/libs/plugin++/CMakeLists.txt
@@ -1,6 +1,9 @@
project(Plugin++)
cmake_minimum_required(VERSION 2.6)
-set(Plugin++_VERSION 1)
+
+set(Plugin++_VERSION_MAJOR 1)
+set(Plugin++_VERSION_MINOR 0)
+set(Plugin++_VERSION "${Plugin++_VERSION_MAJOR}.${Plugin++_VERSION_MINOR}")
# Avoid source tree pollution
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
@@ -40,11 +43,12 @@ add_definitions("-DLIB_SUFFIX=\"${LIB_SUFFIX}\"")
set_target_properties(plugin++ PROPERTIES
INSTALL_NAME_DIR @rpath
VERSION "${Plugin++_VERSION}"
+ SOVERSION "${Plugin++_VERSION_MAJOR}"
DEBUG_POSTFIX -d
+ INSTALL_RPATH_USE_LINK_PATH TRUE
)
install(TARGETS plugin++ EXPORT Plugin++ DESTINATION lib${LIB_SUFFIX})
-get_target_property(type plugin++ TYPE)
FILE(GLOB HEADER_FILES "include/plugin++/*")
install(FILES ${HEADER_FILES} DESTINATION include/plugin++)
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:13
|
Module: performous
Branch: dance
Commit: 82a61dab50766e0a11eb440b66941847d15fc69e
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Nov 24 14:18:44 2009 +0200
Plugin++ exported include dir fixes
---
libs/plugin++/cmake/Plugin++Config.cmake.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/plugin++/cmake/Plugin++Config.cmake.in b/libs/plugin++/cmake/Plugin++Config.cmake.in
index 851227b..8b539c8 100644
--- a/libs/plugin++/cmake/Plugin++Config.cmake.in
+++ b/libs/plugin++/cmake/Plugin++Config.cmake.in
@@ -1,8 +1,8 @@
if(NOT Plugin++_FOUND)
set(Plugin++_FOUND TRUE)
set(Plugin++_VERSION "@Plugin++_VERSION@")
- set(Plugin++_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/@BOOST_INCLUDE_INSTALL_DIR@" CACHE FILEPATH "Plugin++ include directory")
- set(Plugin++_INCLUDE_DIRS "${Plugin++_INCLUDE_DIR}")
+ set(Plugin++_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include" CACHE FILEPATH "Plugin++ include directory")
+ set(Plugin++_INCLUDE_DIRS ${Plugin++_INCLUDE_DIR} "@Boost_INCLUDE_DIRS@")
include("@CMAKE_INSTALL_PREFIX@/@Plugin++_CMAKE_DIR@/Plugin++.cmake")
set(Plugin++_LIBRARIES "plugin++")
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:11
|
Module: performous
Branch: dance
Commit: 5e0d5cce3c3cc805d8da3aa99eae1a01f5dd7bde
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Nov 24 14:16:50 2009 +0200
Use LibDA external target
---
game/CMakeLists.txt | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt
index c04125d..846eb1a 100644
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories(${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${Boost_LIBRARIES})
# Find all the libs that don't require extra parameters
-foreach(lib SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
+foreach(lib LibDA SDL PangoCairo LibRSVG LibXML++ Magick++ GLEW AVFormat SWScale OpenGL)
find_package(${lib} REQUIRED)
include_directories(${${lib}_INCLUDE_DIRS})
set(LIBS ${LIBS} ${${lib}_LIBRARIES})
@@ -36,13 +36,13 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif(CMAKE_COMPILER_IS_GNUCXX)
add_executable(performous ${SOURCES} ${SDL_SOURCES})
-target_link_libraries(performous da ${LIBS})
+target_link_libraries(performous ${LIBS})
# Store library paths in executable
if(APPLE)
- set_target_properties(performous PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE INSTALL_RPATH @loader_path/../lib${LIB_SUFFIX})
+ set_target_properties(performous PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE INSTALL_RPATH "@loader_path/../lib${LIB_SUFFIX}:@loader_path/../../lib${LIB_SUFFIX}")
else()
- set_target_properties(performous PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE INSTALL_RPATH \$ORIGIN/../lib${LIB_SUFFIX})
+ set_target_properties(performous PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE INSTALL_RPATH "\$ORIGIN/../lib${LIB_SUFFIX}:\$ORIGIN/../../lib${LIB_SUFFIX}")
endif()
# Generate config.hh
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:09
|
Module: performous
Branch: dance
Commit: 6f90701c7d5a9657f3b847596f8d4af8cedf5f43
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Nov 24 14:16:09 2009 +0200
Improved status printout.
---
cmake/Modules/FindBoost.cmake | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/cmake/Modules/FindBoost.cmake b/cmake/Modules/FindBoost.cmake
index 96b6509..58c0fe0 100644
--- a/cmake/Modules/FindBoost.cmake
+++ b/cmake/Modules/FindBoost.cmake
@@ -68,6 +68,7 @@
# Copyright (c) 2007 Wengo
# Copyright (c) 2007 Mike Jackson
# Copyright (c) 2008 Andreas Pakulat <ap...@gm...>
+# Copyright (c) 2009 Lasse Kärkkäinen
#
# Redistribution AND use is allowed according to the terms of the New
# BSD license.
@@ -77,12 +78,15 @@
# Force proper redetection (to allow e.g. changed COMPONENTS)
set(Boost_FOUND false)
-find_package(Boost COMPONENTS ${Boost_FIND_COMPONENTS} NO_MODULE)
+find_package(Boost QUIET COMPONENTS ${Boost_FIND_COMPONENTS} NO_MODULE)
if (Boost_FOUND)
- message(STATUS "Found Boost ${Boost_VERSION}")
- message("${Boost_LIBRARIES}")
- message("${Boost_INCLUDE_DIRS}")
+ if (Boost_FIND_COMPONENTS)
+ set(_boost_COMP " (${Boost_FIND_COMPONENTS})")
+ else()
+ set(_boost_COMP " (using headers only)")
+ endif()
+ message(STATUS "Found Boost ${Boost_VERSION}${_boost_COMP}")
else()
# MESSAGE(STATUS "Finding Boost libraries.... ")
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:07
|
Module: performous Branch: dance Commit: 5b1889dd441ade3b07c8eb0d0e824208077ebfce Author: Lasse Karkkainen <tro...@tr...> Date: Tue Nov 24 14:14:34 2009 +0200 Removed libda from Performous build --- CMakeLists.txt | 1 - libs/CMakeLists.txt | 4 ---- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2b391d..fbc0d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,6 @@ mark_as_advanced(SHARE_INSTALL) include_directories(libs/plugin++/include) include_directories(libs/libda/include) -add_subdirectory(libs) add_subdirectory(themes) add_subdirectory(data) add_subdirectory(game) diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt deleted file mode 100644 index a9fe660..0000000 --- a/libs/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -cmake_minimum_required(VERSION 2.4) - -add_subdirectory(libda) - |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:04
|
Module: performous Branch: dance Commit: 90d70910693cc4655a9da1f684c0a5ad18e63e06 Author: Lasse Karkkainen <tro...@tr...> Date: Mon Nov 23 05:26:17 2009 +0200 - Separated plugin++ from Performous build (must now build and install it first) - Added CMake config system to plugin++ - Added proper find module for libdl - CMakeLists.txt improvements --- cmake/Modules/FindDL.cmake | 23 ++++++ libs/CMakeLists.txt | 1 - libs/libda/CMakeLists.txt | 8 ++- libs/libda/src/CMakeLists.txt | 13 +++- libs/plugin++/CMakeLists.txt | 39 ++++++++-- libs/plugin++/cmake/CMakeLists.txt | 11 +++ libs/plugin++/cmake/Modules/FindDL.cmake | 23 ++++++ libs/plugin++/cmake/Modules/LibFindMacros.cmake | 76 ++++++++++++++++++++ libs/plugin++/cmake/Plugin++Config.cmake.in | 10 +++ libs/plugin++/cmake/Plugin++ConfigVersion.cmake.in | 13 ++++ 10 files changed, 203 insertions(+), 14 deletions(-) |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:22:00
|
Module: performous
Branch: dance
Commit: 36ee18ef0a4be1fac5c572ca58513270247a54f6
Author: Lasse Karkkainen <tro...@tr...>
Date: Sun Nov 22 22:07:57 2009 +0200
Avoid some warnings from Boost headers
---
game/CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt
index 462e0ce..c04125d 100644
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -30,7 +30,7 @@ endif(PortMidi_FOUND)
if(CMAKE_COMPILER_IS_GNUCXX)
message(STATUS "GCC detected, adding compile flags")
# -pedantic cannot be used because ffmpeg headers are b0rked
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++98 -Wall -Wextra")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++98 -Wall -Wextra -Wno-missing-field-initializers")
# Needed for ffmpeg.cc to compile cleanly on OSX (it's a (unsigned long) long story)
add_definitions("-D__STDC_CONSTANT_MACROS")
endif(CMAKE_COMPILER_IS_GNUCXX)
|
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:21:57
|
Module: performous Branch: dance Commit: dd4cffce1db16aa1f7140a8173019e222444cc58 Author: Lasse Karkkainen <tro...@tr...> Date: Sun Nov 22 22:07:17 2009 +0200 Make FindBoost.cmake prefer BoostConfig.cmake when available --- cmake/Modules/FindBoost.cmake | 613 +++++++++++++++++++++-------------------- 1 files changed, 312 insertions(+), 301 deletions(-) |
|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-29 08:21:55
|
Module: performous
Branch: dance
Commit: 71d8103ebcecfac6e5c412b1905f7b1c1eae1cc0
Author: Lasse Karkkainen <tro...@tr...>
Date: Fri Nov 20 05:46:15 2009 +0200
libda too
---
libs/libda/CMakeLists.txt | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libs/libda/CMakeLists.txt b/libs/libda/CMakeLists.txt
index f10c47c..d852257 100644
--- a/libs/libda/CMakeLists.txt
+++ b/libs/libda/CMakeLists.txt
@@ -2,6 +2,8 @@ project(libda)
cmake_minimum_required(VERSION 2.6)
cmake_policy(VERSION 2.6)
+set(LIB_SUFFIX "" CACHE STRING "Optional suffix to use on lib folders (e.g. 64 for lib64)")
+
set(LIBDA_PLUGIN_DIR "lib${LIB_SUFFIX}/libda")
include_directories(include)
|