-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
35 lines (29 loc) · 1.62 KB
/
conanfile.py
File metadata and controls
35 lines (29 loc) · 1.62 KB
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
#!/user/bin/env python3
###################################################################################
# #
# NAME: conanfile.py #
# #
# AUTHOR: Michael Brockus. #
# #
# CONTACT: <mailto:michael@squidfarts.com> #
# #
# NOTICES: #
# #
# License: Apache 2.0 :http://www.apache.org/licenses/LICENSE-2.0 #
# #
###################################################################################
from conans import ConanFile, tools, Meson
from os.path import join as join_paths
import sys
if sys.version_info[0] < 3:
raise Exception("The version of Python must be 3 or greater.")
class MesonProject(ConanFile):
generators = 'pkg_config'
settings = 'os', 'compiler', 'build_type', 'arch'
topics = ('conan', 'meson', 'mesonbuild', 'build-system', 'c++17')
def build(self):
meson = Meson(self)
meson.configure()
meson.build()
# end of method build
# end of class MesonProject