moz.build (1140B)
1 # -*- Mode: python; 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 7 FINAL_LIBRARY = "js" 8 9 # Includes should be relative to parent path 10 LOCAL_INCLUDES += ["!..", ".."] 11 12 include("../js-compileflags.mozbuild") 13 include("../js-config.mozbuild") 14 include("../js-cxxflags.mozbuild") 15 16 UNIFIED_SOURCES += [ 17 "Mutex.cpp", 18 "ProtectedData.cpp", 19 "Thread.cpp", 20 ] 21 22 if CONFIG["OS_ARCH"] == "WINNT": 23 OS_LIBS += [ 24 "advapi32", 25 ] 26 UNIFIED_SOURCES += [ 27 "windows/CpuCount.cpp", 28 "windows/WindowsThread.cpp", 29 ] 30 # WASI hasn't supported thread yet so noop implementation is used. 31 elif CONFIG["OS_ARCH"] == "WASI": 32 UNIFIED_SOURCES += [ 33 "noop/CpuCount.cpp", 34 "noop/NoopThread.cpp", 35 ] 36 else: 37 UNIFIED_SOURCES += [ 38 "posix/CpuCount.cpp", 39 "posix/PosixThread.cpp", 40 ] 41 42 if CONFIG["FUZZING_JS_FUZZILLI"]: 43 include("/tools/fuzzing/libfuzzer-config.mozbuild")