[USB-BRINGUP-TRUNK]
[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(GDB FALSE CACHE BOOL
25 "Whether to compile for debugging with GDB.
26 If you don't use GDB, don't enable this.")
27
28 if(${CMAKE_BUILD_TYPE} MATCHES Release)
29 set(DBG FALSE CACHE BOOL
30 "Whether to compile for debugging.")
31 else()
32 set(DBG TRUE CACHE BOOL
33 "Whether to compile for debugging.")
34 endif()
35
36 if(MSVC)
37 set(KDBG FALSE CACHE BOOL
38 "Whether to compile in the integrated kernel debugger.")
39 if(${CMAKE_BUILD_TYPE} MATCHES Release)
40 set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
41 else()
42 set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.")
43 endif()
44
45 else()
46 set(KDBG TRUE CACHE BOOL
47 "Whether to compile in the integrated kernel debugger.")
48 set(_WINKD_ FALSE CACHE BOOL
49 "Whether to compile with the KD protocol.")
50 endif()
51
52 set(_ELF_ FALSE CACHE BOOL
53 "Whether to compile support for ELF files.
54 Do not enable unless you know what you're doing.")
55
56 set(NSWPAT FALSE CACHE BOOL
57 "Whether to compile apps/libs with features covered software patents or not.
58 If you live in a country where software patents are valid/apply, don't
59 enable this (except they/you purchased a license from the patent owner).
60 This settings is disabled (0) by default.")
61
62 set(BUILD_MP TRUE CACHE BOOL
63 "Whether to compile the multi processor versions for ntoskrnl and hal.")
64
65 set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
66 "Whether to create a graphml dependency of dlls.")
67
68 if(MSVC)
69 set(_PREFAST_ FALSE CACHE BOOL
70 "Whether to enable PREFAST while compiling.")
71 endif()