[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 21:02:18 +0000 (21:02 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 21:02:18 +0000 (21:02 +0000)
- Improve bootvid, crt and ntoskrnl.

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

drivers/base/bootvid/CMakeLists.txt
lib/sdk/crt/CMakeLists.txt
ntoskrnl/CMakeLists.txt

index b5c085e..ca68554 100644 (file)
@@ -3,14 +3,18 @@ set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FL
 
 spec2def(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/bootvid.spec ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
 
-list(APPEND SOURCE
-    ${ARCH}/bootvid.c
-    ${ARCH}/bootdata.c
-    bootvid.rc)
+list(APPEND SOURCE bootvid.rc)
 
-if(ARCH MATCHES i386)
-list(APPEND SOURCE i386/vga.c)
-endif(ARCH MATCHES i386)
+if(ARCH MATCHES i386 OR ARCH MATCHES amd64)
+list(APPEND SOURCE
+    i386/bootvid.c
+    i386/bootdata.c
+    i386/vga.c)
+elseif(ARCH MATCHES arm)
+list(APPEND SOURCE
+    arm/bootvid.c
+    arm/bootdata.c)
+endif(ARCH MATCHES i386 OR ARCH MATCHES amd64)
 
 add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
 
index 90fefab..1a9093c 100644 (file)
@@ -40,11 +40,6 @@ list(APPEND CRT_SOURCE
     float/isnan.c
     float/nafter.c
     float/scalb.c
-    float/${ARCH}/clearfp.c
-    float/${ARCH}/cntrlfp.c
-    float/${ARCH}/fpreset.c
-    float/${ARCH}/logb.c
-    float/${ARCH}/statfp.c
     locale/locale.c
     math/acos.c
     math/adjust.c
@@ -287,9 +282,23 @@ list(APPEND CRT_SOURCE
     wine/undname.c)
 
 if(ARCH MATCHES i386)
-list(APPEND CRT_SOURCE except/i386/prolog.s except/i386/unwind.c)
+list(APPEND CRT_SOURCE
+    except/i386/chkstk_asm.s
+    except/i386/prolog.s
+    except/i386/unwind.c
+    float/i386/clearfp.c
+    float/i386/cntrlfp.c
+    float/i386/fpreset.c
+    float/i386/logb.c
+    float/i386/statfp.c)
 elseif(ARCH MATCHES amd64)
-list(APPEND CRT_SOURCE chkstk_asm.s)
+list(APPEND CRT_SOURCE
+    except/amd64/chkstk_asm.s
+    float/i386/clearfp.c
+    float/i386/cntrlfp.c
+    float/i386/fpreset.c
+    float/i386/logb.c
+    float/i386/statfp.c)
 endif(ARCH MATCHES i386)
 
 if(ARCH MATCHES i386)
index ceb7534..bcbd74b 100644 (file)
@@ -23,7 +23,6 @@ list(APPEND SOURCE
     cc/mdl.c
     cc/pin.c
     cc/view.c
-    config/${ARCH}/cmhardwr.c
     config/cmalloc.c
     config/cmapi.c
     config/cmboot.c
@@ -251,6 +250,7 @@ list(APPEND SOURCE
 
 if(ARCH MATCHES i386)
 list(APPEND SOURCE
+    config/i386/cmhardwr.c
     ex/i386/interlck_asm.S
     ex/i386/fastinterlck_asm.S
     ex/i386/ioport.S
@@ -280,6 +280,7 @@ list(APPEND SOURCE
     vdm/vdmexec.c)
 elseif(ARCH MATCHES amd64)
 list(APPEND SOURCE
+    config/i386/cmhardwr.c
     ex/amd64/fastinterlck.c
     ke/amd64/boot.S
     ke/amd64/context.c
@@ -298,6 +299,7 @@ list(APPEND SOURCE
     ps/amd64/psctx.c)
 elseif(ARCH MATCHES arm)
 list(APPEND SOURCE
+    config/arm/cmhardwr.c
     ke/arm/boot.s
     ke/arm/cpu.c
     ke/arm/ctxswtch.s
@@ -314,6 +316,7 @@ list(APPEND SOURCE
     rtl/arm/rtlexcpt.c)
 elseif(ARCH MATCHES powerpc)
 list(APPEND SOURCE
+    config/powerpc/cmhardwr.c
     ke/powerpc/main_asm.S
     ke/powerpc/cpu.c
     ke/powerpc/exp.c