## @file\r
# This file is used to parse and evaluate expression in directive or PCD value.\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
InQuote = True\r
MacroStartPos = String.find('$(')\r
if MacroStartPos < 0:\r
+ for Pcd in gPlatformPcds.keys():\r
+ if Pcd in String:\r
+ if Pcd not in gConditionalPcds:\r
+ gConditionalPcds.append(Pcd)\r
continue\r
RetStr = ''\r
while MacroStartPos >= 0:\r