[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 25 Sep 2010 14:39:51 +0000 (14:39 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 25 Sep 2010 14:39:51 +0000 (14:39 +0000)
- Improve acpi, isapnp, pci, pcix and pcmcia (import libs, dependencies...etc)

svn path=/branches/cmake-bringup/; revision=48873

drivers/bus/acpi/CMakeLists.txt
drivers/bus/isapnp/CMakeLists.txt
drivers/bus/pci/CMakeLists.txt
drivers/bus/pcix/CMakeLists.txt
drivers/bus/pcmcia/CMakeLists.txt

index 9a1f2a9..afc117b 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(include)
 include_directories(acpica/include)
 
@@ -143,8 +141,7 @@ set_target_properties(acpi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,
 
 target_link_libraries(acpi
     wdmguid
-    acpica
-    -lntoskrnl
-    -lhal)
+    acpica)
 
+add_importlibs(acpi ntoskrnl hal)
 add_dependencies(acpi psdk bugcodes)
index a9e4e08..b563165 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(isapnp SHARED
     isapnp.c
     pdo.c
@@ -10,8 +8,5 @@ add_library(isapnp SHARED
 
 set_target_properties(isapnp PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
 
-target_link_libraries(isapnp
-    -lntoskrnl
-    -lhal)
-
-add_dependencies(isapnp psdk bugcodes)
+add_importlibs(isapnp ntoskrnl hal)
+add_dependencies(isapnp psdk bugcodes buildno_header)
index 2d45bc3..c9b0444 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(pci SHARED
     fdo.c
     pci.c
@@ -9,8 +7,5 @@ add_library(pci SHARED
 
 set_target_properties(pci PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
-target_link_libraries(pci
-    -lntoskrnl
-    -lhal)
-
+add_importlibs(pci ntoskrnl hal)
 add_dependencies(pci psdk bugcodes buildno_header)
index 8dc67bc..6553b6d 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 list(APPEND SOURCE
     arb/ar_busno.c
     arb/ar_memio.c
@@ -42,9 +40,7 @@ add_library(pcix SHARED ${CMAKE_CURRENT_BINARY_DIR}/pcix_pci.h.gch ${SOURCE})
 
 set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
-target_link_libraries(pcix
-    -lntoskrnl
-    -lhal)
+add_importlibs(pcix ntoskrnl hal)
 
 add_pch(pcix ${CMAKE_CURRENT_SOURCE_DIR}/pci.h ${SOURCE})
-add_dependencies(pcix pcix_def psdk pciclass)
+add_dependencies(pcix pcix_def psdk pciclass buildno_header)
index be0b8ce..b3c52c0 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(pcmcia SHARED
     fdo.c
     pcmcia.c
@@ -9,8 +7,5 @@ add_library(pcmcia SHARED
 
 set_target_properties(pcmcia PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
-target_link_libraries(pcmcia
-    -lntoskrnl
-    -lhal)
-
+add_importlibs(pcmcia ntoskrnl hal)
 add_dependencies(pcmcia psdk bugcodes buildno_header)