toolkit/library/rust/gkrust-features.mozbuild
author Dan Glastonbury <dan.glastonbury@gmail.com>
Thu, 12 Oct 2017 10:32:29 +1000
changeset 678949 332d7d14a6becb3475e88d4b10c328d7cd36313d
parent 653028 bdae736da908fc254a992d3f3514bd4392aa009d
child 682118 26d9628b14087ca9703f7e2b5a783fd8a101cdf8
child 682251 2a737a3b5ee487c4b841066a78b00d248a020834
permissions -rw-r--r--
Bug 1407487 - P1: Remove --enable-cubeb-remoting. r?kinetik, rillian Replace with conditional compilation enabled for Linux targets. MozReview-Commit-ID: GjD0Ix8aeJW

# -*- 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/.

gkrust_features = []
if CONFIG['MOZ_STYLO']:
    gkrust_features += ['servo']

    if CONFIG['MOZ_STYLO_BINDGEN']:
        gkrust_features += ['bindgen']

    if CONFIG['MOZ_DEBUG']:
        gkrust_features += ['gecko_debug']

if CONFIG['MOZ_BUILD_WEBRENDER']:
    gkrust_features += ['quantum_render']

if CONFIG['MOZ_PULSEAUDIO']:
    gkrust_features += ['cubeb_pulse_rust']

if CONFIG['MOZ_RUST_SIMD']:
    gkrust_features += ['simd-accel']

# This feature is only supported on Linux and this check needs to
# match XP_LINUX.
if CONFIG['OS_ARCH'] == 'Linux':
    gkrust_features += ['cubeb-remoting']

gkrust_features += ['no-static-ideograph-encoder-tables']