Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

277 lines
11 KiB

  1. REM ********************************************************************************************************************
  2. REM APC Version of CESYSGEN.bat
  3. REM
  4. REM // APC modules - initialize it to nothing before using it to prevent build breaks
  5. set APC_MODULES=
  6. REM Core Modules
  7. REM The following modules are core modules which we must have
  8. set CE_MODULES=coredll filesys nk kd device
  9. REM COMPONENTS required by core modules
  10. REM The following COREDLL components are always needed
  11. set COREDLL_COMPONENTS=coremain coreloc lmem thunks
  12. REM Serial device support
  13. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% serdev
  14. REM files system and shell support
  15. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% shcore shellapis shexec shmisc fileinfo shortcut fileopen
  16. REM Miscellaneous COREDLL components
  17. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% fmtmsg syscolor coreimmstub
  18. REM // Cryptography support
  19. set CE_MODULES=%CE_MODULES% rsabase
  20. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% cryptapi rsa32
  21. REM DEBUG support (including ppsh)
  22. set CE_MODULES=%CE_MODULES% loaddbg memtool toolhelp dbg shell
  23. REM TAPI dialing support (needed for modem or direct connect)
  24. set CE_MODULES=%CE_MODULES% tapi unimodem
  25. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% tapilib
  26. REM // GWES stuff
  27. REM set CE_MODULES=%CE_MODULES% gwes
  28. REM // minimal messaging components for GWE
  29. set GWE1_COMPONENTS=wmbase gwesmain msgque loadstr GSetWinLong notify notifmin immthunk
  30. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% rectapi wmgr_c
  31. REM // minimal user input components for GWE
  32. set GWE1_COMPONENTS=%GWE1_COMPONENTS% foregnd uibase kbdui
  33. REM // SystemIdle API's
  34. set GWE1_COMPONENTS=%GWE1_COMPONENTS% idle
  35. REM // Base GDI components
  36. set GWE1_COMPONENTS=%GWE1_COMPONENTS% getpower msgbeep gweshare nled
  37. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% mgdi_c
  38. REM // AutoShell depents on components
  39. set GWE1_COMPONENTS=%GWE1_COMPONENTS% hotkey
  40. set GWE2_COMPONENTS=mgpalnat mgtt mgpal mgprint mgdrwtxt mgwinmgr mgbase mgbitmap mgblt mgblt2 mgdc mgdibsec mgdraw mgrgn sbcmn
  41. set GWE3_COMPONENTS=icon iconcmn winmgr nclient menu mNoTapUI loadimg loadbmp accel defwndproc gcache caret clipbd timer
  42. set GWE4_COMPONENTS=gwectrl btnctl cmbctl cdlctl edctl imgctl lbctl scbctl stcctl dlgmgr dlgmnem
  43. REM // Wave and audio API support
  44. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% wavelib
  45. set GWE1_COMPONENTS=%GWE1_COMPONENTS% audio
  46. REM PB+ setting ============================ Audio Codec ==========================================
  47. if "%APC_NOACM%"=="1" goto endif_01
  48. set CE_MODULES=%CE_MODULES% gsm610 msfilter
  49. set APC_MODULES=%APC_MODULES% msadpcm
  50. :endif_01
  51. REM PB+ setting ============================ COM/DCOM ==========================================
  52. if "%APC_NODCOM%"=="1" goto endif_02
  53. set DCOM_MODULES=dllhost dcomssd rpcrt4 rpcltccm rpcltscm ole32 oleaut32 uuid
  54. set OLE32_COMPONENTS=dcomole stg
  55. set CE_MODULES=%CE_MODULES% lpcd lpcrt
  56. set CE_MODULES=%CE_MODULES% secur32 ntlmssp rsabase rsaenh
  57. set CE_MODULES=%CE_MODULES% schannel
  58. set WINSOCK_COMPONENTS=sslsock
  59. set CE_MODULES=%CE_MODULES% redir netbios
  60. set APC_MODULES=%APC_MODULES% oletypes
  61. REM PB+ setting ============ NSDAPI components ===========================================
  62. if "%APC_NONSDAPI%"=="1" goto endif_03
  63. set APC_MODULES=%APC_MODULES% trimble nsdapi simplegps
  64. :endif_03
  65. :endif_02
  66. if not "%APC_NODCOM%"=="1" goto endif_04
  67. set CE_MODULES=%CE_MODULES% uuid ole32 oleaut32
  68. set OLE32_COMPONENTS=ole232 com olemain stg
  69. :endif_04
  70. REM // FatFS support: needs pcmcia
  71. set CE_MODULES=%CE_MODULES% fatfs atadisk sramdisk
  72. REM // other essential FS components for boot: heap, registry
  73. set FILESYS_COMPONENTS=fsysram fsreg fsheap fsmain fspass fsdbase
  74. REM // PCMCIA Card support (including serial driver)
  75. set CE_MODULES=%CE_MODULES% cardserv ser_card
  76. REM // Base Communications support - including Point-to-Point Prototol (ppp) and TCP
  77. REM // Note: PPP Requires TCP, the serial device and TAPI
  78. REM // In CedarPB, ppp depends on asyncmac and both depends on ndis. arp is obsolete
  79. set CE_MODULES=%CE_MODULES% cxport winsock afd ppp tcpstk netui asyncmac
  80. REM // IrdaStk now uses NDIS to talk to the driver - NOTE: NDIS IS NEW!
  81. set CE_MODULES=%CE_MODULES% irdastk ndis ne2000 dhcp
  82. REM // irdastk & ndis both uses ntcompat which uses corestra
  83. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% corestra
  84. REM // netui and commctrl uses coreimm
  85. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% coreimm
  86. REM PB+ setting ============== IRCOMM ==========================================
  87. if "%APC_NOIRCOMM%"=="1" goto endif_05
  88. set CE_MODULES=%CE_MODULES% ircomm
  89. :endif_05
  90. REM PB+ setting ============== COMMCTRL ==========================================
  91. if "%APC_NOCOMMCTRL%"=="1" goto endif_06
  92. set CE_MODULES=%CE_MODULES% commctrl
  93. set GWE1_COMPONENTS=%GWE1_COMPONENTS% drawmbar
  94. :endif_06
  95. REM PB+ setting ======== USB ==========================================
  96. if "%APC_NOUSB%"=="1" goto endif_07
  97. set CE_MODULES=%CE_MODULES% usbd
  98. set CE_MODULES=%CE_MODULES% usbhid
  99. set APC_MODULES=%APC_MODULES% usb2com
  100. :endif_07
  101. REM Jscript PB+ setting
  102. if "%APC_NOJSCRIPT%"=="1" goto endif_08
  103. set SCRIPT_MODULES=jscript
  104. :endif_08
  105. REM PB+ setting ============ SIP components ===========================================
  106. if "%APC_NOSIP%"=="1" set APC_NOGENIE=1&goto endif_09
  107. set CE_MODULES=%CE_MODULES% softkb
  108. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% coresip
  109. set APC_MODULES=%APC_MODULES% sipkb
  110. :endif_09
  111. REM PB+ setting ============ APC basic components ===========================================
  112. set APC_MODULES=%APC_MODULES% batch apcpsl pandr pandrlib gdigui tuner msvolpwd apcfunc oemsoftkey
  113. set APC_MODULES=%APC_MODULES% cdcont irsir apcupd msgstore transman softkeyctl oemregion
  114. set APC_MODULES=%APC_MODULES% SMTPNOUI imgdecmp waveapi
  115. set APC_MODULES=%APC_MODULES% cursor iconcmn iomem apcdll objstore wavemdd2 osupdate cdfs
  116. set APC_MODULES=%APC_MODULES% oemvolpwd cddm pefile SAPI apcspeech
  117. REM PB+ setting ============ APC FormsManager components ===========================================
  118. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% chfc chfcguid uivga ui25664 irsquirt abapi apcload smtpui
  119. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% vsiteui baseapp apcupgrd upgdbkp3 msgbox autorun clock genapp
  120. if not "%APC_NOFM%"=="1" goto endif_10
  121. REM Turn off dependent components
  122. set APC_NOADDRBOOK=1
  123. set APC_NOAUDIOAPP=1
  124. set APC_NOMEDIAAPP=1
  125. set APC_NORADIOAPP=1
  126. set APC_NOSETUP=1
  127. set APC_NOBROWSERAPP=1
  128. set APC_NOSDKSAMPLES=1
  129. set APC_SDKCONNECT=
  130. :endif_10
  131. REM PB+ setting ============ APC VIO components ===========================================
  132. if not "%APC_NOVIO%"=="1" set APC_MODULES=%APC_MODULES% XVIOAPI
  133. REM PB+ setting ============ APC AutoShell components ===========================================
  134. if "%APC_NOSHELL%"=="1" goto endif_11
  135. set APC_MODULES=%APC_MODULES% autoshell
  136. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% statreg
  137. :endif_11
  138. REM PB+ setting ============ APC AddrBook components ===========================================
  139. if not "%APC_NOADDRBOOK%"=="1" set APC_MODULES=%APC_MODULES% addrbook
  140. REM PB+ setting ============ APC Contact Database components ===========================================
  141. if not "%APC_NOCONTACTDB%"=="1" set APC_MODULES=%APC_MODULES% contactdb
  142. REM PB+ setting ============ APC AudioApp components ===========================================
  143. if not "%APC_NOAUDIOAPP%"=="1" set APC_MODULES=%APC_MODULES% audioapp
  144. REM PB+ setting ============ APC SampleMedia components ===========================================
  145. if "%APC_NOMEDIAAPP%"=="1" goto endif_12
  146. if "%APC_NODIRECTSHOW%"=="1" goto endif_12
  147. set APC_MODULES=%APC_MODULES% cfapp dvdapp cdapp
  148. :endif_12
  149. REM PB+ setting ============ APC Radio components ===========================================
  150. if not "%APC_NORADIOAPP%"=="1" set APC_MODULES=%APC_MODULES% radioapp
  151. REM PB+ setting ============ APC Setup components ===========================================
  152. if not "%APC_NOSETUP%"=="1" set APC_MODULES=%APC_MODULES% backup ctlpnl backrest clockcpl display password regset responses speechcmd system dialup backlib restore eventlog
  153. REM PB+ setting ============ APC Speech Engines components ===========================================
  154. if not "%APC_NOASR%"=="1" set APC_MODULES=%APC_MODULES% ASRLH simplespeech
  155. if not "%APC_NOTTS%"=="1" set APC_MODULES=%APC_MODULES% TTSLH simplespeech
  156. REM PB+ setting ============================ GENIE-TV ==========================================
  157. if "%APC_NOGENIE%"=="1" goto endif_13
  158. set GWE2_COMPONENTS=%GWE2_COMPONENTS% mgtci
  159. set APCIE_MODULES=mlang wininet urlmon mshtml shdocvw
  160. set APC_MODULES=%APC_MODULES% wininetui ieui ieceui
  161. if not "%APC_NOBROWSERAPP%"=="1" set APC_MODULES=%APC_MODULES% browserapp
  162. if not "%APC_NOMSXML%"=="1" set APCIE_MODULES=%APCIE_MODULES% msxml
  163. :endif_13
  164. REM Direct Draw components
  165. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% accel_c
  166. set GWE2_COMPONENTS=%GWE2_COMPONENTS% mgdx
  167. set DIRECTX_MODULES=directdraw ddhel ddi_igs5
  168. set APC_MODULES=%APC_MODULES% chariot
  169. REM PB+ setting ======== Direct Sound components ==========================================
  170. REM if "%APC_NODIRECTSOUND%"=="1" goto endif_14
  171. set DIRECTX_MODULES=%DIRECTX_MODULES% directsound
  172. REM :endif_14
  173. REM PB+ setting ============ Direct Show components ===========================================
  174. if "%APC_NODIRECTSHOW%"=="1" goto endif_15
  175. set QUARTZ1_COMPONENTS=asyncrdr waveout mpgadec
  176. REM this is setup for platforms that do not have an integrated renderer and WMA playback component
  177. if "%APC_USEDSHOWWAVEMSR%"=="1" set QUARTZ1_COMPONENTS=%QUARTZ1_COMPONENTS% wavemsr
  178. set QUARTZ2_COMPONENTS=mpgsplit
  179. set QUARTZ_COMPONENTS=quartz1 quartz2
  180. set DIRECTX_MODULES=%DIRECTX_MODULES% quartz mmtimer
  181. set APC_MODULES=%APC_MODULES% fgm dspdshow
  182. REM we don't have MIPS or ARM processor support for l3filter,dvdnav, wmadrm, or apcmsr
  183. if "%_TGTCPUTYPE%"=="x86" goto endif_16
  184. if "%_TGTCPUTYPE%"=="SHx" goto endif_16
  185. goto endif_15
  186. :endif_16
  187. REM l3filter is now in APC_MODULES instead of in DIRECTX_MODULES
  188. set APC_MODULES=%APC_MODULES% dvdnav wmadrm apcmsr l3filter
  189. :endif_15
  190. REM PB+ setting ============ SDKConnect components ===========================================
  191. if "%APC_SDKCONNECT%"=="1" set APC_MODULES=%APC_MODULES% SDKConnect
  192. REM ============ Power aware samples ===========================================
  193. set APC_MODULES=%APC_MODULES% pmtest pmdtest regpmd
  194. REM ============ SDK samples ===========================================
  195. if "%APC_NOSDKSAMPLES%"=="1" goto endif_18
  196. set APC_MODULES=%APC_MODULES% formrc keyboard multform multi_rc names
  197. set APC_MODULES=%APC_MODULES% hello inbox winkey formkey sysinfo srapp tts uidemo
  198. :endif_18
  199. REM // Replaceable GWE Components
  200. set REPLACE_MODULES=gwes
  201. set GWES_REPLACE_COMPONENTS=iconcmn
  202. rem Replace msgbox for FM builds, add to GWES in NOFM builds
  203. if not "%APC_NOFM%"=="1" set GWES_REPLACE_COMPONENTS=%GWES_REPLACE_COMPONENTS% msgbox
  204. if "%APC_NOFM%"=="1" set GWE4_COMPONENTS=%GWE4_COMPONENTS% msgbox
  205. set GWES_REPLACE=cursor
  206. set GWES_COMPONENTS=gwe1 gwe2 gwe3 gwe4
  207. REM ============ SAPI 5 ==========================
  208. if "%APC_NOSAPI5%"=="1" goto endif_19
  209. set SPEECH_MODULES=sapi spcommon
  210. :endif_19