2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2014-09-24 02:04:49 +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/.
|
|
|
|
|
|
|
|
SharedLibrary('clearkey')
|
|
|
|
|
2014-10-30 18:07:18 +03:00
|
|
|
FINAL_TARGET = 'dist/bin/gmp-clearkey/0.1'
|
|
|
|
|
2016-12-22 01:28:40 +03:00
|
|
|
FINAL_TARGET_PP_FILES += ['manifest.json.in']
|
2016-03-15 01:02:02 +03:00
|
|
|
|
2014-09-25 02:42:21 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2015-03-10 09:46:20 +03:00
|
|
|
'ClearKeyBase64.cpp',
|
2017-01-11 23:52:05 +03:00
|
|
|
'ClearKeyCDM.cpp',
|
2014-09-24 02:04:49 +04:00
|
|
|
'ClearKeyDecryptionManager.cpp',
|
2014-12-18 23:54:34 +03:00
|
|
|
'ClearKeyPersistence.cpp',
|
2014-09-24 02:04:49 +04:00
|
|
|
'ClearKeySession.cpp',
|
2015-01-12 10:15:55 +03:00
|
|
|
'ClearKeySessionManager.cpp',
|
2014-12-18 23:54:34 +03:00
|
|
|
'ClearKeyStorage.cpp',
|
2014-09-24 02:04:49 +04:00
|
|
|
'ClearKeyUtils.cpp',
|
|
|
|
'gmp-clearkey.cpp',
|
2015-01-16 00:37:54 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2014-09-24 02:04:49 +04:00
|
|
|
'openaes/oaes_lib.c',
|
|
|
|
]
|
|
|
|
|
2015-01-16 00:37:54 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'VideoDecoder.cpp',
|
|
|
|
'WMFH264Decoder.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
|
|
|
'WMFUtils.cpp',
|
|
|
|
]
|
|
|
|
|
2015-02-17 13:18:04 +03:00
|
|
|
OS_LIBS += [
|
|
|
|
'mfuuid',
|
|
|
|
]
|
|
|
|
|
2015-01-16 00:37:54 +03:00
|
|
|
DEFINES['ENABLE_WMF'] = True
|
|
|
|
|
2015-03-10 09:46:20 +03:00
|
|
|
|
2017-01-11 23:52:05 +03:00
|
|
|
DEFINES['CDM_IMPLEMENTATION'] = True
|
2015-01-16 00:37:54 +03:00
|
|
|
|
2017-01-11 23:52:05 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
'gtest',
|
2014-09-24 02:04:49 +04:00
|
|
|
]
|
|
|
|
|
2014-10-14 02:13:25 +04:00
|
|
|
DISABLE_STL_WRAPPING = True
|
|
|
|
DEFINES['MOZ_NO_MOZALLOC'] = True
|
2014-11-14 11:36:20 +03:00
|
|
|
|
2016-10-06 10:23:38 +03:00
|
|
|
USE_LIBS += ['psshparser']
|
|
|
|
|
2014-11-14 11:36:20 +03:00
|
|
|
# Suppress warnings in third-party code.
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CFLAGS += [
|
|
|
|
'-Wno-missing-braces',
|
|
|
|
'-Wno-pointer-to-int-cast',
|
|
|
|
'-Wno-sign-compare',
|
2015-11-20 11:00:33 +03:00
|
|
|
'-include', 'stdio.h', # for sprintf() prototype
|
|
|
|
'-include', 'unistd.h', # for getpid() prototype
|
2014-11-14 11:36:20 +03:00
|
|
|
]
|
|
|
|
elif CONFIG['_MSC_VER']:
|
|
|
|
CFLAGS += [
|
2015-11-20 11:00:33 +03:00
|
|
|
'-FI', 'stdio.h', # for sprintf() prototype
|
2014-11-14 11:36:20 +03:00
|
|
|
'-wd4090', # '=' : different 'const' qualifiers
|
|
|
|
]
|