README.md 1.59 KB
Newer Older
Erwan Croze's avatar
Erwan Croze committed
1 2
[![pipeline status](https://gitlab.linphone.org/BC/public/belcard/badges/master/pipeline.svg)](https://gitlab.linphone.org/BC/public/belcard/commits/master)

3 4 5
BelCard
=======

6 7 8 9
Belcard is a C++ library to manipulate VCard standard format

Dependencies
------------
10 11
- *bctoolbox[1]* : portability layer.
- *belr[2]*      : used to parse VCard format.
12 13 14 15 16


Build instrucitons
------------------

17 18 19 20
	cmake . -DCMAKE_INSTALL_PREFIX=<install_prefix> -DCMAKE_PREFIX_PATH=<search_prefix>
	
	make
	make install
21 22 23 24


Options
-------
25 26 27 28 29 30 31

- `CMAKE_INSTALL_PREFIX=<string>` : installation prefix
- `CMAKE_PREFIX_PATH=<string>`    : prefix where depedencies are installed
- `ENABLE_UNIT_TESTS=NO`          : do not compile non-regression tests
- `ENABLE_SHARED=NO`              : do not build the shared library.
- `ENABLE_STATIC=NO`              : do not build the static library.
- `ENABLE_STRICT=NO`              : do not build with strict complier flags e.g. `-Wall -Werror`
32 33 34 35


Note for packagers
------------------
36 37
Our CMake scripts may automatically add some paths into research paths of generated binaries.
To ensure that the installed binaries are striped of any rpath, use `-DCMAKE_SKIP_INSTALL_RPATH=ON`
38
while you invoke cmake.
39

jehan's avatar
jehan committed
40 41 42 43 44 45 46 47
Rpm packaging
belcard can be generated with cmake3 using the following command:
mkdir WORK
cd WORK
cmake3 ../
make package_source
rpmbuild -ta --clean --rmsource --rmspec belcard-<version>-<release>.tar.gz

48 49 50 51 52

------------------

- [1] git://git.linphone.org/bctoolbox.git or <http://www.linphone.org/releases/sources/bctoolbox>
- [2] git://git.linphone.org/belr.git or <http://www.linphone.org/releases/sources/belr>