2011-05-16 13:12:07 +00:00
|
|
|
|
2012-02-27 22:46:20 +00:00
|
|
|
add_definitions(${I18N_DEFS})
|
2014-10-17 23:28:29 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
include_directories(
|
2011-08-17 13:59:47 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
* The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
It also manages the partition filesystem recognition, using OS routines.
* The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.
svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
2017-05-17 23:37:41 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../lib
|
|
|
|
# ${REACTOS_SOURCE_DIR}/base/setup/lib
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/inflib
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-12 13:50:38 +00:00
|
|
|
list(APPEND SOURCE
|
2018-01-06 15:47:37 +00:00
|
|
|
spapisup/cabinet.c
|
|
|
|
spapisup/fileqsup.c
|
|
|
|
spapisup/infsupp.c
|
2011-05-16 13:12:07 +00:00
|
|
|
chkdsk.c
|
2014-12-20 21:58:22 +00:00
|
|
|
cmdcons.c
|
2018-05-15 21:35:17 +00:00
|
|
|
console.c
|
2018-05-15 17:47:52 +00:00
|
|
|
consup.c
|
|
|
|
devinst.c
|
2011-05-16 13:12:07 +00:00
|
|
|
format.c
|
|
|
|
fslist.c
|
|
|
|
genlist.c
|
2018-05-15 21:35:17 +00:00
|
|
|
keytrans.c
|
2011-05-16 13:12:07 +00:00
|
|
|
mui.c
|
|
|
|
partlist.c
|
|
|
|
progress.c
|
2018-05-15 17:47:52 +00:00
|
|
|
usetup.c
|
2014-02-12 13:50:38 +00:00
|
|
|
usetup.h)
|
|
|
|
|
2014-10-03 10:08:33 +00:00
|
|
|
add_executable(usetup ${SOURCE} usetup.rc)
|
2017-12-07 22:26:59 +00:00
|
|
|
|
2022-05-25 23:03:50 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(usetup PRIVATE "-Wno-invalid-source-encoding")
|
2017-12-07 22:26:59 +00:00
|
|
|
endif()
|
|
|
|
|
[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
* The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
It also manages the partition filesystem recognition, using OS routines.
* The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.
svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
2017-05-17 23:37:41 +00:00
|
|
|
add_pch(usetup usetup.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(usetup nativecui)
|
2020-04-26 15:01:08 +00:00
|
|
|
target_link_libraries(usetup inflib setuplib zlib_solo ext2lib vfatlib btrfslib chkstk)
|
2011-05-23 17:43:13 +00:00
|
|
|
add_importlibs(usetup ntdll)
|
2011-05-19 21:55:57 +00:00
|
|
|
add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)
|