2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2014-05-18 07:05:46 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'content_geckomediaplugins'
|
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
2015-02-09 23:54:12 +03:00
|
|
|
'mozIGeckoMediaPluginChromeService.idl',
|
2014-05-18 07:05:46 +04:00
|
|
|
'mozIGeckoMediaPluginService.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS += [
|
2017-02-21 23:26:47 +03:00
|
|
|
'ChromiumCDMParent.h',
|
2017-02-22 04:42:32 +03:00
|
|
|
'ChromiumCDMProxy.h',
|
2016-12-01 00:57:58 +03:00
|
|
|
'DecryptJob.h',
|
2014-07-11 07:35:56 +04:00
|
|
|
'gmp-api/gmp-decryption.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'gmp-api/gmp-entrypoints.h',
|
|
|
|
'gmp-api/gmp-errors.h',
|
|
|
|
'gmp-api/gmp-platform.h',
|
2014-07-11 07:35:56 +04:00
|
|
|
'gmp-api/gmp-storage.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'gmp-api/gmp-video-codec.h',
|
|
|
|
'gmp-api/gmp-video-decode.h',
|
|
|
|
'gmp-api/gmp-video-encode.h',
|
|
|
|
'gmp-api/gmp-video-frame-encoded.h',
|
|
|
|
'gmp-api/gmp-video-frame-i420.h',
|
|
|
|
'gmp-api/gmp-video-frame.h',
|
|
|
|
'gmp-api/gmp-video-host.h',
|
|
|
|
'gmp-api/gmp-video-plane.h',
|
2014-07-25 05:47:40 +04:00
|
|
|
'GMPCallbackBase.h',
|
2016-09-08 13:06:20 +03:00
|
|
|
'GMPCDMCallbackProxy.h',
|
|
|
|
'GMPCDMProxy.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPChild.h',
|
2015-02-10 13:48:42 +03:00
|
|
|
'GMPContentChild.h',
|
|
|
|
'GMPContentParent.h',
|
2016-11-16 01:35:36 +03:00
|
|
|
'GMPCrashHelper.h',
|
2016-06-29 02:42:00 +03:00
|
|
|
'GMPCrashHelperHolder.h',
|
2014-07-28 03:20:34 +04:00
|
|
|
'GMPDecryptorChild.h',
|
|
|
|
'GMPDecryptorParent.h',
|
|
|
|
'GMPDecryptorProxy.h',
|
|
|
|
'GMPEncryptedBufferDataImpl.h',
|
2014-11-14 11:26:24 +03:00
|
|
|
'GMPLoader.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPMessageUtils.h',
|
|
|
|
'GMPParent.h',
|
|
|
|
'GMPPlatform.h',
|
|
|
|
'GMPProcessChild.h',
|
|
|
|
'GMPProcessParent.h',
|
|
|
|
'GMPService.h',
|
2015-02-10 13:49:03 +03:00
|
|
|
'GMPServiceChild.h',
|
2015-02-09 23:54:12 +03:00
|
|
|
'GMPServiceParent.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPSharedMemManager.h',
|
2016-05-05 02:41:33 +03:00
|
|
|
'GMPStorage.h',
|
2014-08-19 12:56:33 +04:00
|
|
|
'GMPStorageChild.h',
|
|
|
|
'GMPStorageParent.h',
|
2014-08-05 11:56:05 +04:00
|
|
|
'GMPTimerChild.h',
|
|
|
|
'GMPTimerParent.h',
|
2015-01-20 08:39:00 +03:00
|
|
|
'GMPUtils.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPVideoDecoderChild.h',
|
|
|
|
'GMPVideoDecoderParent.h',
|
2014-07-11 07:35:56 +04:00
|
|
|
'GMPVideoDecoderProxy.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPVideoEncodedFrameImpl.h',
|
|
|
|
'GMPVideoEncoderChild.h',
|
|
|
|
'GMPVideoEncoderParent.h',
|
2014-07-11 07:35:56 +04:00
|
|
|
'GMPVideoEncoderProxy.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPVideoHost.h',
|
|
|
|
'GMPVideoi420FrameImpl.h',
|
|
|
|
'GMPVideoPlaneImpl.h',
|
2017-01-11 23:52:05 +03:00
|
|
|
'widevine-adapter/content_decryption_module.h',
|
2017-05-29 08:14:26 +03:00
|
|
|
'widevine-adapter/content_decryption_module_export.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2017-03-13 06:59:34 +03:00
|
|
|
'ChromiumCDMAdapter.cpp',
|
2017-02-23 01:51:00 +03:00
|
|
|
'ChromiumCDMChild.cpp',
|
|
|
|
'ChromiumCDMParent.cpp',
|
2017-02-22 04:42:32 +03:00
|
|
|
'ChromiumCDMProxy.cpp',
|
2016-12-01 00:57:58 +03:00
|
|
|
'DecryptJob.cpp',
|
2016-09-08 13:06:20 +03:00
|
|
|
'GMPCDMCallbackProxy.cpp',
|
|
|
|
'GMPCDMProxy.cpp',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPChild.cpp',
|
2015-02-10 13:48:42 +03:00
|
|
|
'GMPContentChild.cpp',
|
|
|
|
'GMPContentParent.cpp',
|
2016-11-16 01:35:36 +03:00
|
|
|
'GMPCrashHelper.cpp',
|
2016-11-23 05:53:42 +03:00
|
|
|
'GMPCrashHelperHolder.cpp',
|
2014-07-28 03:20:34 +04:00
|
|
|
'GMPDecryptorChild.cpp',
|
|
|
|
'GMPDecryptorParent.cpp',
|
2016-05-05 02:41:33 +03:00
|
|
|
'GMPDiskStorage.cpp',
|
2014-07-28 03:20:34 +04:00
|
|
|
'GMPEncryptedBufferDataImpl.cpp',
|
2017-01-19 05:39:03 +03:00
|
|
|
'GMPLoader.cpp',
|
2016-05-05 02:41:33 +03:00
|
|
|
'GMPMemoryStorage.cpp',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPParent.cpp',
|
|
|
|
'GMPPlatform.cpp',
|
|
|
|
'GMPProcessChild.cpp',
|
|
|
|
'GMPProcessParent.cpp',
|
|
|
|
'GMPService.cpp',
|
2015-02-10 13:49:03 +03:00
|
|
|
'GMPServiceChild.cpp',
|
2015-02-09 23:54:12 +03:00
|
|
|
'GMPServiceParent.cpp',
|
2014-07-02 06:26:35 +04:00
|
|
|
'GMPSharedMemManager.cpp',
|
2014-08-19 12:56:33 +04:00
|
|
|
'GMPStorageChild.cpp',
|
|
|
|
'GMPStorageParent.cpp',
|
2014-08-05 11:56:05 +04:00
|
|
|
'GMPTimerChild.cpp',
|
|
|
|
'GMPTimerParent.cpp',
|
2015-04-30 12:52:14 +03:00
|
|
|
'GMPUtils.cpp',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPVideoDecoderChild.cpp',
|
|
|
|
'GMPVideoDecoderParent.cpp',
|
|
|
|
'GMPVideoEncodedFrameImpl.cpp',
|
|
|
|
'GMPVideoEncoderChild.cpp',
|
|
|
|
'GMPVideoEncoderParent.cpp',
|
|
|
|
'GMPVideoHost.cpp',
|
|
|
|
'GMPVideoi420FrameImpl.cpp',
|
2017-01-11 23:52:05 +03:00
|
|
|
'GMPVideoPlaneImpl.cpp'
|
2014-05-18 07:05:46 +04:00
|
|
|
]
|
|
|
|
|
2016-05-20 07:11:29 +03:00
|
|
|
DIRS += [
|
2016-05-31 02:00:55 +03:00
|
|
|
'widevine-adapter',
|
2016-05-20 07:11:29 +03:00
|
|
|
]
|
2014-10-13 02:53:44 +04:00
|
|
|
|
2014-05-18 07:05:46 +04:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'GMPTypes.ipdlh',
|
2017-02-23 01:51:00 +03:00
|
|
|
'PChromiumCDM.ipdl',
|
2014-05-18 07:05:46 +04:00
|
|
|
'PGMP.ipdl',
|
2015-02-10 13:48:42 +03:00
|
|
|
'PGMPContent.ipdl',
|
2014-07-28 03:20:34 +04:00
|
|
|
'PGMPDecryptor.ipdl',
|
2015-02-10 13:49:03 +03:00
|
|
|
'PGMPService.ipdl',
|
2014-08-19 12:56:33 +04:00
|
|
|
'PGMPStorage.ipdl',
|
2014-08-05 11:56:05 +04:00
|
|
|
'PGMPTimer.ipdl',
|
2014-05-18 07:05:46 +04:00
|
|
|
'PGMPVideoDecoder.ipdl',
|
|
|
|
'PGMPVideoEncoder.ipdl',
|
|
|
|
]
|
|
|
|
|
2014-07-02 06:26:35 +04:00
|
|
|
# comment this out to use Unsafe Shmem for more performance
|
|
|
|
DEFINES['GMP_SAFE_SHMEM'] = True
|
|
|
|
|
2014-05-18 07:05:46 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2017-01-19 05:39:03 +03:00
|
|
|
if CONFIG['MOZ_SANDBOX']:
|
|
|
|
# For sandbox includes and the include dependencies those have
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/security/sandbox/chromium',
|
|
|
|
'/security/sandbox/chromium-shim',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2014-05-18 07:05:46 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-07-23 12:26:05 +04:00
|
|
|
# media/mtransport so we work with --disable-webrtc
|
2014-05-18 07:05:46 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2014-07-23 12:26:05 +04:00
|
|
|
'/media/mtransport',
|
2014-05-18 07:05:46 +04:00
|
|
|
'/xpcom/base',
|
|
|
|
'/xpcom/build',
|
|
|
|
'/xpcom/threads',
|
|
|
|
]
|
2016-05-11 10:00:01 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|