dom/media/fake-cdm/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 30 Dec 2021 20:56:43 +0000
changeset 603490 f6699655e116887472ece6a06042cbf9b382b96d
parent 603440 1dafba86090505fd17aaa3302e2287160a6c8239
permissions -rw-r--r--
Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges While mingw builds don't require user32 and advapi32 explicitly, it doesn't hurt for them to be there (and they're required for clang-cl build). Likewise, while clang-builds don't require uuid and userenv explicitly because they're pulled in via #pragmas in the source code, mingw doesn't support those #pragmas and needs them explicitly, which doesn't hurt the clang-cl builds. Differential Revision: https://phabricator.services.mozilla.com/D134737

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

FINAL_TARGET = "dist/bin/gmp-fake/1.0"

FINAL_TARGET_FILES += [
    "manifest.json",
]

SOURCES += [
    "cdm-fake.cpp",
    "cdm-test-decryptor.cpp",
    "cdm-test-storage.cpp",
]

DEFINES["CDM_IMPLEMENTATION"] = True

SharedLibrary("fake")

if CONFIG["OS_ARCH"] == "WINNT":
    OS_LIBS += [
        "ole32",
        "user32",
    ]

USE_STATIC_LIBS = True
NoVisibilityFlags()
# Don't use STL wrappers; this isn't Gecko code
DisableStlWrapping()
NO_PGO = True