Files
Chris Johnson 0c6d851d25 UnitTestFrameworkPkg: Add subhook submodule required for gmock
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389

Add subhook submodule that is required to hook internal functions
when using gmock.

    https://github.com/Zeex/subhook

Add SubhookLib library class and SubhookLib library instance.
Include the SUBHOOK_STATIC define in the SubhookLib INF file so
it builds as a static library. Also include the SUBHOOK_STATIC
define in SubhookLib.h so all modules using SubhookLib properly
link SubhookLib as a static library.

Cc: Andrew Fish <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Michael Kubacki <[email protected]>
Cc: Sean Brogan <[email protected]>
Signed-off-by: Chris Johnson <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Reviewed-by: Michael Kubacki <[email protected]>
Reviewed-by: Oliver Smith-Denny <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
2023-04-10 05:59:02 +00:00

16 lines
298 B
C

/** @file
SubhookLib class with APIs from the subhook project
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef SUBHOOK_LIB_H_
#define SUBHOOK_LIB_H_
#define SUBHOOK_STATIC
#include <subhook.h>
#endif