Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

bincrafters/conan-libpcap

Repository files navigation

Build Status badge License Download

PCAP library is an API for capturing network traffic

conan-libpcap

Conan.io package for libpcap project

The packages generated with this conanfile can be found in Bintray.

Build packages

Download conan client from Conan.io and run:

$ python build.py

If your are in Windows you should run it from a VisualStudio console in order to get "mc.exe" in path.

Upload packages to server

$ conan upload libpcap/1.8.1@bincrafters/stable --all

Reuse the packages

Basic setup

$ conan install libpcap/1.8.1@bincrafters/stable

Project setup

If you handle multiple dependencies in your project is better to add a conanfile.txt

[requires]
libpcap/1.8.1@bincrafters/stable

[options]
libpcap:shared=True # False

[generators]
txt
cmake

Complete the installation of requirements for your project running:

conan install .

Project setup installs the library (and all his dependencies) and generates the files conanbuildinfo.txt and conanbuildinfo.cmake with all the paths and variables that you need to link with your dependencies.

License

MIT