Sync with trunk revision r58045 to bring the corrections on configure.cmd and on...
[reactos.git] / cmake / config.cmake
1
2 set(SARCH "pc" CACHE STRING
3 "Sub-architecture to build for. Specify one of: xbox")
4
5 set(OARCH "pentium" CACHE STRING
6 "Generate instructions for this CPU type. Specify one of:
7 native, i386, i486, pentium, pentium-mmx, pentiumpro, i686,
8 pentium2, pentium3, pentium-m, pentium4, prescott, nocona,
9 core2, k6, k6-2, athlon, athlon-xp, opteron, opteron-sse3,
10 barcelona, winchip-c6, winchip2, c3, c3-2, geode")
11
12 set(TUNE "i686" CACHE STRING
13 "Which CPU ReactOS should be optimized for.")
14
15 set(OPTIMIZE "1" CACHE STRING
16 "What level of optimisation to use.
17 0 = off
18 1 = Default option, optimize for size (-Os) with some additional options
19 2 = -Os
20 3 = -O1
21 4 = -O2
22 5 = -O3")
23
24 set(LTCG FALSE CACHE BOOL
25 "Whether to build with link-time code generation")
26
27 set(GDB FALSE CACHE BOOL
28 "Whether to compile for debugging with GDB.
29 If you don't use GDB, don't enable this.")
30
31 if(CMAKE_BUILD_TYPE STREQUAL "Release")
32 set(DBG FALSE CACHE BOOL
33 "Whether to compile for debugging.")
34 else()
35 set(DBG TRUE CACHE BOOL
36 "Whether to compile for debugging.")
37 endif()
38
39 if(MSVC)
40 set(KDBG FALSE CACHE BOOL
41 "Whether to compile in the integrated kernel debugger.")
42 if(CMAKE_BUILD_TYPE STREQUAL "Release")
43 set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
44 else()
45 set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.")
46 endif()
47
48 else()
49 set(KDBG TRUE CACHE BOOL
50 "Whether to compile in the integrated kernel debugger.")
51 set(_WINKD_ FALSE CACHE BOOL
52 "Whether to compile with the KD protocol.")
53 endif()
54
55 set(_ELF_ FALSE CACHE BOOL
56 "Whether to compile support for ELF files.
57 Do not enable unless you know what you're doing.")
58
59 set(NSWPAT FALSE CACHE BOOL
60 "Whether to compile apps/libs with features covered software patents or not.
61 If you live in a country where software patents are valid/apply, don't
62 enable this (except they/you purchased a license from the patent owner).
63 This settings is disabled (0) by default.")
64
65 set(BUILD_MP TRUE CACHE BOOL
66 "Whether to compile the multi processor versions for ntoskrnl and hal.")
67
68 set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
69 "Whether to create a graphml dependency of dlls.")
70
71 if(MSVC)
72
73 set(_PREFAST_ FALSE CACHE BOOL
74 "Whether to enable PREFAST while compiling.")
75 set(_VS_ANALYZE_ FALSE CACHE BOOL
76 "Whether to enable static analysis while compiling.")
77
78 else()
79
80 set(USE_PSEH3 FALSE CACHE BOOL
81 "Whether to use the new PSEH3 library (requires GCC 4.5 and newer).")
82
83 endif()