include_directories(${REACTOS_SOURCE_DIR}/sdk/include/c++/stlport)
else()
replace_compile_flags("-nostdinc" " ")
+ add_definitions(-DPAL_STDCPP_COMPAT)
endif()
endif()
function(add_dependency_node _node)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_node} TYPE)
- if(_type MATCHES SHARED_LIBRARY OR ${_node} MATCHES ntoskrnl)
+ if(_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY OR ${_node} MATCHES ntoskrnl)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <node id=\"${_node}\"/>\n")
endif()
endif()
function(add_dependency_edge _source _target)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_source} TYPE)
- if(_type MATCHES SHARED_LIBRARY)
+ if(_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <edge source=\"${_source}\" target=\"${_target}\"/>\n")
endif()
endif()
set(${var} 61)
elseif(${dir} STREQUAL reactos/Resources/Themes/Modern)
set(${var} 62)
+ elseif(${dir} STREQUAL reactos/3rdParty)
+ set(${var} 63)
+ elseif(${dir} STREQUAL reactos/Resources/Themes/Lunar)
+ set(${var} 64)
+ elseif(${dir} STREQUAL reactos/Resources/Themes/Mizu)
+ set(${var} 65)
+ elseif(${dir} STREQUAL reactos/system32/spool/prtprocs/x64)
+ set(${var} 66)
else()
message(FATAL_ERROR "Wrong destination: ${dir}")
endif()
function(add_library name)
_add_library(${name} ${ARGN})
add_clean_target(${name})
+ # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
+ get_target_property(_type ${name} TYPE)
+ if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+ set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
+ endif()
endfunction()
function(add_executable name)
string(SUBSTRING ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR_LENGTH} -1 CMAKE_CURRENT_SOURCE_DIR_RELATIVE)
set_property(TARGET "${name}" PROPERTY FOLDER "${CMAKE_CURRENT_SOURCE_DIR_RELATIVE}")
endif()
+ # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
+ get_target_property(_type ${name} TYPE)
+ if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+ set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
+ endif()
endfunction()
function(add_executable name)
string(SUBSTRING ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR_LENGTH} -1 CMAKE_CURRENT_SOURCE_DIR_RELATIVE)
set_property(TARGET "${name}" PROPERTY FOLDER "${CMAKE_CURRENT_SOURCE_DIR_RELATIVE}")
endfunction()
+else()
+ function(add_library name)
+ _add_library(${name} ${ARGN})
+ # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
+ get_target_property(_type ${name} TYPE)
+ if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+ set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
+ endif()
+ endfunction()
endif()
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
# BootCD setup system hive
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/boot/bootdata/SETUPREG.HIV
- COMMAND native-mkhive -h:SETUPREG -u -d:${CMAKE_BINARY_DIR}/boot/bootdata ${CMAKE_BINARY_DIR}/boot/bootdata/hivesys_utf16.inf
+ COMMAND native-mkhive -h:SETUPREG -u -d:${CMAKE_BINARY_DIR}/boot/bootdata ${CMAKE_BINARY_DIR}/boot/bootdata/hivesys_utf16.inf ${CMAKE_SOURCE_DIR}/boot/bootdata/setupreg.inf
DEPENDS native-mkhive ${CMAKE_BINARY_DIR}/boot/bootdata/hivesys_utf16.inf)
add_custom_target(bootcd_hives
# LiveCD hives
list(APPEND _livecd_inf_files
${_registry_inf}
- ${CMAKE_SOURCE_DIR}/boot/bootdata/livecd.inf
- ${CMAKE_SOURCE_DIR}/boot/bootdata/hiveinst.inf)
+ ${CMAKE_SOURCE_DIR}/boot/bootdata/livecd.inf)
+ if(SARCH STREQUAL "xbox")
+ list(APPEND _livecd_inf_files
+ ${CMAKE_SOURCE_DIR}/boot/bootdata/hiveinst_xbox.inf)
+ else()
+ list(APPEND _livecd_inf_files
+ ${CMAKE_SOURCE_DIR}/boot/bootdata/hiveinst.inf)
+ endif()
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/boot/bootdata/system