moz.build (3739B)
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 XPIDL_MODULE = "content_geckomediaplugins" 8 9 XPIDL_SOURCES += [ 10 "mozIGeckoMediaPluginChromeService.idl", 11 "mozIGeckoMediaPluginService.idl", 12 ] 13 14 EXPORTS += [ 15 "ChromiumCDMCallback.h", 16 "ChromiumCDMParent.h", 17 "ChromiumCDMProxy.h", 18 "DecryptJob.h", 19 "gmp-api/gmp-entrypoints.h", 20 "gmp-api/gmp-errors.h", 21 "gmp-api/gmp-platform.h", 22 "gmp-api/gmp-storage.h", 23 "gmp-api/gmp-video-codec.h", 24 "gmp-api/gmp-video-decode.h", 25 "gmp-api/gmp-video-encode.h", 26 "gmp-api/gmp-video-frame-encoded.h", 27 "gmp-api/gmp-video-frame-i420.h", 28 "gmp-api/gmp-video-frame.h", 29 "gmp-api/gmp-video-host.h", 30 "gmp-api/gmp-video-plane.h", 31 "GMPCallbackBase.h", 32 "GMPChild.h", 33 "GMPContentChild.h", 34 "GMPContentParent.h", 35 "GMPCrashHelper.h", 36 "GMPCrashHelperHolder.h", 37 "GMPLoader.h", 38 "GMPMessageUtils.h", 39 "GMPNativeTypes.h", 40 "GMPParent.h", 41 "GMPPlatform.h", 42 "GMPProcessChild.h", 43 "GMPProcessParent.h", 44 "GMPSanitizedExports.h", 45 "GMPService.h", 46 "GMPServiceChild.h", 47 "GMPServiceParent.h", 48 "GMPSharedMemManager.h", 49 "GMPStorage.h", 50 "GMPStorageChild.h", 51 "GMPStorageParent.h", 52 "GMPTimerChild.h", 53 "GMPTimerParent.h", 54 "GMPUtils.h", 55 "GMPVideoDecoderChild.h", 56 "GMPVideoDecoderParent.h", 57 "GMPVideoDecoderProxy.h", 58 "GMPVideoEncodedFrameImpl.h", 59 "GMPVideoEncoderChild.h", 60 "GMPVideoEncoderParent.h", 61 "GMPVideoEncoderProxy.h", 62 "GMPVideoHost.h", 63 "GMPVideoi420FrameImpl.h", 64 "GMPVideoPlaneImpl.h", 65 ] 66 67 UNIFIED_SOURCES += [ 68 "CDMStorageIdProvider.cpp", 69 "ChromiumCDMAdapter.cpp", 70 "ChromiumCDMCallbackProxy.cpp", 71 "ChromiumCDMChild.cpp", 72 "ChromiumCDMParent.cpp", 73 "ChromiumCDMProxy.cpp", 74 "DecryptJob.cpp", 75 "GMPChild.cpp", 76 "GMPContentChild.cpp", 77 "GMPContentParent.cpp", 78 "GMPCrashHelperHolder.cpp", 79 "GMPDiskStorage.cpp", 80 "GMPLoader.cpp", 81 "GMPMemoryStorage.cpp", 82 "GMPParent.cpp", 83 "GMPPlatform.cpp", 84 "GMPProcessChild.cpp", 85 "GMPProcessParent.cpp", 86 "GMPService.cpp", 87 "GMPServiceChild.cpp", 88 "GMPServiceParent.cpp", 89 "GMPSharedMemManager.cpp", 90 "GMPStorageChild.cpp", 91 "GMPStorageParent.cpp", 92 "GMPTimerChild.cpp", 93 "GMPTimerParent.cpp", 94 "GMPUtils.cpp", 95 "GMPVideoDecoderChild.cpp", 96 "GMPVideoDecoderParent.cpp", 97 "GMPVideoEncodedFrameImpl.cpp", 98 "GMPVideoEncoderChild.cpp", 99 "GMPVideoEncoderParent.cpp", 100 "GMPVideoHost.cpp", 101 "GMPVideoi420FrameImpl.cpp", 102 "GMPVideoPlaneImpl.cpp", 103 ] 104 105 DIRS += [ 106 "rlz", 107 "widevine-adapter", 108 ] 109 110 IPDL_SOURCES += [ 111 "GMPTypes.ipdlh", 112 "PChromiumCDM.ipdl", 113 "PGMPService.ipdl", 114 "PGMPStorage.ipdl", 115 "PGMPTimer.ipdl", 116 "PGMPVideoDecoder.ipdl", 117 "PGMPVideoEncoder.ipdl", 118 ] 119 120 PREPROCESSED_IPDL_SOURCES += [ 121 "PGMP.ipdl", 122 "PGMPContent.ipdl", 123 ] 124 125 if CONFIG["TARGET_OS"] in ["WINNT", "OSX"]: 126 DEFINES["SUPPORT_STORAGE_ID"] = 1 127 128 DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"] 129 130 include("/ipc/chromium/chromium-config.mozbuild") 131 132 if CONFIG["MOZ_SANDBOX"]: 133 # For sandbox includes and the include dependencies those have 134 LOCAL_INCLUDES += [ 135 "/security/sandbox/chromium", 136 "/security/sandbox/chromium-shim", 137 ] 138 139 140 FINAL_LIBRARY = "xul" 141 # dom/media/webrtc/transport so we work with --disable-webrtc 142 LOCAL_INCLUDES += [ 143 "/dom/media/webrtc/transport", 144 "/xpcom/base", 145 "/xpcom/build", 146 "/xpcom/threads", 147 ]