From: Hao Wu Date: Mon, 1 Aug 2016 06:13:48 +0000 (+0800) Subject: SecurityPkg DSC: Add build option to disable deprecated APIs X-Git-Tag: edk2-stable201903~6105 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=b32f094cd34d54eda6b8a4cf94f1a4f2e0c334d8 SecurityPkg DSC: Add build option to disable deprecated APIs Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Chao Zhang --- diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc index 21cac786b4..0ac4dfb5c8 100644 --- a/SecurityPkg/SecurityPkg.dsc +++ b/SecurityPkg/SecurityPkg.dsc @@ -325,4 +325,5 @@ [BuildOptions] MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256 + *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES