Author: sir_richard
Date: Sun Jul 25 19:18:15 2010
New Revision: 48258
URL:
http://svn.reactos.org/svn/reactos?rev=48258&view=rev
Log:
[CMAKE]: Start supporting building the CRT.
Added:
branches/cmake-bringup/lib/sdk/crt/CMakeLists.txt (with props)
Modified:
branches/cmake-bringup/CMakeLists.txt
Modified: branches/cmake-bringup/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeLists.txt?re…
==============================================================================
--- branches/cmake-bringup/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/CMakeLists.txt [iso-8859-1] Sun Jul 25 19:18:15 2010
@@ -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/psdk)
+include_directories(./include/crt)
include_directories(./include/crt/mingw32)
-include_directories(./include/crt)
+include_directories(./include/ddk)
+include_directories(./include/ndk)
+include_directories(./include/reactos)
include_directories(./include/reactos/libs)
-include_directories(./include/ndk)
-include_directories(./include/psdk)
-include_directories(./include/ddk)
add_subdirectory(lib)
Added: branches/cmake-bringup/lib/sdk/crt/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/CMake…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/CMakeLists.txt (added)
+++ branches/cmake-bringup/lib/sdk/crt/CMakeLists.txt [iso-8859-1] Sun Jul 25 19:18:15
2010
@@ -1,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})
Propchange: branches/cmake-bringup/lib/sdk/crt/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native