]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/AppPkg.dsc
6e2fa720b556d22ed371915a7339b7c53a8f0263
[mirror_edk2.git] / AppPkg / AppPkg.dsc
1 ## @file
2 # Intel(r) UEFI Application Development Kit for EDK II.
3 # This package contains applications which depend upon Standard Libraries
4 # from the StdLib package.
5 #
6 # See the comments in the [LibraryClasses.IA32] and [BuildOptions] sections
7 # for important information about configuring this package for your
8 # environment.
9 #
10 # Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
11 # This program and the accompanying materials
12 # are licensed and made available under the terms and conditions of the BSD License
13 # which accompanies this distribution. The full text of the license may be found at
14 # http://opensource.org/licenses/bsd-license.
15 #
16 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 ##
19
20 [Defines]
21 PLATFORM_NAME = AppPkg
22 PLATFORM_GUID = 0458dade-8b6e-4e45-b773-1b27cbda3e06
23 PLATFORM_VERSION = 0.01
24 DSC_SPECIFICATION = 0x00010006
25 OUTPUT_DIRECTORY = Build/AppPkg
26 SUPPORTED_ARCHITECTURES = IA32|IPF|X64
27 BUILD_TARGETS = DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
29
30 [PcdsFeatureFlag]
31
32 [PcdsFixedAtBuild]
33 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
34 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
35
36 [PcdsFixedAtBuild.IPF]
37
38 [LibraryClasses]
39 #
40 # Entry Point Libraries
41 #
42 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
43 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
44 #
45 # Common Libraries
46 #
47 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
48 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
49 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
50 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
52 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
53 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
54 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
55 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
56 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
57 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
58 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
59 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
60 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
61 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
62 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
63 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
64 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
65 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
66 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
67 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
68 FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
69 SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf
70
71 #
72 # C Standard Libraries
73 #
74 LibC|StdLib/LibC/LibC.inf
75 LibStdLib|StdLib/LibC/StdLib/StdLib.inf
76 LibString|StdLib/LibC/String/String.inf
77 LibWchar|StdLib/LibC/Wchar/Wchar.inf
78 LibCType|StdLib/LibC/Ctype/Ctype.inf
79 LibTime|StdLib/LibC/Time/Time.inf
80 LibStdio|StdLib/LibC/Stdio/Stdio.inf
81 LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf
82 LibLocale|StdLib/LibC/Locale/Locale.inf
83 LibUefi|StdLib/LibC/Uefi/Uefi.inf
84 LibMath|StdLib/LibC/Math/Math.inf
85 LibSignal|StdLib/LibC/Signal/Signal.inf
86 LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf
87
88 # Libraries for device abstractions within the Standard C Library
89 # Applications should not directly access any functions defined in these libraries.
90 DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf
91 DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf
92 DevShell|StdLib/LibC/Uefi/Devices/daShell.inf
93
94 [LibraryClasses.IA32]
95 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
96 ## Comment out the above line and un-comment the line below for running under Nt32 emulation.
97 # TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
98
99 [LibraryClasses.X64]
100 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
101
102 [LibraryClasses.IPF]
103 PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf
104 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
105
106 ###################################################################################################
107 #
108 # Components Section - list of the modules and components that will be processed by compilation
109 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
110 #
111 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
112 # into firmware volume images. This section is just a list of modules to compile from
113 # source into UEFI-compliant binaries.
114 # It is the FDF file that contains information on combining binary files into firmware
115 # volume images, whose concept is beyond UEFI and is described in PI specification.
116 # Binary modules do not need to be listed in this section, as they should be
117 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
118 # Logo (Logo.bmp), and etc.
119 # There may also be modules listed in this section that are not required in the FDF file,
120 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
121 # generated for it, but the binary will not be put into any firmware volume.
122 #
123 ###################################################################################################
124
125 [Components]
126 # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
127 # tool chain. This is required so that the library functions can be resolved during
128 # the second pass of the linker during Link-time-code-generation.
129 ###
130 MdePkg/Library/BaseLib/BaseLib.inf {
131 <BuildOptions>
132 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
133 }
134
135 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
136 <BuildOptions>
137 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
138 }
139
140 #### Sample Applications.
141 AppPkg/Applications/Hello/Hello.inf # No LibC includes or functions.
142 AppPkg/Applications/Main/Main.inf # Simple invocation. No other LibC functions.
143 AppPkg/Applications/Enquire/Enquire.inf
144 AppPkg/Applications/Python/PythonCore.inf
145
146 ################################################################
147 #
148 # See the additional comments below if you plan to run applications under the
149 # Nt32 emulation environment.
150 #
151
152 [BuildOptions]
153 INTEL:*_*_*_CC_FLAGS = /Qfreestanding
154 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t
155 GCC:*_*_*_CC_FLAGS = -ffreestanding -nostdinc -nostdlib
156
157 # The Build Options, below, are only used when building the C library
158 # to be run under the NT32 emulation. They disable the clock() system call
159 # which is currently incompatible with the NT32 environment.
160 # Just uncomment the lines below and select the correct TimerLib instance, above.
161
162 # INTEL:*_*_IA32_CC_FLAGS = /D NT32dvm
163 # MSFT:*_*_IA32_CC_FLAGS = /D NT32dvm
164 # GCC:*_*_IA32_CC_FLAGS = -DNT32dvm