Skip to content
Snippets Groups Projects
README.md 1.95 KiB
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
![PLIBS_9 logo](doc/logo.png)

----
[![pipeline status](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser/badges/master/pipeline.svg)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser/-/commits/master)
[![coverage report](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser/badges/master/coverage.svg)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser/-/commits/master)

# Code

https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser

# Documentation

https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/PhoenixFileParser/

# Requirements

- c++ compiler (tested with g++ 5,6,7,8,9,10 and clang 9,10)
Pierre Aubert's avatar
Pierre Aubert committed
- [PhoenixCMake](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixCMake)
Pierre Aubert's avatar
Pierre Aubert committed
- cmake > 3
- make

# Installation for Users

```sh
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser.git
cd PhoenixFileParser
./install.sh
```

Then **PhoenixFileParser** is installed in your $HOME/usr.


If you prefer a customized install path you can do :

```sh
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser.git
cd PhoenixFileParser
./install.sh /your/install/path
```

If you prefer a customized install path with custom compilation you can do :

```sh
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser.git
cd PhoenixFileParser
mkdir -p build
cd build
cmake .. $(phoenixcmake-config --cmake)
make -j `nproc`
make install -j `nproc`
```

The **nproc** gives the number of cores of the computer. If you want a build on one core you can just type :

```sh
make
make install
```


# Update PhoenixFileParser

If you want to update the software :

```sh
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser.git
cd PhoenixFileParser
./update.sh
```

If you want to update the software with a custom install path :

```sh
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixFileParser.git
cd PhoenixFileParser
./update.sh /your/install/path
```