]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/Common.h
3 Copyright (c) 2004 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Common include file for the ProcessDsc utility.
26 typedef unsigned int UINT32
;
28 #include "EfiUtilityMsgs.h"
30 #define MAX_LINE_LEN 1024
38 // Defines for how to expand symbols
40 #define EXPANDMODE_NO_UNDEFS 0x01
41 #define EXPANDMODE_NO_DESTDIR 0x02
42 #define EXPANDMODE_NO_SOURCEDIR 0x04
43 #define EXPANDMODE_RECURSIVE 0x08
46 // Defines for adding symbols
48 #define SYM_OVERWRITE 0x01 // overwrite existing assignments
49 #define SYM_GLOBAL 0x02 // global symbol (persistent)
50 #define SYM_LOCAL 0x04 // symbols at component level
51 #define SYM_FILE 0x08 // symbols at file level
52 #define SYM_FILEPATH 0x10 // symbol is a file path
53 #define SYM_FILENAME 0x20 // symbol is a file name
54 #define FV_DIR "FV_DIR" // symbol for base dir where FV files are
55 #define DSC_FILENAME "DSC_FILENAME"
58 // Smart file for better incremental build support.
59 // Only re-create .pkg .inf or .apr files when it's content is changed.
62 typedef struct _SMART_FILE
{
64 char *FileContent
; // Previous file content
65 int FileLength
; // Previous file string length
66 int FilePosition
; // The offset from FileContent for next comparison
67 FILE *FilePtr
; // New file pointer if the file need to be re-created
77 SMART_FILE
*SmartFile
,
123 #endif // ifndef _COMMON_H_