mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 11:27:06 +00:00
[CMAKE]
- use the new options of set_module_type for a few modules svn path=/trunk/; revision=53557
This commit is contained in:
parent
f0ecdf3eb9
commit
c4bbdcbfdf
6 changed files with 8 additions and 12 deletions
|
@ -36,7 +36,7 @@ endif(ARCH MATCHES i386)
|
|||
|
||||
add_library(ntdll SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(ntdll 0)
|
||||
set_module_type(ntdll win32dll ENTRYPOINT 0)
|
||||
|
||||
if(MSVC)
|
||||
add_linkerflag(ntdll /RELEASE)
|
||||
|
@ -48,7 +48,6 @@ target_link_libraries(ntdll
|
|||
libcntpr
|
||||
${PSEH_LIB})
|
||||
|
||||
set_image_base(ntdll ${baseaddress_ntdll})
|
||||
add_pch(ntdll include/ntdll.h)
|
||||
add_dependencies(ntdll ntstatus asm)
|
||||
|
||||
|
|
|
@ -93,8 +93,7 @@ endif(ARCH MATCHES i386)
|
|||
|
||||
add_library(kernel32 SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(kernel32 DllMain 12)
|
||||
set_image_base(kernel32 ${baseaddress_kernel32})
|
||||
set_module_type(kernel32 win32dll ENTRYPOINT DllMain 12)
|
||||
|
||||
target_link_libraries(kernel32 wine chkstk ${PSEH_LIB})
|
||||
|
||||
|
|
|
@ -20,8 +20,7 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(msacm32 SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(msacm32 DllMain 12)
|
||||
set_image_base(msacm32 ${baseaddress_msacm32})
|
||||
set_module_type(msacm32 win32dll ENTRYPOINT DllMain 12)
|
||||
|
||||
target_link_libraries(msacm32 wine)
|
||||
add_importlibs(msacm32 msvcrt advapi32 user32 winmm kernel32 ntdll)
|
||||
|
|
|
@ -23,9 +23,9 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(msvcrt SHARED ${SOURCE})
|
||||
|
||||
set_module_type(msvcrt win32dll ENTRYPOINT DllMain 12)
|
||||
|
||||
add_dependencies(msvcrt psdk)
|
||||
set_entrypoint(msvcrt DllMain 12)
|
||||
set_image_base(msvcrt ${baseaddress_msvcrt})
|
||||
|
||||
target_link_libraries(msvcrt crt wine ${PSEH_LIB})
|
||||
|
||||
|
|
|
@ -20,10 +20,9 @@ list(APPEND SOURCE
|
|||
${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def)
|
||||
|
||||
add_library(msvcrt20 SHARED ${SOURCE})
|
||||
set_module_type(msvcrt20 win32dll ENTRYPOINT DllMain 12)
|
||||
|
||||
add_dependencies(msvcrt20 psdk)
|
||||
set_entrypoint(msvcrt20 DllMain 12)
|
||||
set_image_base(msvcrt20 ${baseaddress_msvcrt20})
|
||||
|
||||
target_link_libraries(msvcrt20 crt wine ${PSEH_LIB})
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(msvcrt40 SHARED ${SOURCE})
|
||||
|
||||
set_module_type(msvcrt40 win32dll ENTRYPOINT DllMain 12)
|
||||
|
||||
add_dependencies(msvcrt40 psdk)
|
||||
set_entrypoint(msvcrt40 DllMain 12)
|
||||
set_image_base(msvcrt40 ${baseaddress_msvcrt40})
|
||||
|
||||
target_link_libraries(msvcrt40 crt wine ${PSEH_LIB})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue