From 5bcd206b9270d9a79e212f91723ea1a08a4d4859 Mon Sep 17 00:00:00 2001 From: Christian Linke Date: Thu, 11 Feb 2016 07:28:47 +0100 Subject: * rework of the build structure, adopt to standard cmake package structure * check versions when loading the libs * introduction of the AudioManagerCore * give control plugin as file or directory * remove SQLITE * either find and use gmock or build and install it * fixed [Bug 411] * compile flag gnu11 is now used Signed-off-by: Christian Linke Signed-off-by: Christian Linke --- docx/15_x_eclipse.dox | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 docx/15_x_eclipse.dox (limited to 'docx/15_x_eclipse.dox') diff --git a/docx/15_x_eclipse.dox b/docx/15_x_eclipse.dox new file mode 100644 index 0000000..95c8e9f --- /dev/null +++ b/docx/15_x_eclipse.dox @@ -0,0 +1,91 @@ + /* + * Copyright (C) 2012, BMW AG + * + * This file is part of GENIVI Project AudioManager. + * + * Contributions are licensed to the GENIVI Alliance under one or more + * Contribution License Agreements. + * + * \copyright + * This Source Code Form is subject to the terms of the + * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with + * this file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * \\author Christian Linke (christian.linke@bmw.de) + * + */ + + +/*! +\page eclip Download Compile Debug +\section dw Get the source +For compiling the source, you need to use git and the following packages:\n +\code +sudo apt-get install libdbus-1-dev libsqlite3-dev doxygen libgtest-dev google-mock git cmake build-essential python2.6-dev +\endcode +Getting the source got works with following command +\code +git clone https://:@git.genivi.org/srv/git/AudioManager +\endcode +\section build Compile +In order to build the project (out of source build), please follow these instructions on the commandline: +\code +mkdir /build +cd build +cmake .. +\endcode +if you want to influence the build options, you can use ccmake for example (apt-get install ccmake) +\code +ccmake .. +\endcode +You will get a menue that let's you select different options for the build. Compiling with a simple +\code +make +\endcode +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 +\code +sudo make install +\endcode +package generation is supported via CPack. To build packages, you have to +\code +make genivi_package +\endocde +this will create one package if your CMake version is < 2.8.5 (all binaries stripped): +\code +AudioManager--Linux.deb +\endcode +if your version is above, you will get 4 packages (all binaries stripped) : +\code +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] +\endcode +to create a tar.gz file of all sources (not including .git, build and bin folder,config files), you can do: +\code +make package_source +\endcode +This will create the following package: +\code +AudioManager--Source.tar.gz +\endcode +All packages will be placed in a folder called packages +\section ec Using Eclipse +First you need to get eclipse, for example by downloading it from http://www.eclipse.org/ use the C++ CDT version. +Import the project with\n +File-> import project\n +Select "existing code as makefile project" and choose the root folder auf the AudioManager\n +In order to build with eclipse you need to tell eclipse where the makefile can be found:\n +In project properties enter as build command: +\code +"make -j4 -C build" as build command +\endcode +\section deb Debugging with eclipse +For debugging you need to modify debug configurations, choose the audiomanager as binary, the debugging should work. +*/ -- cgit v1.2.1