Alexander Afanasyev | 39535f4 | 2019-07-05 22:07:52 -0400 | [diff] [blame] | 1 | from waflib import Utils |
| 2 | |
| 3 | def 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 | |
| 11 | def 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) |