blob: 17b8c8fa2400ace2a5375c8eca371a032c1a7c6e [file] [log] [blame]
Alexander Afanasyev39535f42019-07-05 22:07:52 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3from waflib import Utils
4
5def 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
13def 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)