forked from GerHobbelt/pthread-win32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mamafile.py
28 lines (22 loc) · 930 Bytes
/
mamafile.py
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
import mama
##
# Explore Mama docs at https://github.com/RedFox20/Mama
#
class pthread(mama.BuildTarget):
# this defines where to build all the dependencies
# for project-local workspace: workspace = 'build'
# for system-wide workspace: global_workspace = 'mycompany'
workspace = 'build'
# grab dependencies straight from git repositories
# if the projects are trivial or support mama, then no extra configuration is needed
# for others you will need to supply your own mamafile
def dependencies(self):
pass
# customize CMake options in this step
def configure(self):
pass
# optional: customize package exports if repository doesn't have `include` or `src`
# default include and lib export works for most common static libs
def package(self):
self.export_include('include', build_dir=True)
self.export_libs('lib', ['.lib', '.a'])