Correct typo: GCC 5.4 --> GCC 4.5.
[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 [LibraryClasses.IA32]
89 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
90 ## Comment out the above line and un-comment the line below for running under Nt32 emulation.
91 # TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
92
93 [LibraryClasses.X64]
94 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
95
96 [LibraryClasses.IPF]
97 PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf
98 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
99
100 ###################################################################################################
101 #
102 # Components Section - list of the modules and components that will be processed by compilation
103 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
104 #
105 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
106 # into firmware volume images. This section is just a list of modules to compile from
107 # source into UEFI-compliant binaries.
108 # It is the FDF file that contains information on combining binary files into firmware
109 # volume images, whose concept is beyond UEFI and is described in PI specification.
110 # Binary modules do not need to be listed in this section, as they should be
111 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
112 # Logo (Logo.bmp), and etc.
113 # There may also be modules listed in this section that are not required in the FDF file,
114 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
115 # generated for it, but the binary will not be put into any firmware volume.
116 #
117 ###################################################################################################
118
119 [Components]
120 # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
121 # tool chain. This is required so that the library functions can be resolved during
122 # the second pass of the linker during Link-time-code-generation.
123 ###
124 MdePkg/Library/BaseLib/BaseLib.inf {
125 <BuildOptions>
126 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
127 }
128
129 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
130 <BuildOptions>
131 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
132 }
133
134 #### Sample Applications.
135 AppPkg/Applications/Hello/Hello.inf # No LibC includes or functions.
136 AppPkg/Applications/Main/Main.inf # Simple invocation. No other LibC functions.
137 AppPkg/Applications/Enquire/Enquire.inf
138
139 ################################################################
140 #
141 # See the additional comments below if you plan to run applications under the
142 # Nt32 emulation environment.
143 #
144
145 [BuildOptions]
146 INTEL:*_*_*_CC_FLAGS = /Qfreestanding
147 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t
148 GCC:*_*_*_CC_FLAGS = -ffreestanding -nostdinc -nostdlib
149
150 # The Build Options, below, are only used when building the C library
151 # to be run under the NT32 emulation. They disable the clock() system call
152 # which is currently incompatible with the NT32 environment.
153 # Just uncomment the lines below and select the correct TimerLib instance, above.
154
155 # INTEL:*_*_IA32_CC_FLAGS = /D NT32dvm
156 # MSFT:*_*_IA32_CC_FLAGS = /D NT32dvm
157 # GCC:*_*_IA32_CC_FLAGS = -DNT32dvm