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 += [
|
2014-07-11 07:35:56 +04:00
|
|
|
'gmp-api/gmp-async-shutdown.h',
|
|
|
|
'gmp-api/gmp-audio-codec.h',
|
|
|
|
'gmp-api/gmp-audio-decode.h',
|
|
|
|
'gmp-api/gmp-audio-host.h',
|
|
|
|
'gmp-api/gmp-audio-samples.h',
|
|
|
|
'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-08-03 01:29:26 +04:00
|
|
|
'GMPAudioDecoderChild.h',
|
|
|
|
'GMPAudioDecoderParent.h',
|
|
|
|
'GMPAudioDecoderProxy.h',
|
|
|
|
'GMPAudioHost.h',
|
2014-07-25 05:47:40 +04:00
|
|
|
'GMPCallbackBase.h',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPChild.h',
|
2015-02-10 13:48:42 +03:00
|
|
|
'GMPContentChild.h',
|
|
|
|
'GMPContentParent.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',
|
|
|
|
]
|
|
|
|
|
2016-08-09 07:13:30 +03:00
|
|
|
if CONFIG['MOZ_EME']:
|
|
|
|
EXPORTS += [
|
|
|
|
'GMPCDMCallbackProxy.h',
|
|
|
|
'GMPCDMProxy.h',
|
|
|
|
]
|
|
|
|
|
2014-11-14 11:26:24 +03:00
|
|
|
# We link GMPLoader into xul on B2G/Fennec as its code does not need to be
|
|
|
|
# covered by a DRM vendor's voucher.
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
SOURCES += [
|
|
|
|
'GMPLoader.cpp',
|
|
|
|
]
|
2016-05-20 07:11:29 +03:00
|
|
|
USE_LIBS += [
|
|
|
|
'rlz',
|
|
|
|
]
|
2014-11-14 11:26:24 +03:00
|
|
|
|
2014-05-18 07:05:46 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-08-03 01:29:26 +04:00
|
|
|
'GMPAudioDecoderChild.cpp',
|
|
|
|
'GMPAudioDecoderParent.cpp',
|
|
|
|
'GMPAudioHost.cpp',
|
2014-05-18 07:05:46 +04:00
|
|
|
'GMPChild.cpp',
|
2015-02-10 13:48:42 +03:00
|
|
|
'GMPContentChild.cpp',
|
|
|
|
'GMPContentParent.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',
|
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',
|
|
|
|
'GMPVideoPlaneImpl.cpp',
|
|
|
|
]
|
|
|
|
|
2016-08-09 07:13:30 +03:00
|
|
|
if CONFIG['MOZ_EME']:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'GMPCDMCallbackProxy.cpp',
|
|
|
|
'GMPCDMProxy.cpp',
|
|
|
|
]
|
|
|
|
|
2016-05-20 07:11:29 +03:00
|
|
|
DIRS += [
|
|
|
|
'rlz',
|
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',
|
|
|
|
'PGMP.ipdl',
|
2014-08-03 01:29:26 +04:00
|
|
|
'PGMPAudioDecoder.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')
|
|
|
|
|
|
|
|
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']
|