Skip to content

Commit 00cb576

Browse files
author
Vlad Gramuzov
committed
chore(readme): Update readme and conanfile.py
1 parent ff13d39 commit 00cb576

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[ ![Download](https://api.bintray.com/packages/techpaw/SolutionsForWeb/FastCgi%3Apandomic/images/download.svg) ](https://bintray.com/techpaw/SolutionsForWeb/FastCgi%3Apandomic/_latestVersion)
2+
3+
** NOTE that this lib is still under development**
4+
5+
## About
6+
Yet another FastCgi protocol implementation.
7+
8+
## Installation
9+
* Install [conan](https://docs.conan.io/en/latest/installation.html)
10+
* Clone the repo
11+
* Add `https://api.bintray.com/conan/bincrafters/public-conan`
12+
to the repos list (`conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan`
13+
* Add `https://api.bintray.com/conan/techpaw/SolutionsForWeb`
14+
to the repos list (`conan remote add techpaw/SolutionsForWeb https://api.bintray.com/conan/techpaw/SolutionsForWeb`)
15+
* Add `FastCgi/0.1@pandomic/experimental` to your `conanfile.txt`
16+
* Run `conan install . --build=missing`
17+
* Include necessary headers `#include <fastcgi/server.hpp>`
18+
* That's it (ideally)

conanfile.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from conans import ConanFile, CMake, tools
2+
3+
4+
class FastCgiConan(ConanFile):
5+
name = "FastCgi"
6+
version = "0.1"
7+
license = "MIT"
8+
url = "https://github.com/Techpaw/FastCGI"
9+
description = "FastCgi implementation"
10+
settings = "os", "compiler", "build_type", "arch"
11+
options = {"shared": [True, False]}
12+
default_options = "shared=True"
13+
generators = "cmake"
14+
exports_sources = "include/*"
15+
requires = "Boost.Asio/1.65.1@bincrafters/stable", \
16+
"Boost.Stacktrace/1.65.1@bincrafters/stable"
17+
18+
def source(self):
19+
self.run("git clone https://github.com/Techpaw/FastCGI.git fastcgi")
20+
self.run("cd fastcgi && git checkout stable")
21+
22+
def build(self):
23+
cmake = CMake(self)
24+
cmake.configure(source_folder="fastcgi")
25+
cmake.build()
26+
27+
def package(self):
28+
self.copy("*.hpp", dst="include", src="fastcgi/include")
29+
self.copy("*.a", dst="lib", keep_path=False)
30+
31+
def package_info(self):
32+
self.cpp_info.libs = ["fastcgi"]

0 commit comments

Comments
 (0)