blob: a03171cfcb499bac17a32b6f96fc3765b25473cf [file] [log] [blame]
Alexander Afanasyev39535f42019-07-05 22:07:52 -04001from waflib import Utils
2
3def options(opt):
4 opt.add_option('--build', default=Utils.unversioned_sys_platform(),
5 help='Build platform that is doing the actual compilation (e.g., darwin)')
6 opt.add_option('--host', default=Utils.unversioned_sys_platform(),
7 help='Host platform on which the compiled binary will run (e.g., android)')
8 # opt.add_option('--target', default=Utils.unversioned_sys_platform(),
9 # help='Target platform on which the compiled binary's output will run')
10
11def configure(conf):
12 conf.env.BUILD = conf.options.build
13 conf.env.HOST = conf.options.host
14 # conf.env.TARGET = conf.options.target
15
16 conf.start_msg('Build platform')
17 conf.end_msg(conf.env.BUILD)
18
19 conf.start_msg('Host platform')
20 conf.end_msg(conf.env.HOST)
21
22 # conf.start_msg('Target platform')
23 # conf.end_msg(conf.env.TARGET)