[CMAKE]: Start supporting building the CRT.
authorSir Richard <sir_richard@svn.reactos.org>
Sun, 25 Jul 2010 19:18:15 +0000 (19:18 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Sun, 25 Jul 2010 19:18:15 +0000 (19:18 +0000)
svn path=/branches/cmake-bringup/; revision=48258

CMakeLists.txt
lib/sdk/crt/CMakeLists.txt [new file with mode: 0644]

index 33e2208..0e946d3 100644 (file)
@@ -1,31 +1,45 @@
 cmake_minimum_required(VERSION 2.8)
 project(REACTOS)
 
-include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
-
-include_directories(./include)
-
-include_directories(./include/reactos)
-include_directories(./include/reactos/wine)
-
-add_definitions(-DTARGET_i386)
 add_definitions(-D__REACTOS__)
 
 #-fshort-wchar
 
 if(NOT CMAKE_CROSSCOMPILING)
 
+add_definitions(-DTARGET_i386)
+
+include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
+include_directories(./include)
+include_directories(./include/reactos/wine)
+
 add_subdirectory(tools)
+add_subdirectory(include/psdk)
 
 else()
 
+add_definitions(-DDBG=1)
+add_definitions(-D_SEH_ENABLE_TRACE)
+add_definitions(-DKDBG=1)
+add_definitions(-DWINVER=0x502)
+add_definitions(-D_WIN32_IE=0x600)
+add_definitions(-D_WIN32_WINNT=0x502)
+add_definitions(-D_WIN32_WINDOWS=0x502)
+add_definitions(-D_SETUPAPI_VER=0x502)
+add_definitions(-D_M_IX86)
+add_definitions(-D_X86_)
+add_definitions(-D__i386__)
+add_definitions(-DUSE_COMPILER_EXCEPTIONS)
+add_definitions(-D_USE_32BIT_TIME_T)
+
 include_directories(./include)
-include_directories(./include/crt/mingw32)
-include_directories(./include/crt)
-include_directories(./include/reactos/libs)
-include_directories(./include/ndk)
 include_directories(./include/psdk)
+include_directories(./include/crt)
+include_directories(./include/crt/mingw32)
 include_directories(./include/ddk)
+include_directories(./include/ndk)
+include_directories(./include/reactos)
+include_directories(./include/reactos/libs)
 
 add_subdirectory(lib)
 
diff --git a/lib/sdk/crt/CMakeLists.txt b/lib/sdk/crt/CMakeLists.txt
new file mode 100644 (file)
index 0000000..be426bc
--- /dev/null
@@ -0,0 +1,15 @@
+
+include_directories(.)
+include_directories(./include)
+
+add_definitions(-D__MINGW_IMPORT=extern)
+add_definitions(-DUSE_MSVCRT_PREFIX)
+add_definitions(-D_MSVCRT_LIB_)
+add_definitions(-D_MSVCRT_)
+add_definitions(-D_MT)
+add_definitions(-D_CRTBLD)
+
+
+file(GLOB_RECURSE SOURCE "*.c")
+
+add_library(crt ${SOURCE})