mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[ASM]
add genincdata, a module that will be compiled as a dll to provide the data for geninc to be converted into an .inc file. svn path=/branches/cmake-bringup/; revision=49561
This commit is contained in:
parent
2e9717b577
commit
f2ab1b31c4
3 changed files with 1616 additions and 2 deletions
|
@ -41,9 +41,9 @@ add_subdirectory(tools)
|
|||
add_subdirectory(lib)
|
||||
|
||||
if(NOT MSVC)
|
||||
export(TARGETS widl winebuild nci buildno gendib cabman cdmake mkhive spec2pdef FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
export(TARGETS widl winebuild nci buildno gendib cabman cdmake mkhive spec2pdef geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
else()
|
||||
export(TARGETS winebuild nci buildno gendib cabman cdmake mkhive spec2pdef FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
export(TARGETS winebuild nci buildno gendib cabman cdmake mkhive spec2pdef geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
@ -118,6 +118,7 @@ add_subdirectory(include/dxsdk)
|
|||
add_subdirectory(include/reactos/idl)
|
||||
add_subdirectory(include/reactos/wine)
|
||||
add_subdirectory(include/reactos/mc)
|
||||
add_subdirectory(include/asm)
|
||||
|
||||
include(baseaddress.cmake)
|
||||
|
||||
|
|
28
include/asm/CMakeLists.txt
Normal file
28
include/asm/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
add_library(genincdata SHARED genincdata.c)
|
||||
|
||||
set_entrypoint(genincdata DummyEntry)
|
||||
|
||||
if(MSVC)
|
||||
set(OPT_MS "-ms")
|
||||
else()
|
||||
set(OPT_MS "")
|
||||
endif()
|
||||
|
||||
if(ARCH MATCHES i386)
|
||||
set(_filename ks386)
|
||||
endif()
|
||||
if(ARCH MATCHES amd64)
|
||||
set(_filename ksamd64)
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
|
||||
COMMAND native-geninc ${CMAKE_CURRENT_BINARY_DIR}/genincdata.dll ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc ${OPT_MS}
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/genincdata.dll
|
||||
)
|
||||
|
||||
add_custom_target(
|
||||
${_filename}
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
|
||||
)
|
1585
include/asm/genincdata.c
Normal file
1585
include/asm/genincdata.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue