2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(SARCH "pc" CACHE STRING
|
2013-01-22 22:38:40 +00:00
|
|
|
"Sub-architecture to build for. Specify one of:
|
|
|
|
pc xbox")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(OARCH "pentium" CACHE STRING
|
|
|
|
"Generate instructions for this CPU type. Specify one of:
|
2013-01-22 22:38:40 +00:00
|
|
|
pentium, pentiumpro")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(TUNE "i686" CACHE STRING
|
|
|
|
"Which CPU ReactOS should be optimized for.")
|
|
|
|
|
|
|
|
set(OPTIMIZE "1" CACHE STRING
|
2013-01-22 22:38:40 +00:00
|
|
|
"What level of optimization to use.
|
|
|
|
0 = off
|
|
|
|
1 = Default option, optimize for size (-Os) with some additional options
|
|
|
|
2 = Optimize for size (-Os)
|
|
|
|
3 = Optimize debugging experience (-Og)
|
|
|
|
4 = Optimize (-O1)
|
|
|
|
5 = Optimize even more (-O2)
|
|
|
|
6 = Optimize yet more (-O3)
|
|
|
|
7 = Disregard strict standards compliance (-Ofast)")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-10 23:38:37 +00:00
|
|
|
set(LTCG FALSE CACHE BOOL
|
|
|
|
"Whether to build with link-time code generation")
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set(GDB FALSE CACHE BOOL
|
|
|
|
"Whether to compile for debugging with GDB.
|
|
|
|
If you don't use GDB, don't enable this.")
|
|
|
|
|
2012-08-27 18:58:27 +00:00
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
2012-01-14 17:31:20 +00:00
|
|
|
set(DBG FALSE CACHE BOOL
|
2011-06-24 21:28:43 +00:00
|
|
|
"Whether to compile for debugging.")
|
2012-01-14 17:31:20 +00:00
|
|
|
else()
|
|
|
|
set(DBG TRUE CACHE BOOL
|
|
|
|
"Whether to compile for debugging.")
|
|
|
|
endif()
|
2011-06-24 21:28:43 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(KDBG FALSE CACHE BOOL
|
|
|
|
"Whether to compile in the integrated kernel debugger.")
|
2012-08-27 18:58:27 +00:00
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
2012-01-14 17:31:20 +00:00
|
|
|
set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
|
|
|
|
else()
|
|
|
|
set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.")
|
|
|
|
endif()
|
2012-09-09 21:12:00 +00:00
|
|
|
|
2011-06-24 21:28:43 +00:00
|
|
|
else()
|
2013-03-16 23:28:27 +00:00
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
|
|
set(KDBG FALSE CACHE BOOL "Whether to compile in the integrated kernel debugger.")
|
|
|
|
else()
|
|
|
|
set(KDBG TRUE CACHE BOOL "Whether to compile in the integrated kernel debugger.")
|
|
|
|
endif()
|
|
|
|
set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
|
2011-06-24 21:28:43 +00:00
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(_ELF_ FALSE CACHE BOOL
|
|
|
|
"Whether to compile support for ELF files.
|
|
|
|
Do not enable unless you know what you're doing.")
|
|
|
|
|
|
|
|
set(NSWPAT FALSE CACHE BOOL
|
|
|
|
"Whether to compile apps/libs with features covered software patents or not.
|
|
|
|
If you live in a country where software patents are valid/apply, don't
|
|
|
|
enable this (except they/you purchased a license from the patent owner).
|
|
|
|
This settings is disabled (0) by default.")
|
|
|
|
|
|
|
|
set(BUILD_MP TRUE CACHE BOOL
|
|
|
|
"Whether to compile the multi processor versions for ntoskrnl and hal.")
|
|
|
|
|
|
|
|
set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
|
|
|
|
"Whether to create a graphml dependency of dlls.")
|
2012-01-05 17:19:15 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
2012-05-10 10:39:16 +00:00
|
|
|
|
2012-01-05 17:19:15 +00:00
|
|
|
set(_PREFAST_ FALSE CACHE BOOL
|
|
|
|
"Whether to enable PREFAST while compiling.")
|
2012-05-10 10:39:16 +00:00
|
|
|
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
|
|
|
"Whether to enable static analysis while compiling.")
|
|
|
|
|
2012-09-09 21:12:00 +00:00
|
|
|
else()
|
|
|
|
|
|
|
|
set(USE_PSEH3 FALSE CACHE BOOL
|
|
|
|
"Whether to use the new PSEH3 library (requires GCC 4.5 and newer).")
|
|
|
|
|
2012-01-05 17:19:15 +00:00
|
|
|
endif()
|