[SHIMLIB] Add debug print functionality for shims. CORE-11329
[reactos.git] / reactos / toolchain-msvc.cmake
1
2 if(NOT ARCH)
3 set(ARCH i386)
4 endif()
5
6 # Default to Debug for the build type
7 if(NOT DEFINED CMAKE_BUILD_TYPE)
8 set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
9 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
10 endif()
11
12 # the name of the target operating system
13 set(CMAKE_SYSTEM_NAME Windows)
14 set(CMAKE_SYSTEM_PROCESSOR i686)
15
16 # which compilers to use for C and C++
17 set(CMAKE_C_COMPILER cl)
18
19 if(ARCH STREQUAL "arm")
20 include(CMakeForceCompiler)
21 CMAKE_FORCE_CXX_COMPILER(cl MSVC)
22 else()
23 set(CMAKE_CXX_COMPILER cl)
24 endif()
25
26 set(CMAKE_MC_COMPILER mc)
27 set(CMAKE_RC_COMPILER rc)
28 if(ARCH STREQUAL "amd64")
29 set(CMAKE_ASM_COMPILER ml64)
30 elseif(ARCH STREQUAL "arm")
31 set(CMAKE_ASM_COMPILER armasm)
32 else()
33 set(CMAKE_ASM_COMPILER ml)
34 endif()
35 set(CMAKE_ASM_COMPILER_ID "VISUAL")
36
37 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
38
39 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
40 add_definitions(-D__i386__)
41 endif()