-
Notifications
You must be signed in to change notification settings - Fork 2
/
drakefile
39 lines (35 loc) · 1.02 KB
/
drakefile
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
import drake
binary = None
def configure(cxx_toolkit = None):
global binary
output = drake.Path('osslsigncode')
sources = drake.copy(
drake.nodes(
"Makefile.am",
"configure.ac",
"tests/testsign.sh",
"README.unauthblob",
"LICENSE",
"autogen.sh",
"osslsigncode.c"),
output)
autogen = drake.node(output / 'autogen.sh')
configure = drake.node(output / 'configure')
makefile = drake.node(output / 'Makefile')
# Autogen.
drake.ShellCommand(sources,
targets = [configure],
command = ['./autogen.sh'],
cwd = drake.path_build() / output,
)
# Configure.
drake.ShellCommand([configure],
targets = [makefile],
command = ['./configure'],
cwd = drake.path_build() / output,
)
# Make.
binary = drake.node(output / 'osslsigncode')
drake.ShellCommand([makefile], [binary], ['make', 'all'],
cwd = drake.path_build() / output,
)