mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
27 lines
658 B
CMake
27 lines
658 B
CMake
|
|
add_library(genincdata MODULE genincdata.c)
|
|
|
|
set_entrypoint(genincdata 0)
|
|
add_dependencies(genincdata bugcodes psdk xdk)
|
|
|
|
if(MSVC)
|
|
set(OPT_MS "-ms")
|
|
else()
|
|
set(OPT_MS "")
|
|
endif()
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
set(_filename ks386.inc)
|
|
elseif(ARCH STREQUAL "amd64")
|
|
set(_filename ksamd64.inc)
|
|
elseif(ARCH STREQUAL "arm")
|
|
set(_filename ksarm.h)
|
|
endif()
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_filename}
|
|
COMMAND native-geninc $<TARGET_FILE:genincdata> ${CMAKE_CURRENT_BINARY_DIR}/${_filename} ${OPT_MS}
|
|
DEPENDS genincdata native-geninc)
|
|
|
|
add_custom_target(asm
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename})
|