author Junior Hsu <juhsu@mozilla.com>
Mon, 11 Apr 2016 11:20:55 +0800
changeset 330656 e0a1ad6c114e2540b536f414d7d277a7aa683d1a
parent 329661 26b2eb531d94055e19f05389b5646f4c3b1181ca
child 341888 f6f4144c4dbcdf009c356de28c9a043c3aed6c99
permissions -rw-r--r--
Bug 1148307 - Part 4, use data channel in substitution for TCP session transport (in-process), r=smaug

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

option('--with-gonk', nargs=1, help='Path to the gonk base directory')

def gonkdir(value):
    return value[0]

add_old_configure_assignment('gonkdir', gonkdir)
           depends_if(gonkdir)(lambda x: os.path.join(x, 'ndk')))

def gonk_toolkit(_):
    return 'cairo-gonk'

imply_option('--enable-default-toolkit', gonk_toolkit)

option('--with-gonk-toolchain-prefix', nargs=1,
       help='Prefix to gonk toolchain commands')

def gonk_toolchain_prefix(value):
    return value

imply_option('--with-toolchain-prefix', gonk_toolchain_prefix)