Stubs: Fix some win32 modules.
svn path=/branches/cmake-bringup/; revision=49876
-
-ADD_INTERFACE_DEFINITIONS(atl_atliface_header atliface.idl)
-
add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+ADD_INTERFACE_DEFINITIONS(atl_atliface_header atliface.idl)
+
+set_rc_compiler()
spec2def(atl.dll atl.spec)
-add_library(atl SHARED
+list(APPEND SOURCE
atl_ax.c
atl_main.c
registrar.c
rsrc.rc
${CMAKE_CURRENT_BINARY_DIR}/atl.def)
+add_library(atl SHARED ${SOURCE})
+
set_module_type(atl win32dll)
target_link_libraries(atl
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+set_rc_compiler()
spec2def(dbghelp.dll dbghelp.spec)
-add_library(dbghelp SHARED
+list(APPEND SOURCE
coff.c
cpu_i386.c
cpu_ppc.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
+add_library(dbghelp SHARED ${SOURCE})
+
set_module_type(dbghelp win32dll)
target_link_libraries(dbghelp
spec2def(mssign32.dll mssign32.spec)
-add_library(mssign32 SHARED mssign32_main.c ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def)
+list(APPEND SOURCE
+ mssign32_main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def)
+
+add_library(mssign32 SHARED ${SOURCE})
set_module_type(mssign32 win32dll)
spec2def(mssip32.dll mssip32.spec)
-add_library(mssip32 SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def)
+list(APPEND SOURCE
+ main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def)
+
+add_library(mssip32 SHARED ${SOURCE})
set_module_type(mssip32 win32dll)
add_definitions(-D__WINESRC__)
add_definitions(-D_WINE)
+set_rc_compiler()
spec2def(msvfw32.dll msvfw32.spec)
-add_library(msvfw32 SHARED
+list(APPEND SOURCE
mciwnd.c
msvideo_main.c
drawdib.c
rsrc.rc
${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def)
+add_library(msvfw32 SHARED ${SOURCE})
+
set_module_type(msvfw32 win32dll)
target_link_libraries(msvfw32 wine)
spec2def(netapi32.dll netapi32.spec)
-add_library(netapi32 SHARED
+list(APPEND SOURCE
access.c
apibuf.c
browsr.c
wksta.c
${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
+add_library(netapi32 SHARED ${SOURCE})
+
set_module_type(netapi32 win32dll)
target_link_libraries(netapi32 wine)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+set_rc_compiler()
spec2def(netcfgx.dll netcfgx.spec)
-add_library(netcfgx SHARED
+list(APPEND SOURCE
netcfgx.c
classfactory.c
netcfg_iface.c
netcfgx.rc
${CMAKE_CURRENT_BINARY_DIR}/netcfgx.def)
+add_library(netcfgx SHARED ${SOURCE})
+
set_module_type(netcfgx win32dll)
target_link_libraries(netcfgx
-
add_definitions(-D_NETSHELL_)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+set_rc_compiler()
spec2def(netshell.dll netshell.spec)
list(APPEND SOURCE
setupapi
ws2_32
comctl32
- kernel32)
+ kernel32
+ ntdll)
add_pch(netshell ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
spec2def(newdev.dll newdev.spec)
-add_library(newdev SHARED
+list(APPEND SOURCE
newdev.c
stubs.c
wizard.c
newdev.rc
${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
+add_library(newdev SHARED ${SOURCE})
+
set_module_type(newdev win32dll)
target_link_libraries(newdev wine)
spec2def(ntlanman.dll ntlanman.spec)
-add_library(ntlanman SHARED ntlanman.c ntlanman.rc ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
+list(APPEND SOURCE
+ ntlanman.c
+ ntlanman.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
+
+add_library(ntlanman SHARED ${SOURCE})
set_module_type(ntlanman win32dll)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(ntprint.dll ntprint.spec)
-add_library(ntprint SHARED ntprint.c ntprint.rc ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def)
+list(APPEND SOURCE
+ ntprint.c
+ ntprint.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def)
+
+add_library(ntprint SHARED ${SOURCE})
set_module_type(ntprint win32dll)
spec2def(odbc32.dll odbc32.spec)
-add_library(odbc32 SHARED proxyodbc.c ${CMAKE_CURRENT_BINARY_DIR}/odbc32.def)
+list(APPEND SOURCE
+ proxyodbc.c
+ ${CMAKE_CURRENT_BINARY_DIR}/odbc32.def)
+
+add_library(odbc32 SHARED ${SOURCE})
set_module_type(odbc32 win32dll)
spec2def(olesvr32.dll olesvr32.spec)
-add_library(olesvr32 SHARED olesvr_main.c
+list(APPEND SOURCE
+ olesvr_main.c
${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def)
+add_library(olesvr32 SHARED ${SOURCE})
+
set_entrypoint(olesvr32 0)
target_link_libraries(olesvr32
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(olethk32.dll olethk32.spec)
-add_library(olethk32 SHARED main.c version.rc ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def)
+list(APPEND SOURCE
+ main.c
+ version.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def)
+
+add_library(olethk32 SHARED ${SOURCE})
set_module_type(olethk32 win32dll)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(pidgen.dll pidgen.spec)
-add_library(pidgen SHARED main.c rsrc.rc ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def)
+list(APPEND SOURCE
+ main.c
+ rsrc.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def)
+
+add_library(pidgen SHARED ${SOURCE})
set_module_type(pidgen win32dll)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(printui.dll printui.spec)
-add_library(printui SHARED printui.c printui.rc
+list(APPEND SOURCE
+ printui.c
+ printui.rc
${CMAKE_CURRENT_BINARY_DIR}/printui.def)
+add_library(printui SHARED ${SOURCE})
set_entrypoint(printui 0)
target_link_libraries(printui wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(pstorec.dll pstorec.spec)
-add_library(pstorec SHARED pstorec.c rsrc.rc ${CMAKE_CURRENT_BINARY_DIR}/pstorec.def)
+list(APPEND SOURCE
+ pstorec.c
+ rsrc.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/pstorec.def)
+
+add_library(pstorec SHARED ${SOURCE})
set_module_type(pstorec win32dll)
spec2def(rasadhlp.dll rasadhlp.spec)
-add_library(rasadhlp SHARED
+list(APPEND SOURCE
autodial.c
init.c
winsock.c
${CMAKE_CURRENT_BINARY_DIR}/rasadhlp.def)
+add_library(rasadhlp SHARED ${SOURCE})
+
set_module_type(rasadhlp win32dll)
add_importlibs(rasadhlp ws2_32 msvcrt kernel32 ntdll)
spec2def(rasdlg.dll rasdlg.spec)
-add_library(rasdlg SHARED rasdlg.c rasdlg.rc ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def)
+list(APPEND SOURCE
+ rasdlg.c
+ rasdlg.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def)
+
+add_library(rasdlg SHARED ${SOURCE})
set_module_type(rasdlg win32dll)
-
+set_rc_compiler()
spec2def(rasman.dll rasman.spec)
-add_library(rasman SHARED rasman.c rasman.rc ${CMAKE_CURRENT_BINARY_DIR}/rasman.def)
+list(APPEND SOURCE
+ rasman.c
+ rasman.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/rasman.def)
+
+add_library(rasman SHARED ${SOURCE})
set_module_type(rasman win32dll)
spec2def(resutils.dll resutils.spec)
-add_library(resutils SHARED resutils.c ${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
+list(APPEND SOURCE
+ resutils.c
+ ${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
+
+add_library(resutils SHARED ${SOURCE})
set_module_type(resutils win32dll)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(samlib.dll samlib.spec)
-add_library(samlib SHARED dllmain.c samlib.c samlib.rc ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
+list(APPEND SOURCE
+ dllmain.c
+ samlib.c
+ samlib.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
+
+add_library(samlib SHARED ${SOURCE})
set_module_type(samlib win32dll)
spec2def(sccbase.dll sccbase.spec)
-add_library(sccbase SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def)
+list(APPEND SOURCE
+ main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def)
+
+add_library(sccbase SHARED ${SOURCE})
set_module_type(sccbase win32dll)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(schannel.dll schannel.spec)
-add_library(schannel SHARED
+list(APPEND SOURCE
lsamode.c
schannel_main.c
usermode.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/schannel.def)
+add_library(schannel SHARED ${SOURCE})
+
set_module_type(schannel win32dll)
target_link_libraries(schannel wine)
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_BINARY_DIR}/include/reactos/idl)
+set_rc_compiler()
spec2def(setupapi.dll setupapi.spec)
-add_library(setupapi SHARED
+list(APPEND SOURCE
cfgmgr.c
devclass.c
devinst.c
setupapi.rc
${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
+add_library(setupapi SHARED ${SOURCE})
+
set_module_type(setupapi win32dll)
target_link_libraries(setupapi
set_module_type(sfc win32dll)
-add_importlibs(sfc msvcrt kernel32)
+add_importlibs(sfc msvcrt kernel32 ntdll)
add_pch(sfc ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
add_cab_target(sfc 1)
spec2def(shimgvw.dll shimgvw.spec)
-add_library(shimgvw SHARED shimgvw.c shimgvw.rc ${CMAKE_CURRENT_BINARY_DIR}/shimgvw.def)
+list(APPEND SOURCE
+ shimgvw.c
+ shimgvw.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/shimgvw.def)
+
+add_library(shimgvw SHARED ${SOURCE})
set_module_type(shimgvw win32dll)
kernel32
ntdll)
-
add_cab_target(shimgvw 1)
spec2def(slbcsp.dll slbcsp.spec)
-add_library(slbcsp SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/slbcsp.def)
+list(APPEND SOURCE
+ main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/slbcsp.def)
+
+add_library(slbcsp SHARED ${SOURCE})
set_module_type(slbcsp win32dll)
spec2def(url.dll url.spec)
-add_library(url SHARED
+list(APPEND SOURCE
url_main.c
${CMAKE_CURRENT_BINARY_DIR}/url.def)
+add_library(url SHARED ${SOURCE})
+
set_module_type(url win32dll)
target_link_libraries(url wine)
spec2def(usp10.dll usp10.spec)
-add_library(usp10 SHARED
+list(APPEND SOURCE
bidi.c
usp10.c
mirror.c
shaping.c
${CMAKE_CURRENT_BINARY_DIR}/usp10.def)
+add_library(usp10 SHARED ${SOURCE})
+
set_module_type(usp10 win32dll)
target_link_libraries(usp10 wine)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
+set_rc_compiler()
spec2def(uxtheme.dll uxtheme.spec)
-add_library(uxtheme SHARED
+list(APPEND SOURCE
buffer.c
draw.c
main.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/uxtheme.def)
+add_library(uxtheme SHARED ${SOURCE})
+
set_module_type(uxtheme win32dll)
target_link_libraries(uxtheme wine)
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
+set_rc_compiler()
+
spec2def(windowscodecs.dll windowscodecs.spec)
-add_library(windowscodecs SHARED
+list(APPEND SOURCE
bmpdecode.c
bmpencode.c
clsfactory.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
+add_library(windowscodecs SHARED ${SOURCE})
+
set_module_type(windowscodecs win32dll)
target_link_libraries(windowscodecs wine)
set_rc_compiler()
-add_library(wininet SHARED
+list(APPEND SOURCE
cookie.c
dialogs.c
ftp.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
+add_library(wininet SHARED ${SOURCE})
+
set_module_type(wininet win32dll)
target_link_libraries(wininet
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_library(winspool SHARED
+set_rc_compiler()
+
+list(APPEND SOURCE
info.c
stubs.c
- winspool_winspool.stubs.c
winspool.rc
${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
+add_library(winspool SHARED ${SOURCE})
+
set_target_properties(winspool PROPERTIES SUFFIX ".drv")
set_module_type(winspool win32dll)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+set_rc_compiler()
spec2def(wintrust.dll wintrust.spec)
-add_library(wintrust SHARED
+list(APPEND SOURCE
crypt.c
register.c
wintrust_main.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/wintrust.def)
+add_library(wintrust SHARED ${SOURCE})
+
set_module_type(wintrust win32dll)
target_link_libraries(wintrust
spec2def(wlanapi.dll wlanapi.spec)
-add_library(wlanapi SHARED main.c
+list(APPEND SOURCE
+ main.c
${CMAKE_CURRENT_BINARY_DIR}/wlanapi.def)
+add_library(wlanapi SHARED ${SOURCE})
+
set_entrypoint(wlanapi 0)
target_link_libraries(wlanapi
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+set_rc_compiler()
spec2def(wldap32.dll wldap32.spec)
-add_library(wldap32 SHARED
+list(APPEND SOURCE
add.c
ber.c
bind.c
wldap32.rc
${CMAKE_CURRENT_BINARY_DIR}/wldap32.def)
+add_library(wldap32 SHARED ${SOURCE})
+
set_module_type(wldap32 win32dll)
target_link_libraries(wldap32 wine)
spec2def(wtsapi32.dll wtsapi32.spec)
-add_library(wtsapi32 SHARED wtsapi32.c ${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def)
+list(APPEND SOURCE
+ wtsapi32.c
+ ${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def)
+
+add_library(wtsapi32 SHARED ${SOURCE})
set_module_type(wtsapi32 win32dll)
spec2def(xmllite.dll xmllite.spec)
-add_library(xmllite SHARED reader.c xmllite_main.c ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
+list(APPEND SOURCE
+ reader.c
+ xmllite_main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
+
+add_library(xmllite SHARED ${SOURCE})
set_module_type(xmllite win32dll)
add_importlibs(xmllite msvcrt kernel32 ntdll)
-
add_cab_target(xmllite 1)