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.

281 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
  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. REM // asyncmac is currently built as a local override for APC
  80. set CE_MODULES=%CE_MODULES% cxport winsock afd ppp tcpstk netui
  81. REM // IrdaStk now uses NDIS to talk to the driver - NOTE: NDIS IS NEW!
  82. set CE_MODULES=%CE_MODULES% irdastk ndis ne2000 dhcp
  83. REM // irdastk & ndis both uses ntcompat which uses corestra
  84. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% corestra
  85. REM // netui and commctrl uses coreimm
  86. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% coreimm
  87. REM PB+ setting ============== IRCOMM ==========================================
  88. if "%APC_NOIRCOMM%"=="1" goto endif_05
  89. set CE_MODULES=%CE_MODULES% ircomm
  90. :endif_05
  91. REM PB+ setting ============== COMMCTRL ==========================================
  92. if "%APC_NOCOMMCTRL%"=="1" goto endif_06
  93. set CE_MODULES=%CE_MODULES% commctrl
  94. set GWE1_COMPONENTS=%GWE1_COMPONENTS% drawmbar
  95. :endif_06
  96. REM PB+ setting ======== USB ==========================================
  97. if "%APC_NOUSB%"=="1" goto endif_07
  98. set CE_MODULES=%CE_MODULES% usbd
  99. set CE_MODULES=%CE_MODULES% usbhid
  100. set APC_MODULES=%APC_MODULES% usb2com
  101. :endif_07
  102. REM Jscript PB+ setting
  103. if "%APC_NOJSCRIPT%"=="1" goto endif_08
  104. set SCRIPT_MODULES=jscript
  105. :endif_08
  106. REM PB+ setting ============ SIP components ===========================================
  107. if "%APC_NOSIP%"=="1" goto endif_09
  108. set CE_MODULES=%CE_MODULES% softkb
  109. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% coresip
  110. set APC_MODULES=%APC_MODULES% sipkb
  111. :endif_09
  112. REM PB+ setting ============ APC basic components ===========================================
  113. set APC_MODULES=%APC_MODULES% batch apcpsl pandr pandrlib gdigui tuner msvolpwd apcfunc oemsoftkey
  114. set APC_MODULES=%APC_MODULES% cdcont irsir apcupd msgstore transman softkeyctl oemregion
  115. set APC_MODULES=%APC_MODULES% SMTPNOUI imgdecmp waveapi
  116. set APC_MODULES=%APC_MODULES% cursor iconcmn iomem apcdll objstore wavemdd2 osupdate cdfs
  117. set APC_MODULES=%APC_MODULES% oemvolpwd cddm pefile SAPI apcspeech
  118. REM PB+ setting ============ APC FormsManager components ===========================================
  119. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% chfc chfcguid uivga ui25664 irsquirt abapi apcload smtpui
  120. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% vsiteui baseapp apcupgrd upgdbkp3 msgbox autorun clock genapp
  121. if not "%APC_NOFM%"=="1" goto endif_10
  122. REM Turn off dependent components
  123. set APC_NOADDRBOOK=1
  124. set APC_NOAUDIOAPP=1
  125. set APC_NOMEDIAAPP=1
  126. set APC_NORADIOAPP=1
  127. set APC_NOSETUP=1
  128. set APC_NOBROWSERAPP=1
  129. set APC_NOSDKSAMPLES=1
  130. set APC_SDKCONNECT=
  131. :endif_10
  132. REM PB+ setting ============ APC VIO components ===========================================
  133. if not "%APC_NOVIO%"=="1" set APC_MODULES=%APC_MODULES% XVIOAPI
  134. REM PB+ setting ============ APC AutoShell components ===========================================
  135. if "%APC_NOSHELL%"=="1" goto endif_11
  136. set APC_MODULES=%APC_MODULES% autoshell
  137. if not "%APC_NOFM%"=="1" set APC_MODULES=%APC_MODULES% statreg
  138. :endif_11
  139. REM PB+ setting ============ APC AddrBook components ===========================================
  140. if not "%APC_NOADDRBOOK%"=="1" set APC_MODULES=%APC_MODULES% addrbook
  141. REM PB+ setting ============ APC Contact Database components ===========================================
  142. if not "%APC_NOCONTACTDB%"=="1" set APC_MODULES=%APC_MODULES% contactdb
  143. REM PB+ setting ============ APC AudioApp components ===========================================
  144. if not "%APC_NOAUDIOAPP%"=="1" set APC_MODULES=%APC_MODULES% audioapp
  145. REM PB+ setting ============ APC SampleMedia components ===========================================
  146. if "%APC_NOMEDIAAPP%"=="1" goto endif_12
  147. if "%APC_NODIRECTSHOW%"=="1" goto endif_12
  148. set APC_MODULES=%APC_MODULES% cfapp dvdapp cdapp
  149. :endif_12
  150. REM PB+ setting ============ APC Radio components ===========================================
  151. if not "%APC_NORADIOAPP%"=="1" set APC_MODULES=%APC_MODULES% radioapp
  152. REM PB+ setting ============ APC Setup components ===========================================
  153. if not "%APC_NOSETUP%"=="1" set APC_MODULES=%APC_MODULES% backup ctlpnl backrest clockcpl display password regset responses speechcmd system dialup backlib restore eventlog
  154. REM PB+ setting ============ APC Speech Engines components ===========================================
  155. if not "%APC_NOASR%"=="1" set APC_MODULES=%APC_MODULES% ASRLH simplespeech
  156. if not "%APC_NOTTS%"=="1" set APC_MODULES=%APC_MODULES% TTSLH simplespeech
  157. REM PB+ setting ============================ GENIE-TV ==========================================
  158. if "%APC_NOGENIE%"=="1" goto endif_13
  159. set GWE2_COMPONENTS=%GWE2_COMPONENTS% mgtci
  160. set APCIE_MODULES=mlang wininet urlmon mshtml shdocvw
  161. set APC_MODULES=%APC_MODULES% wininetui ieui ieceui
  162. if not "%APC_NOBROWSERAPP%"=="1" set APC_MODULES=%APC_MODULES% browserapp
  163. :endif_13
  164. REM XML doesn't need GenIE to work
  165. if not "%APC_NOMSXML%"=="1" set APCIE_MODULES=%APCIE_MODULES% msxml
  166. REM Direct Draw components
  167. set COREDLL_COMPONENTS=%COREDLL_COMPONENTS% accel_c
  168. set GWE2_COMPONENTS=%GWE2_COMPONENTS% mgdx
  169. set DIRECTX_MODULES=directdraw ddhel
  170. REM PB+ setting ======== Direct Sound components ==========================================
  171. REM if "%APC_NODIRECTSOUND%"=="1" goto endif_14
  172. set DIRECTX_MODULES=%DIRECTX_MODULES% directsound
  173. REM :endif_14
  174. REM PB+ setting ============ Direct Show components ===========================================
  175. if "%APC_NODIRECTSHOW%"=="1" goto endif_15
  176. set QUARTZ1_COMPONENTS=asyncrdr waveout mpgadec
  177. REM this is setup for platforms that do not have an integrated renderer and WMA playback component
  178. if "%APC_USEDSHOWWAVEMSR%"=="1" set QUARTZ1_COMPONENTS=%QUARTZ1_COMPONENTS% wavemsr
  179. set QUARTZ2_COMPONENTS=mpgsplit
  180. set QUARTZ_COMPONENTS=quartz1 quartz2
  181. set DIRECTX_MODULES=%DIRECTX_MODULES% quartz mmtimer ddi_igs5
  182. set APC_MODULES=%APC_MODULES% chariot fgm dspdshow
  183. REM we don't have MIPS or ARM processor support for l3filter,dvdnav, wmadrm, or apcmsr
  184. if "%_TGTCPUTYPE%"=="x86" goto endif_16
  185. if "%_TGTCPUTYPE%"=="SHx" goto endif_16
  186. goto endif_15
  187. :endif_16
  188. REM l3filter is now in APC_MODULES instead of in DIRECTX_MODULES
  189. set APC_MODULES=%APC_MODULES% dvdnav wmadrm apcmsr l3filter
  190. :endif_15
  191. REM PB+ setting ============ SDKConnect components ===========================================
  192. if "%APC_SDKCONNECT%"=="1" set APC_MODULES=%APC_MODULES% SDKConnect
  193. REM ============ Power aware samples ===========================================
  194. set APC_MODULES=%APC_MODULES% pmtest pmdtest regpmd
  195. REM ============ SDK samples ===========================================
  196. if "%APC_NOSDKSAMPLES%"=="1" goto endif_18
  197. set APC_MODULES=%APC_MODULES% formrc keyboard multform multi_rc names
  198. set APC_MODULES=%APC_MODULES% hello inbox winkey formkey sysinfo srapp tts uidemo
  199. :endif_18
  200. REM // Replaceable GWE Components
  201. set REPLACE_MODULES=gwes
  202. set GWES_REPLACE_COMPONENTS=iconcmn
  203. rem Replace msgbox for FM builds, add to GWES in NOFM builds
  204. if not "%APC_NOFM%"=="1" set GWES_REPLACE_COMPONENTS=%GWES_REPLACE_COMPONENTS% msgbox
  205. if "%APC_NOFM%"=="1" set GWE4_COMPONENTS=%GWE4_COMPONENTS% msgbox
  206. set GWES_REPLACE=cursor
  207. set GWES_COMPONENTS=gwe1 gwe2 gwe3 gwe4
  208. REM ============ locally built tapi components ==========================
  209. set APC_MODULES=%APC_MODULES% asyncmac unimodem
  210. REM ============ SAPI 5 ==========================
  211. if "%APC_NOSAPI5%"=="1" goto endif_19
  212. set SPEECH_MODULES=sapi spcommon
  213. :endif_19