mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[BOOTDATA][CMAKE] Enumerate the four first installation directories in 'canonical' order, to keep compatibility with Windows' txtsetup.sif/layout.inf.
This commit is contained in:
parent
8468ad5cf4
commit
287d35b84d
2 changed files with 13 additions and 8 deletions
|
@ -17,10 +17,10 @@ Signature = "$ReactOS$"
|
|||
; For specifying absolute directories, use the SystemPartitionFiles section,
|
||||
; or use names starting with \.
|
||||
[Directories]
|
||||
1 = system32
|
||||
2 = system32\drivers
|
||||
3 = Fonts
|
||||
4 = "\"
|
||||
1 = "\"
|
||||
2 = system32
|
||||
3 = system32\drivers
|
||||
4 = Fonts
|
||||
5 = system32\drivers\etc
|
||||
6 = inf
|
||||
7 = bin
|
||||
|
|
|
@ -162,14 +162,19 @@ function(add_link)
|
|||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_LINK_NAME}.lnk PROPERTIES GENERATED TRUE)
|
||||
endfunction()
|
||||
|
||||
#
|
||||
# WARNING!
|
||||
# Please keep the numbering in this list in sync with
|
||||
# boot/bootdata/packages/reactos.dff.in
|
||||
#
|
||||
macro(dir_to_num dir var)
|
||||
if(${dir} STREQUAL reactos/system32)
|
||||
if(${dir} STREQUAL reactos)
|
||||
set(${var} 1)
|
||||
elseif(${dir} STREQUAL reactos/system32/drivers)
|
||||
elseif(${dir} STREQUAL reactos/system32)
|
||||
set(${var} 2)
|
||||
elseif(${dir} STREQUAL reactos/Fonts)
|
||||
elseif(${dir} STREQUAL reactos/system32/drivers)
|
||||
set(${var} 3)
|
||||
elseif(${dir} STREQUAL reactos)
|
||||
elseif(${dir} STREQUAL reactos/Fonts)
|
||||
set(${var} 4)
|
||||
elseif(${dir} STREQUAL reactos/system32/drivers/etc)
|
||||
set(${var} 5)
|
||||
|
|
Loading…
Reference in a new issue