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/. 6 7include('gkrust-features.mozbuild') 8 9RustLibrary('gkrust', gkrust_features, is_gkrust=True) 10 11# Target directory doesn't matter a lot here, since we can't share panic=abort 12# compilation artifacts with gkrust. 13RUST_TESTS = [ 14 'glean', 15 'selectors', 16 'servo_arc', 17 'stylo_tests', 18] 19 20for feature in gkrust_features: 21 # We don't want to enable refcount logging during rusttests, since the 22 # relevant FFI symbols wouldn't be found. 23 if feature != 'gecko_refcount_logging': 24 RUST_TEST_FEATURES.append(feature) 25 26if CONFIG['CPU_ARCH'] != 'x86': 27 # malloc_size_of_derive is a build dependency, so if we are doing 28 # cross-compile for x86, this may not run correctly. 29 RUST_TESTS += ['malloc_size_of_derive'] 30 31if CONFIG['MOZ_BITS_DOWNLOAD']: 32 RUST_TESTS += ['bits_client'] 33