commit | 053ffe1f36ef2f6df530be0640ce936567a09d44 | [log] [tgz] |
---|---|---|
author | Ryan Prichard <[email protected]> | Wed Sep 27 01:16:34 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Sep 27 01:16:34 2023 +0000 |
tree | 0e363efcd4c3d7e24c97cf7efa52c54623e9d66e | |
parent | 61895fb5c6021713b34b2482585a5ea8428f1c34 [diff] | |
parent | 379381c4379eadce60f11d441452f0a78ca91ad0 [diff] |
Merge "Define BOOST_NO_CXX98_FUNCTION_BASE for new libc++" into main am: ab80376633 am: 1ad8ebf4b7 am: 3d6ff503f8 am: 883c309286 am: 379381c437 Original change: https://android-review.googlesource.com/c/platform/external/sdv/vsomeip/+/2763085 Change-Id: I72c801cb5df85f9e6e5b3114033d7e1b754cd3e7 Signed-off-by: Automerger Merge Worker <[email protected]>
Copyright (C) 2015-2017, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
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/.
The vsomeip stack implements the http://some-ip.com/ (Scalable service-Oriented MiddlewarE over IP (SOME/IP)) protocol. The stack consists out of:
libvsomeip3.so
)libvsomeip3-sd.so
) which is loaded during runtime if the service discovery is enabled.Ubuntu 14.04:
sudo apt-get install libboost-system1.55-dev libboost-thread1.55-dev libboost-log1.55-dev
Ubuntu 12.04: a PPA is necessary to use version 1.54 of Boost: -- URL: https://launchpad.net/~boost-latest/+archive/ubuntu/ppa --sudo add-apt-repository ppa:boost-latest/ppa
--sudo apt-get install libboost-system1.55-dev libboost-thread1.55-dev libboost-log1.55-dev
For the tests Google's test framework https://code.google.com/p/googletest/[gtest] in version 1.7.0 is needed. -- URL: https://googletest.googlecode.com/files/gtest-1.7.0.zip
To build the documentation asciidoc, source-highlight, doxygen and graphviz is needed: --sudo apt-get install asciidoc source-highlight doxygen graphviz
For compilation call:
mkdir build cd build cmake .. make
To specify a installation directory (like --prefix=
if you're used to autotools) call cmake like:
cmake -DCMAKE_INSTALL_PREFIX:PATH=$YOUR_PATH .. make make install
To predefine the unicast address, call cmake like:
cmake -DUNICAST_ADDRESS=<YOUR IP ADDRESS> ..
To predefine the diagnosis address, call cmake like:
cmake -DDIAGNOSIS_ADDRESS=<YOUR DIAGNOSIS ADDRESS> ..
The diagnosis address is a single byte value.
To change the default configuration folder, call cmake like:
cmake -DDEFAULT_CONFIGURATION_FOLDER=<DEFAULT CONFIGURATION FOLDER> ..
The default configuration folder is /etc/vsomeip.
To change the default configuration file, call cmake like:
cmake -DDEFAULT_CONFIGURATION_FILE=<DEFAULT CONFIGURATION FILE> ..
The default configuration file is /etc/vsomeip.json.
To compile vsomeip with signal handling (SIGINT/SIGTERM) enabled, call cmake like:
cmake -DENABLE_SIGNAL_HANDLING=1 ..
In the default setting, the application has to take care of shutting down vsomeip in case these signals are received.
In general for building the Android source tree the instructions found on the pages from the Android Open Source Project (AOSP) apply (https://source.android.com/setup/build/requirements).
To integrate the vsomeip library into the build process, the source code together with the Android.bp file has to be inserted into the Android source tree (by simply copying or by fetching with a custom platform manifest). When building the Android source tree, the Android.bp file is automatically found and considered by the build system.
In order that the vsomeip library is also included in the Android image, the library has to be added to the PRODUCT_PACKAGES variable in one of a device/target specific makefile:
PRODUCT_PACKAGES += \ libvsomeip \ libvsomeip_cfg \ libvsomeip_sd