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/.
|
|
|
|
|
2017-03-07 21:06:45 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Audio/Video: GMP")
|
|
|
|
|
2021-03-11 02:52:40 +03:00
|
|
|
GeckoSharedLibrary("clearkey", linkage=None)
|
2014-09-24 02:04:49 +04:00
|
|
|
|
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
|
|
|
]
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-09-24 02:04:49 +04:00
|
|
|
|
2017-01-11 23:52:05 +03:00
|
|
|
DEFINES["CDM_IMPLEMENTATION"] = True
|
2017-01-14 00:23:31 +03:00
|
|
|
|
2017-01-11 23:52:05 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
"gtest",
|
2017-01-14 00:23:31 +03:00
|
|
|
]
|
|
|
|
|
2017-09-11 21:33:26 +03:00
|
|
|
DisableStlWrapping()
|
2014-10-14 02:13:25 +04:00
|
|
|
DEFINES["MOZ_NO_MOZALLOC"] = True
|
2014-11-14 11:36:20 +03:00
|
|
|
|
2019-09-05 22:19:06 +03:00
|
|
|
USE_LIBS += [
|
|
|
|
"nss",
|
|
|
|
"psshparser",
|
|
|
|
]
|
2016-10-06 10:23:38 +03:00
|
|
|
|
2014-11-14 11:36:20 +03:00
|
|
|
# Suppress warnings in third-party code.
|
2019-02-15 00:45:27 +03:00
|
|
|
CFLAGS += [
|
|
|
|
"-Wno-pointer-to-int-cast",
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
]
|
2018-07-25 15:07:41 +03:00
|
|
|
|
|
|
|
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
|
|
|
CFLAGS += [
|
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
|
|
|
]
|
2019-02-15 00:45:27 +03:00
|
|
|
elif CONFIG["CC_TYPE"] == "clang-cl":
|
2014-11-14 11:36:20 +03:00
|
|
|
CFLAGS += [
|
2015-11-20 11:00:33 +03:00
|
|
|
"-FI",
|
|
|
|
"stdio.h", # for sprintf() prototype
|
2014-11-14 11:36:20 +03:00
|
|
|
]
|
2021-08-25 13:46:17 +03:00
|
|
|
|
|
|
|
REQUIRES_UNIFIED_BUILD = True
|