moz.build (1513B)
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 SOURCES += [ 8 'sharpyuv.c', 9 'sharpyuv_csp.c', 10 'sharpyuv_dsp.c', 11 'sharpyuv_gamma.c', 12 ] 13 14 LOCAL_INCLUDES += [ 15 '/media/libwebp', 16 ] 17 18 # Note the defines in this file for cpu instruction sets are mostly overridden 19 # and enabled by what src/dsp/cpu.h does. So just removing the defines here may do 20 # nothing. 21 22 if CONFIG['TARGET_CPU'] == 'arm' and CONFIG['BUILD_ARM_NEON']: 23 SOURCES += [ 24 'sharpyuv_neon.c', 25 ] 26 DEFINES['WEBP_HAVE_NEON'] = 1; 27 for f in SOURCES: 28 if f.endswith('neon.c'): 29 SOURCES[f].flags += CONFIG['NEON_FLAGS'] 30 elif CONFIG['TARGET_CPU'] == 'aarch64': 31 SOURCES += [ 32 'sharpyuv_neon.c', 33 ] 34 DEFINES['WEBP_HAVE_NEON'] = 1; 35 elif CONFIG['INTEL_ARCHITECTURE']: 36 SOURCES += [ 37 'sharpyuv_sse2.c', 38 ] 39 DEFINES['WEBP_HAVE_SSE2'] = 1; 40 for f in SOURCES: 41 if f.endswith('sse2.c'): 42 SOURCES[f].flags += CONFIG['SSE2_FLAGS'] 43 44 if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): 45 CFLAGS += ['-Wno-unreachable-code'] 46 47 # Add libFuzzer configuration directives 48 include('/tools/fuzzing/libfuzzer-config.mozbuild') 49 50 FINAL_LIBRARY = 'xul' 51 52 # We allow warnings for third-party code that can be updated from upstream. 53 AllowCompilerWarnings()