GENIVI AUDIOMANAGER Copyright (C) 2011, BMW AG Datum 15.1.2012 author Christian Müller (christian.ei.mueller@bmw.de) *********************************************************************************************************** LICENSE *********************************************************************************************************** GNU Lesser General Public License, version 2.1, with special exception (GENIVI clause) Copyright (C) 2011, BMW AG – Christian Müller Christian.ei.mueller@bmw.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1, as published by the Free Software Foundation. This program 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 Lesser General Public License, version 2.1, for more details. You should have received a copy of the GNU Lesser General Public License, version 2.1, along with this program; if not, see . Note that the copyright holders assume that the GNU Lesser General Public License, version 2.1, may also be applicable to programs even in cases in which the program is not a library in the technical sense. Linking AudioManager statically or dynamically with other modules is making a combined work based on AudioManager. You may license such other modules under the GNU Lesser General Public License, version 2.1. If you do not want to license your linked modules under the GNU Lesser General Public License, version 2.1, you may use the program under the following exception. As a special exception, the copyright holders of AudioManager give you permission to combine AudioManager with software programs or libraries that are released under any license unless such a combination is not permitted by the license of such a software program or library. You may copy and distribute such a system following the terms of the GNU Lesser General Public License, version 2.1, including this special exception, for AudioManager and the licenses of the other code concerned. Note that people who make modified versions of AudioManager are not obligated to grant this special exception for their modified versions; it is their choice whether to do so. The GNU Lesser General Public License, version 2.1, gives permission to release a modified version without this exception; this exception also makes it possible to release a modified version which carries forward this exception. Version 0.0.1 *********************************************************************************************************** CURRENT STATUS *********************************************************************************************************** The most important parts of the audiomanager are already there - nevertheless there are main features missing (pls look at the todos) It should be sufficient to start working on a POC around it. *********************************************************************************************************** COMPILE PROGRAMS *********************************************************************************************************** - compile options with default values: CMAKE_BUILD_TYPE CMAKE_INSTALL_PREFIX /usr/local USE_BUILD_LIBS OFF WITH_DBUS_WRAPPER ON WITH_DOCUMENTATION OFF WITH_MAIN ON WITH_PLUGIN_COMMAND ON WITH_PLUGIN_CONTROL ON WITH_PLUGIN_ROUTING ON WITH_PPOLL ON WITH_SIMPLEDBUS_LOOP OFF WITH_SOCKETHANDLER_LOOP ON WITH_TELNET OFF WITH_TESTS ON In order to change these options, you can modify this values with ccmake, do the appropriate changes in CmakeList.txt or via the commandline for cmake or (when installed via ccmake) You will need some packages in order to comile the GENIVI AudioManager Daemon, these are: -dbus (only when DBUS_WRAPPER==ON) [tested on version 1.2.16] -sqlite3 [tested on version 3.6.22] -automotive-dlt [tested on version 2.2.0] -doxygen (only when WITH_DOCUMENTATION==ON) [tested on version 1.6.3] to install them in a build environment like Ubuntu you can use: sudo apt-get install libdbus-1-dev libsqlite3-dev doxygen git cmake build-essential For building the tests, you will need the following packages: -google mock [tested on version 1.6.0-1] -google test [tested on version 1.6.0] -python [tested on version 2.6] to install them in a build environment like Ubuntu you can use: sudo apt-get install libgtest-dev google-mock python2.6-dev More details in the CMake Files CmakeList.txt in the projects. The build was tested on a freshly setup LinuxMint 12 (don't like Unity) with the following steps: sudo apt-get update sudo apt-get upgrade sudo apt-get install libdbus-1-dev libsqlite3-dev doxygen libgtest-dev google-mock git cmake build-essential python2.6-dev git clone https://:@git.genivi.org/srv/git/DLT-daemon In order to build the project (out of source build), please follow these instructions on the commandline: mkdir /build cd build cmake .. make -j4 after the script finished, you should have: a bin/ folder which contains all executables and the libraries: a build/ folder which has all build objects (erase that if you need a clean build) a doc/ folder in case you turned the documentation on in order to install the AudioManager, you can do sudo make install package generation is supported via CPack. To build packages, you have to make genivi_package this will create one package if your CMake version is < 2.8.5 (all binaries stripped): AudioManager--Linux.deb if your version is above, you will get 4 packages (all binaries stripped) : AudioManager--Linux-bin.deb [AudioManager binary] AudioManager--Linux-dev.deb [header files needed to compile plugins] AudioManager--Linux-sampleplugins.deb [sample plugins] AudioManager--Linux-tests.deb [tests including tests for sample plugins, installed in the ~/AudioMAnagerTests] to create a tar.gz file of all sources (not including .git, build and bin folder,config files), you can do: make package_source This will create the following package: AudioManager--Source.tar.gz All packages will be placed in a folder called packages The commandline options of the AudioManager: Usage: AudioManagerDaemon [options] options: -h: print this message -i: info about current settings -v: print version -d: daemonize AudioManager -p path for sqlite database (default is in memory) -t port for telnetconnection -m number of max telnetconnections -c use controllerPlugin (full path with .so ending) -l replace command plugin directory with (full path) -r replace routing plugin directory with (full path) -L add command plugin directory with (full path) -R add routing plugin directory with (full path) The source code if formatted with eclipse, the style sheet used can be found in the cmake folder: cmake/AudioManager_Codestyle.xml _..-------++._ _.-'/ | _|| \"--._ __.--'`._/_\j_____/_||___\ `----. _.--'_____ | \ _____ / _j /,---.\ | =o | /,---.\ |_ [__]==// .-. \\==`===========/==// .-. \\=[__] `-._|\ `-' /|___\_________/___|\ `-' /|_.' `---' `---'