moz.build (2411B)
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 LOCAL_INCLUDES += [ 8 "/third_party/highway/", 9 ] 10 11 # CMake has check_include_file() but for now we disable this. 12 # See bug 1839363 and bug 1903190. 13 if CONFIG["TARGET_CPU"] in ("ppc64", "s390x") and CONFIG["OS_TARGET"] == "Linux": 14 DEFINES["TOOLCHAIN_MISS_ASM_HWCAP_H"] = True 15 16 SOURCES += [ 17 "/third_party/highway/hwy/abort.cc", 18 "/third_party/highway/hwy/aligned_allocator.cc", 19 "/third_party/highway/hwy/contrib/image/image.cc", 20 "/third_party/highway/hwy/per_target.cc", 21 "/third_party/highway/hwy/profiler.cc", 22 "/third_party/highway/hwy/stats.cc", 23 "/third_party/highway/hwy/targets.cc", 24 ] 25 26 EXPORTS.hwy += [ 27 "/third_party/highway/hwy/aligned_allocator.h", 28 "/third_party/highway/hwy/base.h", 29 "/third_party/highway/hwy/cache_control.h", 30 "/third_party/highway/hwy/detect_compiler_arch.h", 31 "/third_party/highway/hwy/detect_targets.h", 32 "/third_party/highway/hwy/foreach_target.h", 33 "/third_party/highway/hwy/highway.h", 34 "/third_party/highway/hwy/highway_export.h", 35 "/third_party/highway/hwy/per_target.h", 36 "/third_party/highway/hwy/targets.h", 37 ] 38 39 EXPORTS.hwy.ops += [ 40 "/third_party/highway/hwy/ops/arm_neon-inl.h", 41 "/third_party/highway/hwy/ops/arm_sve-inl.h", 42 "/third_party/highway/hwy/ops/emu128-inl.h", 43 "/third_party/highway/hwy/ops/generic_ops-inl.h", 44 "/third_party/highway/hwy/ops/inside-inl.h", 45 "/third_party/highway/hwy/ops/loongarch_lasx-inl.h", 46 "/third_party/highway/hwy/ops/loongarch_lsx-inl.h", 47 "/third_party/highway/hwy/ops/ppc_vsx-inl.h", 48 "/third_party/highway/hwy/ops/rvv-inl.h", 49 "/third_party/highway/hwy/ops/scalar-inl.h", 50 "/third_party/highway/hwy/ops/set_macros-inl.h", 51 "/third_party/highway/hwy/ops/shared-inl.h", 52 "/third_party/highway/hwy/ops/wasm_128-inl.h", 53 "/third_party/highway/hwy/ops/x86_128-inl.h", 54 "/third_party/highway/hwy/ops/x86_256-inl.h", 55 "/third_party/highway/hwy/ops/x86_512-inl.h", 56 "/third_party/highway/hwy/ops/x86_avx3-inl.h", 57 ] 58 59 FINAL_LIBRARY = "xul" 60 61 # We allow warnings for third-party code that can be updated from upstream. 62 AllowCompilerWarnings()