[ros-diffs] [spetreolle] 49263: [CMAKE] Use msvc friendly macro. Add network drivers to livecd.

spetreolle at svn.reactos.org spetreolle at svn.reactos.org
Sun Oct 24 21:19:01 UTC 2010


Author: spetreolle
Date: Sun Oct 24 21:19:00 2010
New Revision: 49263

URL: http://svn.reactos.org/svn/reactos?rev=49263&view=rev
Log:
[CMAKE]
Use msvc friendly macro.
Add network drivers to livecd.

Modified:
    branches/cmake-bringup/drivers/network/afd/CMakeLists.txt
    branches/cmake-bringup/drivers/network/dd/ne2000/CMakeLists.txt
    branches/cmake-bringup/drivers/network/dd/pcnet/CMakeLists.txt
    branches/cmake-bringup/drivers/network/tcpip/CMakeLists.txt
    branches/cmake-bringup/drivers/network/tdi/CMakeLists.txt

Modified: branches/cmake-bringup/drivers/network/afd/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/network/afd/CMakeLists.txt?rev=49263&r1=49262&r2=49263&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/network/afd/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/network/afd/CMakeLists.txt [iso-8859-1] Sun Oct 24 21:19:00 2010
@@ -19,7 +19,7 @@
 
 add_library(afd SHARED ${CMAKE_CURRENT_BINARY_DIR}/afd_afd.h.gch ${SOURCE})
 
-set_target_properties(afd PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry at 8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(afd kernelmodedriver)
 
 target_link_libraries(afd
     pseh
@@ -28,4 +28,5 @@
 
 add_pch(afd ${CMAKE_CURRENT_SOURCE_DIR}/include/afd.h ${SOURCE})
 add_dependencies(afd psdk bugcodes buildno_header)
+
 add_livecd_target(afd reactos/system32/drivers)

Modified: branches/cmake-bringup/drivers/network/dd/ne2000/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/network/dd/ne2000/CMakeLists.txt?rev=49263&r1=49262&r2=49263&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/network/dd/ne2000/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/network/dd/ne2000/CMakeLists.txt [iso-8859-1] Sun Oct 24 21:19:00 2010
@@ -8,7 +8,7 @@
 
 add_library(ne2000 SHARED ${SOURCE})
 
-set_target_properties(ne2000 PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry at 8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(ne2000 kernelmodedriver)
 
 target_link_libraries(ne2000
     -lndis
@@ -16,3 +16,5 @@
     -lhal)
 
 add_dependencies(ne2000 psdk bugcodes buildno_header)
+
+add_livecd_target(ne2000 reactos/system32/drivers)

Modified: branches/cmake-bringup/drivers/network/dd/pcnet/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/network/dd/pcnet/CMakeLists.txt?rev=49263&r1=49262&r2=49263&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/network/dd/pcnet/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/network/dd/pcnet/CMakeLists.txt [iso-8859-1] Sun Oct 24 21:19:00 2010
@@ -11,7 +11,7 @@
 
 add_library(pcnet SHARED ${SOURCE})
 
-set_target_properties(pcnet PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry at 8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(pcnet kernelmodedriver)
 
 target_link_libraries(pcnet
     -lndis
@@ -19,3 +19,5 @@
     -lhal)
 
 add_dependencies(pcnet psdk bugcodes buildno_header)
+
+add_livecd_target(pcnet reactos/system32/drivers)

Modified: branches/cmake-bringup/drivers/network/tcpip/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/network/tcpip/CMakeLists.txt?rev=49263&r1=49262&r2=49263&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/network/tcpip/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/network/tcpip/CMakeLists.txt [iso-8859-1] Sun Oct 24 21:19:00 2010
@@ -25,7 +25,7 @@
 
 add_library(tcpip SHARED ${CMAKE_CURRENT_BINARY_DIR}/tcpip_precomp.h.gch ${SOURCE})
 
-set_target_properties(tcpip PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry at 8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(tcpip kernelmodedriver)
 
 target_link_libraries(tcpip
     ${CMAKE_CURRENT_BINARY_DIR}/tcpip.def
@@ -39,3 +39,5 @@
 
 add_pch(tcpip ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
 add_dependencies(tcpip tcpip_def psdk bugcodes buildno_header)
+
+add_livecd_target(tcpip reactos/system32/drivers)

Modified: branches/cmake-bringup/drivers/network/tdi/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/network/tdi/CMakeLists.txt?rev=49263&r1=49262&r2=49263&view=diff
==============================================================================
--- branches/cmake-bringup/drivers/network/tdi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/network/tdi/CMakeLists.txt [iso-8859-1] Sun Oct 24 21:19:00 2010
@@ -19,7 +19,7 @@
 
 add_library(tdi SHARED ${SOURCE})
 
-set_target_properties(tdi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry at 8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(tdi kernelmodedriver)
 
 target_link_libraries(tdi
     ${CMAKE_CURRENT_BINARY_DIR}/tdi.def
@@ -27,3 +27,5 @@
     -lhal)
 
 add_dependencies(tdi tdi_def psdk bugcodes buildno_header)
+
+add_livecd_target(tdi reactos/system32/drivers)




More information about the Ros-diffs mailing list