moz.build (1083B)
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 UNIFIED_SOURCES += [ 8 '../FFmpegAudioDecoder.cpp', 9 '../FFmpegAudioEncoder.cpp', 10 '../FFmpegDataDecoder.cpp', 11 "../FFmpegDataEncoder.cpp", 12 '../FFmpegDecoderModule.cpp', 13 '../FFmpegEncoderModule.cpp', 14 '../FFmpegVideoDecoder.cpp', 15 '../FFmpegVideoEncoder.cpp', 16 ] 17 LOCAL_INCLUDES += [ 18 '..', 19 'include', 20 ] 21 22 if CONFIG['CC_TYPE'] in ('clang', 'gcc'): 23 CXXFLAGS += [ '-Wno-deprecated-declarations' ] 24 if CONFIG['CC_TYPE'] == 'clang': 25 CXXFLAGS += [ 26 '-Wno-unknown-attributes', 27 ] 28 if CONFIG['CC_TYPE'] == 'gcc': 29 CXXFLAGS += [ 30 '-Wno-attributes', 31 ] 32 33 if CONFIG["MOZ_SYSTEM_AV1"]: 34 CXXFLAGS += CONFIG["MOZ_SYSTEM_LIBAOM_CFLAGS"] 35 36 include("/ipc/chromium/chromium-config.mozbuild") 37 38 LOCAL_INCLUDES += [ 39 "/media/libyuv/libyuv/include", 40 ] 41 42 FINAL_LIBRARY = 'xul'