DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (e013f1f17109)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
# -*- 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 = ['servo', 'bindgen']

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

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

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

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

# This feature is not yet supported on all platforms, and this check needs to
# match MOZ_CUBEB_REMOTING in CubebUtils.cpp.
if (CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android') or CONFIG['OS_ARCH'] == 'Darwin' or (CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['CPU_ARCH'] != 'aarch64'):
    gkrust_features += ['cubeb-remoting']

if CONFIG['MOZ_MEMORY']:
    gkrust_features += ['moz_memory']

if CONFIG['MOZ_PLACES']:
    gkrust_features += ['moz_places']

if CONFIG['ENABLE_WASM_CRANELIFT']:
    gkrust_features += ['spidermonkey_rust']
    if CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
        gkrust_features += ['cranelift_x86']
    elif CONFIG['JS_CODEGEN_ARM']:
        gkrust_features += ['cranelift_arm32']
    elif CONFIG['JS_CODEGEN_ARM64']:
        gkrust_features += ['cranelift_arm64']
    else:
        gkrust_features += ['cranelift_none']

if CONFIG['MOZ_GECKO_PROFILER']:
    gkrust_features += ['gecko_profiler']

if CONFIG['MOZ_GECKO_PROFILER_PARSE_ELF']:
    gkrust_features += ['gecko_profiler_parse_elf']

if CONFIG['MOZ_BITS_DOWNLOAD']:
    gkrust_features += ['bitsdownload']

if CONFIG['MOZ_NEW_XULSTORE']:
    gkrust_features += ['new_xulstore']

if CONFIG['MOZ_NEW_CERT_STORAGE']:
    gkrust_features += ['new_cert_storage']