FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expresscpp/conanfile.py at master · expresscpp/expresscpp · GitHub
expresscpp
/
expresscpp
Public
Notifications
You must be signed in to change notification settings
Fork
15
Star
96
Code
Issues
5
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expresscpp
/
conanfile.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (39 loc) · 1.54 KB
Breadcrumbs
expresscpp
/
conanfile.py
Copy path
File metadata and controls
46 lines (39 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
from
conans
import
ConanFile
,
CMake
import
subprocess
import
json
class
ExpressCpp
(
ConanFile
):
name
=
"expresscpp"
try
:
with
open
(
'package.json'
)
as
json_file
:
data
=
json
.
load
(
json_file
)
version
=
data
[
'version'
]
print
(
version
)
except
:
version
=
"0.0.0"
license
=
"MIT"
url
=
"https://gitlab.com/expresscpp/expresscpp"
description
=
"same as expressjs for nodejs but for C++"
settings
=
"os"
,
"compiler"
,
"build_type"
,
"arch"
options
=
{
"shared"
: [
True
,
False
],
"fPIC"
: [
True
,
False
]}
default_options
=
{
"shared"
:
False
,
"fPIC"
:
True
}
generators
=
[
"cmake"
,
"cmake_find_package"
,
"cmake_paths"
]
exports_sources
=
"CMakeLists.txt"
,
"cmake/*"
,
"src/*"
,
"include/*"
,
"conanfile.txt"
,
"package.json"
def
build
(
self
):
cmake
=
CMake
(
self
)
cmake
.
definitions
[
"EXPRESSCPP_USE_CONAN_DEPENDENCIES"
]
=
True
cmake
.
configure
(
source_folder
=
"."
)
cmake
.
build
()
def
requirements
(
self
):
self
.
requires
.
add
(
"boost/1.72.0"
)
self
.
requires
.
add
(
"fmt/6.1.2"
)
self
.
requires
.
add
(
"nlohmann_json/3.7.3"
)
def
package
(
self
):
self
.
copy
(
"*.hpp"
,
src
=
"."
)
self
.
copy
(
"*expresscpp.lib"
,
dst
=
"lib"
,
keep_path
=
False
)
self
.
copy
(
"*.dll"
,
dst
=
"bin"
,
keep_path
=
False
)
self
.
copy
(
"*.so"
,
dst
=
"lib"
,
keep_path
=
False
)
self
.
copy
(
"*.dylib"
,
dst
=
"lib"
,
keep_path
=
False
)
self
.
copy
(
"*.a"
,
dst
=
"lib"
,
keep_path
=
False
)
def
package_info
(
self
):
self
.
cpp_info
.
libs
=
[
"expresscpp"
]
Back
|
FazBrowse Home
|
New Git URL