Bug 1288373 - Add missing task.h for NewRunnableFunction r=tzimmermann
[gecko.git] / b2g / moz.configure
blob297bc55d6b1ce2e0c92483a824c834198b2a20fe
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 option('--with-gonk', nargs=1, help='Path to the gonk base directory')
9 @depends_if('--with-gonk', '--help')
10 def gonkdir(value, _):
11     return value[0]
13 add_old_configure_assignment('gonkdir', gonkdir)
15 @depends_if('--with-gonk')
16 def gonk_toolkit(_):
17     return 'cairo-gonk'
19 imply_option('--enable-default-toolkit', gonk_toolkit)
22 option('--with-gonk-toolchain-prefix', nargs=1,
23        help='Prefix to gonk toolchain commands')
25 @depends_if('--with-gonk-toolchain-prefix')
26 def gonk_toolchain_prefix(value):
27     return value
29 imply_option('--with-toolchain-prefix', gonk_toolchain_prefix)
32 include('common.configure')