mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[CMAKE] Fix host tools build on x86-64 mingw
Dynamically check for sys/types.h and pid_t in wine config.h Use TARGET_xxx defines instead of _X86_ as this is undefined by GCC Add some sense in include directories management by using interface libraries
This commit is contained in:
parent
15748cf03a
commit
493ceb7ade
19 changed files with 64 additions and 30 deletions
|
@ -1,9 +1,9 @@
|
|||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/tools)
|
||||
add_library(rsym_common rsym_common.c)
|
||||
add_library(rsym_common STATIC rsym_common.c)
|
||||
target_link_libraries(rsym_common PRIVATE host_includes)
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
add_definitions(-D_X86_)
|
||||
add_host_tool(rsym rsym.c)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
add_host_tool(rsym rsym64.c)
|
||||
|
@ -11,5 +11,6 @@ elseif(ARCH STREQUAL "arm")
|
|||
add_executable(rsym rsym64.c)
|
||||
endif()
|
||||
|
||||
target_link_libraries(rsym rsym_common dbghelphost zlibhost unicode)
|
||||
add_host_tool(raddr2line rsym_common.c raddr2line.c)
|
||||
target_link_libraries(rsym PRIVATE host_includes rsym_common dbghelphost zlibhost unicode)
|
||||
add_host_tool(raddr2line raddr2line.c)
|
||||
target_link_libraries(raddr2line PRIVATE host_includes rsym_common)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue