moz.build (2973B)
1 # -*- Mode: python; c-basic-offset: 4; 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 8 IPDL_SOURCES += [ 9 "PMediaDecoderParams.ipdlh", 10 "PRemoteCDM.ipdl", 11 "PRemoteDecoder.ipdl", 12 "PRemoteEncoder.ipdl", 13 ] 14 15 PREPROCESSED_IPDL_SOURCES += [ 16 "PRDD.ipdl", 17 "PRemoteMediaManager.ipdl", 18 ] 19 20 EXPORTS.mozilla += [ 21 "MediaActorUtils.h", 22 "PRemoteCDMActor.h", 23 "RDDChild.h", 24 "RDDParent.h", 25 "RDDProcessHost.h", 26 "RDDProcessImpl.h", 27 "RDDProcessManager.h", 28 "RemoteCDMChild.h", 29 "RemoteCDMParent.h", 30 "RemoteDecoderChild.h", 31 "RemoteDecoderModule.h", 32 "RemoteDecoderParent.h", 33 "RemoteDecodeUtils.h", 34 "RemoteEncoderModule.h", 35 "RemoteImageHolder.h", 36 "RemoteMediaData.h", 37 "RemoteMediaDataDecoder.h", 38 "RemoteMediaDataEncoderChild.h", 39 "RemoteMediaDataEncoderParent.h", 40 "RemoteMediaManagerChild.h", 41 "RemoteMediaManagerParent.h", 42 "ShmemRecycleAllocator.h", 43 ] 44 45 EXPORTS.mozilla.dom += [ 46 "MediaIPCUtils.h", 47 "MFCDMSerializers.h", 48 ] 49 50 SOURCES += [ 51 "RDDChild.cpp", 52 "RDDParent.cpp", 53 "RDDProcessHost.cpp", 54 "RDDProcessImpl.cpp", 55 "RDDProcessManager.cpp", 56 "RemoteAudioDecoder.cpp", 57 "RemoteCDMChild.cpp", 58 "RemoteCDMParent.cpp", 59 "RemoteDecoderChild.cpp", 60 "RemoteDecoderModule.cpp", 61 "RemoteDecoderParent.cpp", 62 "RemoteDecodeUtils.cpp", 63 "RemoteEncoderModule.cpp", 64 "RemoteImageHolder.cpp", 65 "RemoteMediaData.cpp", 66 "RemoteMediaDataDecoder.cpp", 67 "RemoteMediaDataEncoderChild.cpp", 68 "RemoteMediaDataEncoderParent.cpp", 69 "RemoteMediaManagerChild.cpp", 70 "RemoteMediaManagerParent.cpp", 71 "RemoteVideoDecoder.cpp", 72 ] 73 74 if CONFIG["MOZ_WMF_MEDIA_ENGINE"]: 75 IPDL_SOURCES += [ 76 "PMFMediaEngine.ipdl", 77 ] 78 SOURCES += [ 79 "MFMediaEngineChild.cpp", 80 "MFMediaEngineParent.cpp", 81 "MFMediaEngineUtils.cpp", 82 ] 83 EXPORTS.mozilla += [ 84 "MFMediaEngineChild.h", 85 "MFMediaEngineParent.h", 86 "MFMediaEngineUtils.h", 87 ] 88 LOCAL_INCLUDES += [ 89 "../platforms/wmf", 90 ] 91 92 if CONFIG["MOZ_WMF_CDM"]: 93 IPDL_SOURCES += [ 94 "PMFCDM.ipdl", 95 ] 96 EXPORTS.mozilla += [ 97 "MFCDMChild.h", 98 "MFCDMParent.h", 99 ] 100 UNIFIED_SOURCES += [ 101 "MFCDMChild.cpp", 102 ] 103 SOURCES += [ 104 "MFCDMParent.cpp", 105 ] 106 LOCAL_INCLUDES += [ 107 "../eme/mediafoundation", 108 ] 109 110 # so we can include nsMacUtilsImpl.h in RDDParent.cpp for sandboxing 111 LOCAL_INCLUDES += [ 112 "/xpcom/base", 113 ] 114 115 if CONFIG["MOZ_SYSTEM_AV1"]: 116 CXXFLAGS += CONFIG["MOZ_SYSTEM_LIBAOM_CFLAGS"] 117 118 include("/ipc/chromium/chromium-config.mozbuild") 119 120 # Add libFuzzer configuration directives 121 include("/tools/fuzzing/libfuzzer-config.mozbuild") 122 123 124 FINAL_LIBRARY = "xul"