-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppmake.py
More file actions
40 lines (32 loc) · 889 Bytes
/
cppmake.py
File metadata and controls
40 lines (32 loc) · 889 Bytes
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
from cppmakelib import *
self.require_packages += [
Package('tmp')
]
# self.require_packages |= {
# Package("pkg/beman"),
# Package("pkg/eigen"),
# Package("pkg/clblast"),
# Package("pkg/compiler"),
# Package("pkg/eigen"),
# Package("pkg/icu"),
# Package("pkg/jpeg"),
# }
self.define_macros |= {
"abstract" : ":",
"extends" : ":",
"in" : ":",
"reflexpr(x)": "(^^x)",
"self" : "(*this)",
"typedef" : "using"
}
# def build():
# cppmakelib.Module("import/cppcore.cpp").precompile()
# def install():
# cppmakelib.Module("import/cppcore.cpp").precompile().install()
def make():
Source("bin/main.cpp").compile().link()
# def test():
# for file in recursive_iterate_dir("test"):
# Source(file).compile().link().test()
# def pybind():
# Source("lib/pybind.cpp").compile().share()