js/src/rust/moz.build
author Bogdan Tara <btara@mozilla.com>
Fri, 08 Mar 2019 20:22:38 +0200
changeset 521171 398dfc746ccd2f079d74198274020691b6299968
parent 521154 ed3b55f9d32607b2f60156551c627a5b88930373
child 521346 dbd1b0222c6f9f2f43a4bed4f0c8d4f262d23b45
permissions -rw-r--r--
Backed out changeset ed3b55f9d326 (bug 1532689) for causing build bustages CLOSED TREE

# -*- Mode: python; 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/.

RustLibrary('jsrust')

CONFIGURE_SUBST_FILES += ['extra-bindgen-flags']

if CONFIG['JS_SHARED_LIBRARY']:
    FINAL_LIBRARY = 'js'

if CONFIG['OS_ARCH'] == 'Darwin':
    # The Rust standard library references libresolv on macOS, so we need to
    # link it as a workaround. See also bug 1367932.
    OS_LIBS += ['-lresolv']
elif CONFIG['OS_ARCH'] == 'WINNT':
    # Extra libraries used by Rust bindings libs in debug builds.
    OS_LIBS += [
        'shell32',
        'userenv',
        'ws2_32',
    ]