Alexander Afanasyev | 39535f4 | 2019-07-05 22:07:52 -0400 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | from waflib import Utils |
| 4 | |
| 5 | def options(opt): |
| 6 | opt.add_option('--build', default=Utils.unversioned_sys_platform(), |
| 7 | help='Build platform that is doing the actual compilation (e.g., darwin)') |
| 8 | opt.add_option('--host', default=Utils.unversioned_sys_platform(), |
| 9 | help='Host platform on which the compiled binary will run (e.g., android)') |
| 10 | # opt.add_option('--target', default=Utils.unversioned_sys_platform(), |
| 11 | # help='Target platform on which the compiled binary's output will run') |
| 12 | |
| 13 | def configure(conf): |
| 14 | conf.env.BUILD = conf.options.build |
| 15 | conf.env.HOST = conf.options.host |
| 16 | # conf.env.TARGET = conf.options.target |
| 17 | |
| 18 | conf.start_msg('Build platform') |
| 19 | conf.end_msg(conf.env.BUILD) |
| 20 | |
| 21 | conf.start_msg('Host platform') |
| 22 | conf.end_msg(conf.env.HOST) |
| 23 | |
| 24 | # conf.start_msg('Target platform') |
| 25 | # conf.end_msg(conf.env.TARGET) |