[BOOTDATA][CMAKE] Enumerate the four first installation directories in 'canonical... 558/head
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 7 Jan 2018 00:46:31 +0000 (01:46 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 8 Oct 2018 19:16:58 +0000 (21:16 +0200)
boot/bootdata/packages/reactos.dff.in
sdk/cmake/CMakeMacros.cmake

index cd3c0de..b056152 100644 (file)
@@ -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
index 8258247..d321415 100644 (file)
@@ -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)