- use the new options of set_module_type for a few modules

svn path=/trunk/; revision=53557
This commit is contained in:
Jérôme Gardou 2011-09-03 18:26:19 +00:00
parent f0ecdf3eb9
commit c4bbdcbfdf
6 changed files with 8 additions and 12 deletions

View file

@ -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)

View file

@ -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})

View file

@ -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)

View file

@ -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})

View file

@ -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})

View file

@ -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})