-
Notifications
You must be signed in to change notification settings - Fork 473
/
args.cake
46 lines (41 loc) · 1.32 KB
/
args.cake
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
##############################################################################
# cppcoro library
#
# This file defines extra command-line args specific to the cppcoro project.
##############################################################################
from cake.script import Script
import cake.system
parser = Script.getCurrent().engine.parser
# Add a project generation option. It will be stored in 'engine.options' which
# can later be accessed in our config.cake.
parser.add_option(
"-p", "--projects",
action="store_true",
dest="createProjects",
help="Create projects instead of building a variant.",
default=False,
)
if cake.system.isLinux() or cake.system.isDarwin():
parser.add_option(
"--clang-install-prefix",
dest="clangInstallPrefix",
type="string",
metavar="PATH",
default=None,
help="Path where clang has been installed."
)
parser.add_option(
"--clang-executable",
dest="clangExecutable",
type="string",
metavar="FILE",
default="clang",
help="Name or full-path of clang executable to compile with")
parser.add_option(
"--libcxx-install-prefix",
dest="libcxxInstallPrefix",
type="string",
metavar="PATH",
default=None,
help="Path where libc++ has been installed.\n"
"Defaults to value of --clang-install-prefix")