* unify spec2def and add_importlib_target
* use module name instead of spec file name for deciding importlib target name

svn path=/trunk/; revision=56081
This commit is contained in:
Jérôme Gardou 2012-03-07 21:21:27 +00:00
parent 92de8cffa3
commit 4bdb6a42f2
134 changed files with 327 additions and 325 deletions

View file

@ -1,7 +1,7 @@
add_definitions(-D_NOTIFYHOOK_IMPL)
spec2def(notifyhook.dll notifyhook.spec)
spec2def(notifyhook.dll notifyhook.spec ADD_IMPORTLIB)
list(APPEND SOURCE
notifyhook.c
@ -13,5 +13,5 @@ add_library(notifyhook SHARED ${SOURCE})
set_module_type(notifyhook win32dll)
add_importlibs(notifyhook user32 msvcrt kernel32)
add_importlib_target(notifyhook.spec notifyhook.dll)
add_cd_file(TARGET notifyhook DESTINATION reactos/system32 FOR all)

View file

@ -32,7 +32,6 @@ else()
add_compile_flags("-gstabs+")
endif()
# Do not allow warnings
add_compile_flags("-Werror")
@ -227,46 +226,46 @@ endif()
# Cute little hack to produce import libs
set(CMAKE_IMPLIB_CREATE_STATIC_LIBRARY "${CMAKE_DLLTOOL} --def <OBJECTS> --kill-at --output-lib=<TARGET>")
set(CMAKE_IMPLIB_DELAYED_CREATE_STATIC_LIBRARY "${CMAKE_DLLTOOL} --def <OBJECTS> --kill-at --output-delaylib=<TARGET>")
function(add_importlib_target _exports_file _implib_name)
get_filename_component(_name ${_exports_file} NAME_WE)
get_filename_component(_extension ${_exports_file} EXT)
if(${_extension} STREQUAL ".spec")
# generate .def
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def
COMMAND native-spec2def -n=${_implib_name} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def PROPERTIES EXTERNAL_OBJECT TRUE)
#create normal importlib
add_library(lib${_name} STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def)
set_target_properties(lib${_name} PROPERTIES LINKER_LANGUAGE "IMPLIB" PREFIX "")
#create delayed importlib
add_library(lib${_name}_delayed STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/${_name}_implib.def)
set_target_properties(lib${_name}_delayed PROPERTIES LINKER_LANGUAGE "IMPLIB_DELAYED" PREFIX "")
else()
message(FATAL_ERROR "Unsupported exports file extension: ${_extension}")
endif()
endfunction()
function(spec2def _dllname _spec_file)
# do we also want to add impotlib targets?
if(${ARGC} GREATER 2)
set(_file ${ARGV2})
else()
get_filename_component(_file ${_spec_file} NAME_WE)
if(${ARGN} STREQUAL "ADD_IMPORTLIB")
set(__add_importlib TRUE)
else()
message(FATAL_ERROR "Wrong argument passed to spec2def, ${ARGN}")
endif()
endif()
# get library basename
get_filename_component(_file ${_dllname} NAME_WE)
# error out on anything else than spec
if(NOT ${_spec_file} MATCHES ".*\\.spec")
message(FATAL_ERROR "spec2def only takes spec files as input.")
endif()
# generate exports def and stubs C file for the module
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
COMMAND native-spec2def -n=${_dllname} --kill-at -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE)
if(__add_importlib)
# generate the def for the export lib
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def
COMMAND native-spec2def -n=${_dllname} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def PROPERTIES EXTERNAL_OBJECT TRUE)
#create normal importlib
_add_library(lib${_file} STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def)
set_target_properties(lib${_file} PROPERTIES LINKER_LANGUAGE "IMPLIB" PREFIX "")
#create delayed importlib
_add_library(lib${_file}_delayed STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def)
set_target_properties(lib${_file}_delayed PROPERTIES LINKER_LANGUAGE "IMPLIB_DELAYED" PREFIX "")
endif()
endfunction()
macro(macro_mc FLAG FILE)

View file

@ -40,13 +40,6 @@ if(${_MACHINE_ARCH_FLAG} MATCHES X86)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB /RELEASE")
endif()
if(${ARCH} MATCHES amd64)
add_definitions(/D__x86_64)
set(SPEC2DEF_ARCH x86_64)
else()
set(SPEC2DEF_ARCH i386)
endif()
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <DEFINES> ${I18N_DEFS} /I${REACTOS_SOURCE_DIR}/include/psdk /I${REACTOS_BINARY_DIR}/include/psdk /I${REACTOS_SOURCE_DIR}/include /I${REACTOS_SOURCE_DIR}/include/reactos /I${REACTOS_BINARY_DIR}/include/reactos /I${REACTOS_SOURCE_DIR}/include/reactos/wine /I${REACTOS_SOURCE_DIR}/include/crt /I${REACTOS_SOURCE_DIR}/include/crt/mingw32 /fo <OBJECT> <SOURCE>")
if(MSVC_IDE)
@ -135,34 +128,6 @@ endfunction()
#define those for having real libraries
set(CMAKE_IMPLIB_CREATE_STATIC_LIBRARY "LINK /LIB /NOLOGO <LINK_FLAGS> /OUT:<TARGET> <OBJECTS>")
set(CMAKE_STUB_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> /Cp /Fo<OBJECT> /c /Ta <SOURCE>")
# Thanks MS for creating a stupid linker
function(add_importlib_target _exports_file _implib_name)
get_filename_component(_name ${_exports_file} NAME_WE)
# Generate the asm stub file and the export def file
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm ${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_exp.def
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} --implib -n=${_implib_name} -d=${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_exp.def -l=${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_exports_file} native-spec2def)
# be clear about the language
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm PROPERTIES LANGUAGE "STUB_ASM")
# add our library
# NOTE: as stub file and def file are generated in one pass, depending on one is like depending on the other
add_library(lib${_name} STATIC EXCLUDE_FROM_ALL
${CMAKE_CURRENT_BINARY_DIR}/lib${_name}_stubs.asm)
# Add necessary importlibs for redirections. Still necessary ?
if(ARGN)
target_link_libraries(lib${_name} ${ARGN})
endif()
# set correct link rule
set_target_properties(lib${_name} PROPERTIES LINKER_LANGUAGE "IMPLIB"
STATIC_LIBRARY_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}\\lib${_name}_exp.def")
endfunction()
macro(add_delay_importlibs MODULE)
foreach(LIB ${ARGN})
add_target_link_flags(${MODULE} "/DELAYLOAD:${LIB}.dll")
@ -171,18 +136,55 @@ macro(add_delay_importlibs MODULE)
target_link_libraries(${MODULE} delayimp)
endmacro()
if(${ARCH} MATCHES amd64)
add_definitions(/D__x86_64)
set(SPEC2DEF_ARCH x86_64)
else()
set(SPEC2DEF_ARCH i386)
endif()
function(spec2def _dllname _spec_file)
# do we also want to add impotlib targets?
if(${ARGC} GREATER 2)
set(_file ${ARGV2})
else()
get_filename_component(_file ${_spec_file} NAME_WE)
if(${ARGN} STREQUAL "ADD_IMPORTLIB")
set(__add_importlib TRUE)
else()
message(FATAL_ERROR "Wrong argument passed to spec2def, ${ARGN}")
endif()
endif()
# get library basename
get_filename_component(_file ${_dllname} NAME_WE)
# error out on anything else than spec
if(NOT ${_spec_file} MATCHES ".*\\.spec")
message(FATAL_ERROR "spec2def only takes spec files as input.")
endif()
#generate def for the DLL and C stubs file
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
PROPERTIES GENERATED TRUE)
if(__add_importlib)
# Generate the asm stub file and the export def file for import library
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_stubs.asm ${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_exp.def
COMMAND native-spec2def --ms --kill-at -a=${SPEC2DEF_ARCH} --implib -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_exp.def -l=${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_stubs.asm ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
# be clear about the "language"
# Thanks MS for creating a stupid linker
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_stubs.asm PROPERTIES LANGUAGE "STUB_ASM")
# add our library
# NOTE: as stub file and def file are generated in one pass, depending on one is like depending on the other
_add_library(lib${_file} STATIC EXCLUDE_FROM_ALL
${CMAKE_CURRENT_BINARY_DIR}/lib${_file}_stubs.asm)
# set correct "link rule"
set_target_properties(lib${_file} PROPERTIES LINKER_LANGUAGE "IMPLIB"
STATIC_LIBRARY_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}\\lib${_file}_exp.def")
endif()
endfunction()
macro(macro_mc FLAG FILE)

View file

@ -2,7 +2,10 @@
spec2def(odbccp32i.cpl odbccp32.spec)
add_library(odbccp32i SHARED odbccp32.c odbccp32.rc ${CMAKE_CURRENT_BINARY_DIR}/odbccp32.def)
add_library(odbccp32i SHARED
odbccp32.c
odbccp32.rc
${CMAKE_CURRENT_BINARY_DIR}/odbccp32i.def)
set_module_type(odbccp32i cpl UNICODE)

View file

@ -5,7 +5,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(dinput.dll dinput.spec)
spec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
add_library(dinput SHARED
data_formats.c
@ -37,4 +37,4 @@ add_importlibs(dinput
ntdll)
add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)
add_importlib_target(dinput.spec dinput.dll)

View file

@ -5,7 +5,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(dinput8.dll dinput8.spec)
spec2def(dinput8.dll dinput8.spec ADD_IMPORTLIB)
add_library(dinput8 SHARED
dinput8_main.c
@ -32,4 +32,4 @@ add_importlibs(dinput8
add_dependencies(dinput8 psdk)
add_cd_file(TARGET dinput8 DESTINATION reactos/system32 FOR all)
add_importlib_target(dinput8.spec dinput8.dll)

View file

@ -27,4 +27,4 @@ add_importlibs(dplay
add_dependencies(dplay psdk)
add_cd_file(TARGET dplay DESTINATION reactos/system32 FOR all)
add_importlib_target(dplay.spec dplay.dll libdplayx)

View file

@ -1,7 +1,7 @@
set_rc_compiler()
spec2def(dplayx.dll dplayx.spec)
spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dpclassfactory.c
@ -37,4 +37,4 @@ add_importlibs(dplayx
ntdll)
add_cd_file(TARGET dplayx DESTINATION reactos/system32 FOR all)
add_importlib_target(dplayx.spec dplayx.dll)

View file

@ -5,7 +5,7 @@ add_definitions(
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(dsound.dll dsound.spec)
spec2def(dsound.dll dsound.spec ADD_IMPORTLIB)
add_library(dsound SHARED
buffer.c
@ -39,4 +39,4 @@ add_importlibs(dsound
ntdll)
add_cd_file(TARGET dsound DESTINATION reactos/system32 FOR all)
add_importlib_target(dsound.spec dsound.dll)

View file

@ -1,5 +1,5 @@
spec2def(ksuser.dll ksuser.spec)
spec2def(ksuser.dll ksuser.spec ADD_IMPORTLIB)
add_library(ksuser SHARED ksuser.c ksuser.rc ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def)
@ -8,4 +8,4 @@ set_module_type(ksuser win32dll)
add_importlibs(ksuser advapi32 msvcrt kernel32 ntdll)
add_dependencies(ksuser psdk bugcodes)
add_cd_file(TARGET ksuser DESTINATION reactos/system32 FOR all)
add_importlib_target(ksuser.spec ksuser.dll)

View file

@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(d3d9.dll d3d9.spec)
spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB)
list(APPEND SOURCE
buffer.c
@ -47,4 +47,4 @@ add_importlibs(d3d9
add_dependencies(d3d9 wineheaders)
add_pch(d3d9 d3d9_private.h)
add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
add_importlib_target(d3d9.spec d3d9.dll)

View file

@ -1,6 +1,6 @@
set_rc_compiler()
spec2def(d3dx9_24.dll d3dx9_24.spec)
spec2def(d3dx9_24.dll d3dx9_24.spec ADD_IMPORTLIB)
list(APPEND SOURCE
d3dx9_24_main.c
@ -30,4 +30,4 @@ add_importlibs(d3dx9_24
add_dependencies(d3dx9_24 wineheaders)
add_cd_file(TARGET d3dx9_24 DESTINATION reactos/system32 FOR all)
add_importlib_target(d3dx9_24.spec d3dx9_24.dll libd3dx9_36)

View file

@ -31,4 +31,4 @@ add_importlibs(d3dx9_25
add_dependencies(d3dx9_25 wineheaders)
add_cd_file(TARGET d3dx9_25 DESTINATION reactos/system32 FOR all)
add_importlib_target(d3dx9_25.spec d3dx9_25.dll libd3dx9_24 libd3dx9_36)

View file

@ -1,6 +1,6 @@
set_rc_compiler()
spec2def(d3dx9_36.dll d3dx9_36.spec)
spec2def(d3dx9_36.dll d3dx9_36.spec ADD_IMPORTLIB)
list(APPEND SOURCE
core.c
@ -36,4 +36,3 @@ add_importlibs(d3dx9_36
add_dependencies(d3dx9_36 wineheaders)
add_cd_file(TARGET d3dx9_36 DESTINATION reactos/system32 FOR all)
add_importlib_target(d3dx9_36.spec d3dx9_36.dll)

View file

@ -11,7 +11,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(ddraw.dll ddraw.spec)
spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
list(APPEND SOURCE
clipper.c
@ -53,4 +53,4 @@ add_importlibs(ddraw
add_dependencies(ddraw wineheaders)
add_pch(ddraw ddraw_private.h)
add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
add_importlib_target(ddraw.spec ddraw.dll)

View file

@ -13,7 +13,7 @@ if(MSVC)
add_definitions(-Disinf=!_finite)
endif()
spec2def(wined3d.dll wined3d.spec)
spec2def(wined3d.dll wined3d.spec ADD_IMPORTLIB)
list(APPEND SOURCE
ati_fragment_shader.c
@ -68,7 +68,7 @@ add_importlibs(wined3d
add_dependencies(wined3d wineheaders)
add_pch(wined3d wined3d_private.h)
add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
add_importlib_target(wined3d.spec wined3d.dll)
if(NOT MSVC)
allow_warnings(wined3d)

View file

@ -1,5 +1,5 @@
spec2def(ntdll.dll def/ntdll.spec)
spec2def(ntdll.dll def/ntdll.spec ADD_IMPORTLIB)
add_definitions(
-D__NTDLL__
@ -52,4 +52,4 @@ add_pch(ntdll include/ntdll.h)
add_dependencies(ntdll ntstatus asm)
add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
add_importlib_target(def/ntdll.spec ntdll.dll)

View file

@ -14,4 +14,4 @@ set_module_type(acledit win32dll UNICODE)
add_importlibs(acledit msvcrt kernel32 ntdll)
add_pch(acledit acleditint.h)
add_cd_file(TARGET acledit DESTINATION reactos/system32 FOR all)
add_importlib_target(acledit.spec acledit.dll)

View file

@ -16,7 +16,7 @@ list(APPEND SOURCE
add_library(aclui SHARED ${SOURCE})
allow_warnings(aclui)
set_module_type(aclui win32dll UNICODE)
add_importlib_target(aclui.spec aclui.dll)
add_importlibs(aclui user32 gdi32 comctl32 ole32 oleaut32 advapi32 uxtheme msvcrt kernel32 ntdll)
add_pch(aclui precomp.h)
add_cd_file(TARGET aclui DESTINATION reactos/system32 FOR all)

View file

@ -1,5 +1,5 @@
spec2def(advapi32.dll advapi32.spec)
spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
add_definitions(-D_ADVAPI32_)
@ -65,4 +65,4 @@ add_pch(advapi32 advapi32.h
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.h)
add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
add_importlib_target(advapi32.spec advapi32.dll)

View file

@ -10,7 +10,7 @@ add_idl_headers(atl_atliface_header atliface.idl)
generate_idl_iids(atliface.idl)
set_rc_compiler()
spec2def(atl.dll atl.spec)
spec2def(atl.dll atl.spec ADD_IMPORTLIB)
list(APPEND SOURCE
atl_ax.c
@ -37,7 +37,7 @@ add_importlibs(atl
kernel32
ntdll)
add_importlib_target(atl.spec atl.dll)
add_dependencies(atl atl_atliface_header)
add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)

View file

@ -1,5 +1,5 @@
spec2def(avicap32.dll avicap32.spec)
spec2def(avicap32.dll avicap32.spec ADD_IMPORTLIB)
add_library(avicap32 SHARED
@ -14,4 +14,4 @@ target_link_libraries(avicap32 wine)
add_importlibs(avicap32 advapi32 user32 version msvcrt kernel32 ntdll)
add_cd_file(TARGET avicap32 DESTINATION reactos/system32 FOR all)
add_importlib_target(avicap32.spec avicap32.dll)

View file

@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(avifil32.dll avifil32.spec)
spec2def(avifil32.dll avifil32.spec ADD_IMPORTLIB)
add_library(avifil32 SHARED
acmstream.c
@ -40,5 +40,5 @@ add_importlibs(avifil32
kernel32
ntdll)
add_importlib_target(avifil32.spec avifil32.dll)
add_cd_file(TARGET avifil32 DESTINATION reactos/system32 FOR all)

View file

@ -10,7 +10,7 @@ add_library(batt SHARED
set_module_type(batt win32dll UNICODE)
add_importlib_target(batt.spec batt.dll)
add_importlibs(batt msvcrt kernel32 ntdll)

View file

@ -10,7 +10,7 @@ add_library(beepmidi SHARED ${SOURCE})
set_module_type(beepmidi win32dll ENTRYPOINT 0 UNICODE)
add_importlibs(beepmidi winmm kernel32 ntdll msvcrt)
add_importlib_target(beepmidi.spec beepmidi.dll)
add_dependencies(beepmidi psdk)
add_cd_file(TARGET beepmidi DESTINATION reactos/system32 FOR all)

View file

@ -7,7 +7,7 @@ include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
spec2def(cabinet.dll cabinet.spec)
spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB)
list(APPEND SOURCE
cabinet_main.c
@ -22,7 +22,7 @@ add_library(cabinet SHARED ${SOURCE})
set_module_type(cabinet win32dll ENTRYPOINT 0)
target_link_libraries(cabinet wine zlib)
add_importlibs(cabinet msvcrt kernel32 ntdll)
add_importlib_target(cabinet.spec cabinet.dll)
add_pch(cabinet cabinet.h)
add_dependencies(cabinet psdk)
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)

View file

@ -16,5 +16,5 @@ add_library(cards SHARED ${SOURCE})
set_module_type(cards win32dll UNICODE)
add_importlibs(cards user32 gdi32 msvcrt kernel32)
add_importlib_target(cards.spec cards.dll)
add_cd_file(TARGET cards DESTINATION reactos/system32 FOR all)

View file

@ -11,7 +11,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(comctl32.dll comctl32.spec)
spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
animate.c
@ -69,4 +69,4 @@ add_importlibs(comctl32
add_pch(comctl32 comctl32.h)
add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
add_importlib_target(comctl32.spec comctl32.dll)

View file

@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(comdlg32.dll comdlg32.spec)
spec2def(comdlg32.dll comdlg32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
cdlg32.c
@ -41,4 +41,4 @@ add_importlibs(comdlg32
ntdll)
add_cd_file(TARGET comdlg32 DESTINATION reactos/system32 FOR all)
add_importlib_target(comdlg32.spec comdlg32.dll)

View file

@ -17,4 +17,4 @@ target_link_libraries(compstui wine)
add_importlibs(compstui msvcrt kernel32 ntdll)
add_cd_file(TARGET compstui DESTINATION reactos/system32 FOR all)
add_importlib_target(compstui.spec compstui.dll)

View file

@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(credui.dll credui.spec)
spec2def(credui.dll credui.spec ADD_IMPORTLIB)
list(APPEND SOURCE
credui_main.c
@ -20,5 +20,5 @@ set_module_type(credui win32dll)
target_link_libraries(credui wine)
add_importlibs(credui advapi32 user32 comctl32 msvcrt kernel32 ntdll)
add_importlib_target(credui.spec credui.dll)
add_cd_file(TARGET credui DESTINATION reactos/system32 FOR all)

View file

@ -10,7 +10,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(crypt32.dll crypt32.spec)
spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
base64.c
@ -47,4 +47,4 @@ set_module_type(crypt32 win32dll)
target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
add_importlib_target(crypt32.spec crypt32.dll)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(cryptnet.dll cryptnet.spec)
spec2def(cryptnet.dll cryptnet.spec ADD_IMPORTLIB)
list(APPEND SOURCE
cryptnet_main.c
@ -14,5 +14,5 @@ set_module_type(cryptnet win32dll)
target_link_libraries(cryptnet wine)
add_delay_importlibs(cryptnet wininet)
add_importlibs(cryptnet crypt32 msvcrt kernel32 ntdll)
add_importlib_target(cryptnet.spec cryptnet.dll)
add_cd_file(TARGET cryptnet DESTINATION reactos/system32 FOR all)

View file

@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(cryptui.dll cryptui.spec)
spec2def(cryptui.dll cryptui.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
@ -32,5 +32,5 @@ add_importlibs(cryptui
kernel32
ntdll)
add_importlib_target(cryptui.spec cryptui.dll)
add_cd_file(TARGET cryptui DESTINATION reactos/system32 FOR all)

View file

@ -14,7 +14,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(dbghelp.dll dbghelp.spec)
spec2def(dbghelp.dll dbghelp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
coff.c
@ -51,5 +51,5 @@ target_link_libraries(dbghelp wine ${PSEH_LIB} oldnames)
add_delay_importlibs(dbghelp version)
add_importlibs(dbghelp psapi msvcrt kernel32 ntdll)
add_pch(dbghelp dbghelp_private.h)
add_importlib_target(dbghelp.spec dbghelp.dll)
add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)

View file

@ -1,7 +1,7 @@
set_rc_compiler()
spec2def(devmgr.dll devmgr.spec)
spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB)
list(APPEND SOURCE
devmgr.rc
@ -31,4 +31,4 @@ add_importlibs(devmgr
add_pch(devmgr precomp.h)
add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all)
add_importlib_target(devmgr.spec devmgr.dll)

View file

@ -3,7 +3,7 @@ add_definitions(-Dtzset=_tzset)
include_directories(include)
spec2def(dhcpcsvc.dll dhcpcsvc.spec)
spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dhcp/adapter.c
@ -28,7 +28,7 @@ add_library(dhcpcsvc SHARED ${SOURCE})
set_module_type(dhcpcsvc win32dll)
add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
add_importlib_target(dhcpcsvc.spec dhcpcsvc.dll)
add_pch(dhcpcsvc include/rosdhcp.h)

View file

@ -6,7 +6,7 @@ include_directories(
add_definitions(-DADNS_JGAA_WIN32)
spec2def(dnsapi.dll dnsapi.spec)
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dnsapi/adns.c
@ -27,4 +27,4 @@ add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi dnsapi/precomp.h)
add_dependencies(dnsapi psdk)
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
add_importlib_target(dnsapi.spec dnsapi.dll)

View file

@ -1,5 +1,5 @@
spec2def(fmifs.dll fmifs.spec)
spec2def(fmifs.dll fmifs.spec ADD_IMPORTLIB)
list(APPEND SOURCE
chkdsk.c
@ -20,4 +20,4 @@ add_importlibs(fmifs kernel32 ntdll)
add_pch(fmifs precomp.h)
add_dependencies(fmifs psdk)
add_cd_file(TARGET fmifs DESTINATION reactos/system32 FOR all)
add_importlib_target(fmifs.spec fmifs.dll)

View file

@ -4,7 +4,7 @@ add_definitions(-DLANGPACK)
include_directories(include)
spec2def(gdi32.dll gdi32.spec)
spec2def(gdi32.dll gdi32.spec ADD_IMPORTLIB)
if(ARCH MATCHES i386)
list(APPEND SOURCE
@ -56,4 +56,4 @@ target_link_libraries(gdi32
add_importlibs(gdi32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(gdi32 include/precomp.h)
add_cd_file(TARGET gdi32 DESTINATION reactos/system32 FOR all)
add_importlib_target(gdi32.spec gdi32.dll)

View file

@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(gdiplus.dll gdiplus.spec)
spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
list(APPEND SOURCE
brush.c
@ -49,7 +49,7 @@ add_importlibs(gdiplus
kernel32
ntdll)
add_importlib_target(gdiplus.spec gdiplus.dll)
if(ARCH MATCHES amd64)
target_link_libraries(gdiplus crt)

View file

@ -9,7 +9,7 @@ add_library(getuname SHARED
getuname.rc
${CMAKE_CURRENT_BINARY_DIR}/getuname.def)
add_importlib_target(getuname.spec getuname.dll)
set_module_type(getuname win32dll UNICODE)
add_importlibs(getuname msvcrt kernel32 ntdll)
add_cd_file(TARGET getuname DESTINATION reactos/system32 FOR all)

View file

@ -16,7 +16,7 @@ include_directories(
libtess
libutil)
spec2def(glu32.dll glu32.spec)
spec2def(glu32.dll glu32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
libnurbs/interface/bezierEval.cc
@ -122,4 +122,4 @@ add_importlibs(glu32
ntdll)
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
add_importlib_target(glu32.spec glu32.dll)

View file

@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(hlink.dll hlink.spec)
spec2def(hlink.dll hlink.spec ADD_IMPORTLIB)
list(APPEND SOURCE
browse_ctx.c
@ -28,5 +28,5 @@ add_importlibs(hlink
ntdll)
add_pch(hlink hlink_private.h)
add_importlib_target(hlink.spec hlink.dll)
add_cd_file(TARGET hlink DESTINATION reactos/system32 FOR all)

View file

@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(icmp.dll icmp.spec)
spec2def(icmp.dll icmp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
icmp_main.c
@ -17,5 +17,5 @@ set_module_type(icmp win32dll)
target_link_libraries(icmp wine)
add_importlibs(icmp ws2_32 msvcrt kernel32 ntdll)
add_importlib_target(icmp.spec icmp.dll)
add_cd_file(TARGET icmp DESTINATION reactos/system32 FOR all)

View file

@ -2,7 +2,7 @@
add_definitions(-D_IMAGEHLP_SOURCE_)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(imagehlp.dll imagehlp.spec)
spec2def(imagehlp.dll imagehlp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
access.c
@ -18,6 +18,6 @@ add_library(imagehlp SHARED ${SOURCE})
set_module_type(imagehlp win32dll)
target_link_libraries(imagehlp wine)
add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
add_importlib_target(imagehlp.spec imagehlp.dll)
add_pch(imagehlp precomp.h)
add_cd_file(TARGET imagehlp DESTINATION reactos/system32 FOR all)

View file

@ -12,7 +12,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(imm32.dll imm32.spec)
spec2def(imm32.dll imm32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
imm.c
@ -26,4 +26,4 @@ set_module_type(imm32 win32dll)
target_link_libraries(imm32 wine)
add_importlibs(imm32 advapi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET imm32 DESTINATION reactos/system32 FOR all)
add_importlib_target(imm32.spec imm32.dll)

View file

@ -7,7 +7,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(inetcomm.dll inetcomm.spec)
spec2def(inetcomm.dll inetcomm.spec ADD_IMPORTLIB)
list(APPEND SOURCE
imaptransport.c
@ -37,5 +37,5 @@ add_importlibs(inetcomm
kernel32
ntdll)
add_importlib_target(inetcomm.spec inetcomm.dll)
add_cd_file(TARGET inetcomm DESTINATION reactos/system32 FOR all)

View file

@ -5,7 +5,7 @@ include_directories(
${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
${REACTOS_SOURCE_DIR}/lib/tdilib)
spec2def(iphlpapi.dll iphlpapi.spec)
spec2def(iphlpapi.dll iphlpapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dhcp_reactos.c
@ -27,4 +27,4 @@ target_link_libraries(iphlpapi wine tdilib)
add_importlibs(iphlpapi icmp dhcpcsvc advapi32 ws2_32 msvcrt kernel32 ntdll)
add_pch(iphlpapi iphlpapi_private.h)
add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)
add_importlib_target(iphlpapi.spec iphlpapi.dll)

View file

@ -5,7 +5,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
set_rc_compiler()
spec2def(kernel32.dll kernel32.spec)
spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
client/appcache.c
@ -99,4 +99,4 @@ add_importlibs(kernel32 ntdll)
add_pch(kernel32 k32.h)
add_dependencies(kernel32 psdk errcodes asm)
add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)
add_importlib_target(kernel32.spec kernel32.dll)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(loadperf.dll loadperf.spec)
spec2def(loadperf.dll loadperf.spec ADD_IMPORTLIB)
add_library(loadperf SHARED
loadperf_main.c
@ -13,4 +13,4 @@ set_module_type(loadperf win32dll)
target_link_libraries(loadperf wine)
add_importlibs(loadperf msvcrt kernel32 ntdll)
add_cd_file(TARGET loadperf DESTINATION reactos/system32 FOR all)
add_importlib_target(loadperf.spec loadperf.dll)

View file

@ -16,6 +16,6 @@ add_library(localui SHARED ${SOURCE})
set_module_type(localui win32dll)
target_link_libraries(localui uuid wine)
add_importlib_target(localui.spec localui.dll)
add_importlibs(localui winspool user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET localui DESTINATION reactos/system32 FOR all)

View file

@ -15,7 +15,7 @@ add_library(lpk SHARED ${SOURCE})
set_module_type(lpk win32dll UNICODE)
add_importlib_target(lpk.spec lpk.dll)
add_importlibs(lpk user32 usp10 msvcrt kernel32 ntdll)
add_pch(lpk ros_lpk.h)
add_cd_file(TARGET lpk DESTINATION reactos/system32 FOR all)

View file

@ -8,7 +8,7 @@ add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/lsa.idl)
set_rc_compiler()
spec2def(lsasrv.dll lsasrv.spec)
spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB)
list(APPEND SOURCE
authport.c
@ -31,4 +31,4 @@ add_importlibs(lsasrv rpcrt4 msvcrt kernel32 ntdll)
add_pch(lsasrv lsasrv.h)
add_dependencies(lsasrv psdk)
add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)
add_importlib_target(lsasrv.spec lsasrv.dll)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(lz32.dll lz32.spec)
spec2def(lz32.dll lz32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
version.rc
@ -16,4 +16,4 @@ target_link_libraries(lz32 wine)
add_importlibs(lz32 kernel32 ntdll)
add_dependencies(lz32 psdk)
add_cd_file(TARGET lz32 DESTINATION reactos/system32 FOR all)
add_importlib_target(lz32.spec lz32.dll)

View file

@ -9,7 +9,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(mlang.dll mlang.spec)
spec2def(mlang.dll mlang.spec ADD_IMPORTLIB)
list(APPEND SOURCE
mlang.c
@ -30,6 +30,6 @@ add_importlibs(mlang
kernel32
ntdll)
add_importlib_target(mlang.spec mlang.dll)
add_dependencies(mlang psdk)
add_cd_file(TARGET mlang DESTINATION reactos/system32 FOR all)

View file

@ -7,7 +7,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(mpr.dll mpr.spec)
spec2def(mpr.dll mpr.spec ADD_IMPORTLIB)
list(APPEND SOURCE
auth.c
@ -27,4 +27,4 @@ set_module_type(mpr win32dll)
target_link_libraries(mpr wine)
add_importlibs(mpr advapi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET mpr DESTINATION reactos/system32 FOR all)
add_importlib_target(mpr.spec mpr.dll)

View file

@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(msacm32.dll msacm32.spec)
spec2def(msacm32.dll msacm32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
driver.c
@ -26,6 +26,6 @@ add_importlibs(msacm32 msvcrt advapi32 user32 winmm kernel32 ntdll)
add_dependencies(msacm32 psdk)
add_cd_file(TARGET msacm32 DESTINATION reactos/system32 FOR all)
add_importlib_target(msacm32.spec msacm32.dll)
add_subdirectory(msacm32.drv)

View file

@ -8,7 +8,7 @@ remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
set_rc_compiler()
spec2def(msi.dll msi.spec)
spec2def(msi.dll msi.spec ADD_IMPORTLIB)
generate_idl_iids(msiserver.idl)
@ -98,4 +98,4 @@ add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)
endif(NOT MSVC)
add_importlib_target(msi.spec msi.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(msimg32.dll msimg32.spec)
spec2def(msimg32.dll msimg32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
msimg32_main.c
@ -14,4 +14,4 @@ set_module_type(msimg32 win32dll)
target_link_libraries(msimg32 wine)
add_importlibs(msimg32 gdi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msimg32 DESTINATION reactos/system32 FOR all)
add_importlib_target(msimg32.spec msimg32.dll)

View file

@ -17,4 +17,4 @@ target_link_libraries(msports wine)
add_importlibs(msports setupapi comctl32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(msports precomp.h)
add_cd_file(TARGET msports DESTINATION reactos/system32 FOR all)
add_importlib_target(msports.spec msports.dll)

View file

@ -1,5 +1,5 @@
spec2def(msvcrt.dll msvcrt.spec)
spec2def(msvcrt.dll msvcrt.spec ADD_IMPORTLIB)
add_definitions(
-DUSE_MSVCRT_PREFIX
@ -37,4 +37,4 @@ endif()
add_importlibs(msvcrt kernel32 ntdll)
add_pch(msvcrt precomp.h)
add_cd_file(TARGET msvcrt DESTINATION reactos/system32 FOR all)
add_importlib_target(msvcrt.spec msvcrt.dll)

View file

@ -5,7 +5,7 @@ add_definitions(-D__WINESRC__)
add_definitions(-D_WINE)
set_rc_compiler()
spec2def(msvfw32.dll msvfw32.spec)
spec2def(msvfw32.dll msvfw32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
mciwnd.c
@ -24,4 +24,4 @@ target_link_libraries(msvfw32 wine)
add_importlibs(msvfw32 winmm version comctl32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msvfw32 DESTINATION reactos/system32 FOR all)
add_importlib_target(msvfw32.spec msvfw32.dll)

View file

@ -3,7 +3,7 @@
add_definitions(-DLE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(mswsock.dll mswsock.spec)
spec2def(mswsock.dll mswsock.spec ADD_IMPORTLIB)
list(APPEND SOURCE
extensions.c
@ -17,4 +17,4 @@ set_module_type(mswsock win32dll UNICODE)
add_importlibs(mswsock ws2_32 msvcrt kernel32)
add_pch(mswsock precomp.h)
add_cd_file(TARGET mswsock DESTINATION reactos/system32 FOR all)
add_importlib_target(mswsock.spec mswsock.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(netapi32.dll netapi32.spec)
spec2def(netapi32.dll netapi32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
access.c
@ -29,4 +29,4 @@ target_link_libraries(netapi32 wine)
add_importlibs(netapi32 iphlpapi ws2_32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)
add_importlib_target(netapi32.spec netapi32.dll)

View file

@ -1,6 +1,6 @@
spec2def(newdev.dll newdev.spec)
spec2def(newdev.dll newdev.spec ADD_IMPORTLIB)
list(APPEND SOURCE
newdev.c
@ -16,4 +16,4 @@ target_link_libraries(newdev wine)
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 msvcrt kernel32 ntdll)
add_pch(newdev newdev_private.h)
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)
add_importlib_target(newdev.spec newdev.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(ntdsapi.dll ntdsapi.spec)
spec2def(ntdsapi.dll ntdsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
ntdsapi.c
@ -15,6 +15,6 @@ set_module_type(ntdsapi win32dll ENTRYPOINT 0 )
target_link_libraries(ntdsapi wine)
add_importlibs(ntdsapi user32 kernel32 ntdll)
add_importlib_target(ntdsapi.spec ntdsapi.dll)
add_dependencies(ntdsapi psdk)
add_cd_file(TARGET ntdsapi DESTINATION reactos/system32 FOR all)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(odbccp32.dll odbccp32.spec)
spec2def(odbccp32.dll odbccp32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
odbccp32.c
@ -20,5 +20,5 @@ add_importlibs(odbccp32
kernel32
ntdll)
add_importlib_target(odbccp32.spec odbccp32.dll)
add_cd_file(TARGET odbccp32 DESTINATION reactos/system32 FOR all)

View file

@ -1,7 +1,7 @@
set_rc_compiler()
spec2def(ole32.dll ole32.spec)
spec2def(ole32.dll ole32.spec ADD_IMPORTLIB)
generate_idl_iids(dcom.idl)
add_idl_headers(ole32idl dcom.idl irot.idl)
@ -87,4 +87,4 @@ add_importlibs(ole32 advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
add_dependencies(ole32 ole32idl)
add_cd_file(TARGET ole32 DESTINATION reactos/system32 FOR all)
add_importlib_target(ole32.spec ole32.dll)

View file

@ -3,7 +3,7 @@ add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(oleacc.dll oleacc.spec)
spec2def(oleacc.dll oleacc.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
@ -19,5 +19,5 @@ target_link_libraries(oleacc wine)
add_importlibs(oleacc user32 msvcrt kernel32 ntdll)
add_importlib_target(oleacc.spec oleacc.dll)
add_cd_file(TARGET oleacc DESTINATION reactos/system32 FOR all)

View file

@ -16,7 +16,7 @@ include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(oleaut32.dll oleaut32.spec)
spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
@ -65,4 +65,4 @@ target_link_libraries(oleaut32
add_delay_importlibs(oleaut32 comctl32 urlmon windowscodecs)
add_importlibs(oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET oleaut32 DESTINATION reactos/system32 FOR all)
add_importlib_target(oleaut32.spec oleaut32.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(oledlg.dll oledlg.spec)
spec2def(oledlg.dll oledlg.spec ADD_IMPORTLIB)
list(APPEND SOURCE
insobjdlg.c
@ -16,5 +16,5 @@ add_library(oledlg SHARED ${SOURCE})
set_module_type(oledlg win32dll)
target_link_libraries(oledlg wine)
add_importlibs(oledlg ole32 comdlg32 user32 advapi32 msvcrt kernel32 ntdll)
add_importlib_target(oledlg.spec oledlg.dll)
add_cd_file(TARGET oledlg DESTINATION reactos/system32 FOR all)

View file

@ -1,6 +1,6 @@
spec2def(opengl32.dll opengl32.spec)
spec2def(opengl32.dll opengl32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
font.c
@ -26,4 +26,4 @@ add_importlibs(opengl32
add_pch(opengl32 opengl32.h)
add_cd_file(TARGET opengl32 DESTINATION reactos/system32 FOR all)
add_importlib_target(opengl32.spec opengl32.dll)

View file

@ -6,7 +6,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(pdh.dll pdh.spec)
spec2def(pdh.dll pdh.spec ADD_IMPORTLIB)
list(APPEND SOURCE
pdh_main.c
@ -19,6 +19,6 @@ set_module_type(pdh win32dll ENTRYPOINT 0 )
target_link_libraries(pdh wine)
add_importlibs(pdh kernel32 ntdll msvcrt)
add_importlib_target(pdh.spec pdh.dll)
add_cd_file(TARGET pdh DESTINATION reactos/system32 FOR all)

View file

@ -1,5 +1,5 @@
spec2def(powrprof.dll powrprof.spec)
spec2def(powrprof.dll powrprof.spec ADD_IMPORTLIB)
add_library(powrprof SHARED
@ -12,5 +12,5 @@ set_module_type(powrprof win32dll UNICODE)
target_link_libraries(powrprof wine)
add_importlibs(powrprof advapi32 user32 comctl32 msvcrt kernel32 ntdll)
add_importlib_target(powrprof.spec powrprof.dll)
add_cd_file(TARGET powrprof DESTINATION reactos/system32 FOR all)

View file

@ -1,5 +1,5 @@
spec2def(psapi.dll psapi.spec)
spec2def(psapi.dll psapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
malloc.c
@ -12,6 +12,6 @@ add_library(psapi SHARED ${SOURCE})
set_module_type(psapi win32dll)
target_link_libraries(psapi epsapi ${PSEH_LIB})
add_importlibs(psapi msvcrt kernel32 ntdll)
add_importlib_target(psapi.spec psapi.dll)
add_pch(psapi precomp.h)
add_cd_file(TARGET psapi DESTINATION reactos/system32 FOR all)

View file

@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
set_rc_compiler()
spec2def(rasapi32.dll rasapi32.spec)
spec2def(rasapi32.dll rasapi32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
rasapi.c
@ -16,6 +16,6 @@ set_module_type(rasapi32 win32dll ENTRYPOINT 0 )
target_link_libraries(rasapi32 wine)
add_importlibs(rasapi32 kernel32 ntdll)
add_importlib_target(rasapi32.spec rasapi32.dll)
add_dependencies(rasapi32 psdk)
add_cd_file(TARGET rasapi32 DESTINATION reactos/system32 FOR all)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(riched20.dll riched20.spec)
spec2def(riched20.dll riched20.spec ADD_IMPORTLIB)
set_rc_compiler()
@ -51,5 +51,5 @@ add_importlibs(riched20
ntdll)
add_pch(riched20 editor.h)
add_importlib_target(riched20.spec riched20.dll)
add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)

View file

@ -1,4 +1,6 @@
spec2def(rpcrt4.dll rpcrt4.spec ADD_IMPORTLIB)
add_rpc_files(client epm.idl)
list(APPEND SOURCE
@ -40,8 +42,6 @@ add_definitions(
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(rpcrt4.dll rpcrt4.spec)
add_library(rpcrt4 SHARED ${SOURCE})
set_module_type(rpcrt4 win32dll)
target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
@ -49,7 +49,7 @@ target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
add_importlibs(rpcrt4 msvcrt advapi32 ws2_32 kernel32 ntdll)
add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
add_importlib_target(rpcrt4.spec rpcrt4.dll)
if(NOT MSVC)
allow_warnings(rpcrt4)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(rsaenh.dll rsaenh.spec)
spec2def(rsaenh.dll rsaenh.spec ADD_IMPORTLIB)
list(APPEND SOURCE
aes.c
@ -25,5 +25,5 @@ set_module_type(rsaenh win32dll)
target_link_libraries(rsaenh wine)
add_importlibs(rsaenh msvcrt crypt32 advapi32 kernel32 ntdll)
add_pch(rsaenh tomcrypt.h)
add_importlib_target(rsaenh.spec rsaenh.dll)
add_cd_file(TARGET rsaenh DESTINATION reactos/system32 FOR all)

View file

@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
set_rc_compiler()
spec2def(samlib.dll samlib.spec)
spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dllmain.c
@ -17,4 +17,4 @@ set_module_type(samlib win32dll)
add_importlibs(samlib advapi32 msvcrt kernel32 ntdll)
add_pch(samlib precomp.h)
add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)
add_importlib_target(samlib.spec samlib.dll)

View file

@ -2,7 +2,7 @@
add_definitions(-D__SECUR32__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
spec2def(secur32.dll secur32.spec)
spec2def(secur32.dll secur32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dllmain.c
@ -24,4 +24,4 @@ add_importlibs(secur32 advapi32 msvcrt kernel32 ntdll)
add_pch(secur32 precomp.h)
add_cd_file(TARGET secur32 DESTINATION reactos/system32 FOR all)
add_importlib_target(secur32.spec secur32.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(sensapi.dll sensapi.spec)
spec2def(sensapi.dll sensapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
sensapi.c
@ -13,5 +13,5 @@ add_library(sensapi SHARED ${SOURCE})
set_module_type(sensapi win32dll)
target_link_libraries(sensapi wine)
add_importlibs(sensapi msvcrt kernel32 ntdll)
add_importlib_target(sensapi.spec sensapi.dll)
add_cd_file(TARGET sensapi DESTINATION reactos/system32 FOR all)

View file

@ -13,7 +13,7 @@ add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/pnp.idl)
set_rc_compiler()
spec2def(setupapi.dll setupapi.spec)
spec2def(setupapi.dll setupapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
cfgmgr.c
@ -55,4 +55,4 @@ add_importlibs(setupapi
add_pch(setupapi setupapi_private.h)
add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
add_importlib_target(setupapi.spec setupapi.dll)

View file

@ -1,5 +1,5 @@
spec2def(sfc_os.dll sfc_os.spec)
spec2def(sfc_os.dll sfc_os.spec ADD_IMPORTLIB)
list(APPEND SOURCE
sfc_os.c
@ -10,6 +10,6 @@ add_library(sfc_os SHARED ${SOURCE})
set_module_type(sfc_os win32dll)
add_importlibs(sfc_os msvcrt kernel32 ntdll)
add_importlib_target(sfc_os.spec sfc_os.dll)
add_pch(sfc_os precomp.h)
add_cd_file(TARGET sfc_os DESTINATION reactos/system32 FOR all)

View file

@ -6,7 +6,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(shdocvw.dll shdocvw.spec)
spec2def(shdocvw.dll shdocvw.spec ADD_IMPORTLIB)
list(APPEND SOURCE
classinfo.c
@ -55,7 +55,7 @@ add_dependencies(shdocvw stdole2)
add_pch(shdocvw shdocvw.h)
add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
add_importlib_target(shdocvw.spec shdocvw.dll)
if(NOT MSVC)
allow_warnings(shdocvw)

View file

@ -14,7 +14,7 @@ include_directories(
${REACTOS_SOURCE_DIR}/lib/atl
${REACTOS_SOURCE_DIR})
spec2def(shell32.dll shell32.spec)
spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
authors.cpp
@ -107,4 +107,4 @@ add_dependencies(shdocvw shdocvw_v1)
add_pch(shell32 precomp.h)
add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
add_importlib_target(shell32.spec shell32.dll)

View file

@ -5,7 +5,7 @@ add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
spec2def(shlwapi.dll shlwapi.spec)
spec2def(shlwapi.dll shlwapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
assoc.c
@ -32,4 +32,4 @@ target_link_libraries(shlwapi wine uuid)
add_delay_importlibs(shlwapi userenv oleaut32 ole32 comctl32 comdlg32 mpr mlang urlmon shell32 winmm version)
add_importlibs(shlwapi user32 gdi32 advapi32 msvcrt wininet kernel32 ntdll)
add_cd_file(TARGET shlwapi DESTINATION reactos/system32 FOR all)
add_importlib_target(shlwapi.spec shlwapi.dll)

View file

@ -1,7 +1,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
spec2def(smdll.dll smdll.spec)
spec2def(smdll.dll smdll.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dllmain.c
@ -17,4 +17,4 @@ add_importlibs(smdll ntdll)
add_pch(smdll precomp.h)
add_dependencies(smdll psdk)
add_cd_file(TARGET smdll DESTINATION reactos/system32 FOR all)
add_importlib_target(smdll.spec smdll.dll)

View file

@ -6,7 +6,7 @@ remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
set_rc_compiler()
spec2def(snmpapi.dll snmpapi.spec)
spec2def(snmpapi.dll snmpapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
@ -23,4 +23,4 @@ target_link_libraries(snmpapi wine)
add_importlibs(snmpapi msvcrt kernel32 ntdll)
add_cd_file(TARGET snmpapi DESTINATION reactos/system32 FOR all)
add_importlib_target(snmpapi.spec snmpapi.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(spoolss.dll spoolss.spec)
spec2def(spoolss.dll spoolss.spec ADD_IMPORTLIB)
list(APPEND SOURCE
spoolss_main.c
@ -15,5 +15,5 @@ allow_warnings(spoolss)
set_module_type(spoolss win32dll)
target_link_libraries(spoolss wine)
add_importlibs(spoolss winspool msvcrt kernel32 ntdll)
add_importlib_target(spoolss.spec spoolss.dll)
add_cd_file(TARGET spoolss DESTINATION reactos/system32 FOR all)

View file

@ -11,6 +11,6 @@ set_module_type(ufatx win32dll ENTRYPOINT 0 )
target_link_libraries(ufatx vfatxlib)
add_importlibs(ufatx ntdll)
add_importlib_target(ufatx.spec ufatx.dll)
add_dependencies(ufatx psdk)
add_cd_file(TARGET ufatx DESTINATION reactos/system32 FOR all)

View file

@ -8,7 +8,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(urlmon.dll urlmon.spec)
spec2def(urlmon.dll urlmon.spec ADD_IMPORTLIB)
add_rpcproxy_files(urlmon_urlmon.idl)
@ -73,4 +73,4 @@ add_definitions(
add_pch(urlmon urlmon_main.h)
add_definitions(-DPROXY_CLSID_IS="{0x79EAC9F1,0xBAF9,0x11CE,{0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B}}")
add_cd_file(TARGET urlmon DESTINATION reactos/system32 FOR all)
add_importlib_target(urlmon.spec urlmon.dll)

View file

@ -1,5 +1,5 @@
spec2def(user32.dll user32.spec)
spec2def(user32.dll user32.spec ADD_IMPORTLIB)
include_directories(
BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine
@ -76,4 +76,4 @@ add_delay_importlibs(user32 imm32 usp10)
add_importlibs(user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_pch(user32 include/user32.h)
add_cd_file(TARGET user32 DESTINATION reactos/system32 FOR all)
add_importlib_target(user32.spec user32.dll)

View file

@ -1,5 +1,5 @@
spec2def(userenv.dll userenv.spec)
spec2def(userenv.dll userenv.spec ADD_IMPORTLIB)
set_rc_compiler()
@ -27,4 +27,4 @@ add_importlibs(userenv advapi32 user32 msvcrt kernel32 ntdll)
add_pch(userenv precomp.h)
add_cd_file(TARGET userenv DESTINATION reactos/system32 FOR all)
add_importlib_target(userenv.spec userenv.dll)

View file

@ -2,7 +2,7 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(usp10.dll usp10.spec)
spec2def(usp10.dll usp10.spec ADD_IMPORTLIB)
list(APPEND SOURCE
bidi.c
@ -25,6 +25,6 @@ set_module_type(usp10 win32dll)
target_link_libraries(usp10 wine)
add_importlibs(usp10 advapi32 user32 gdi32 msvcrt kernel32 ntdll)
add_importlib_target(usp10.spec usp10.dll)
add_cd_file(TARGET usp10 DESTINATION reactos/system32 FOR all)

View file

@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
set_rc_compiler()
spec2def(uxtheme.dll uxtheme.spec)
spec2def(uxtheme.dll uxtheme.spec ADD_IMPORTLIB)
list(APPEND SOURCE
buffer.c
@ -29,4 +29,4 @@ add_delay_importlibs(uxtheme msimg32)
add_importlibs(uxtheme user32 advapi32 gdi32 msvcrt kernel32 ntdll)
add_pch(uxtheme uxthemep.h)
add_cd_file(TARGET uxtheme DESTINATION reactos/system32 FOR all)
add_importlib_target(uxtheme.spec uxtheme.dll)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(version.dll version.spec)
spec2def(version.dll version.spec ADD_IMPORTLIB)
list(APPEND SOURCE
info.c
@ -19,4 +19,4 @@ target_link_libraries(version wine)
add_importlibs(version lz32 kernel32 ntdll)
add_dependencies(version psdk)
add_cd_file(TARGET version DESTINATION reactos/system32 FOR all)
add_importlib_target(version.spec version.dll)

View file

@ -16,7 +16,7 @@ if(MSVC)
add_compile_flags("/FItypeof.h")
endif()
spec2def(windowscodecs.dll windowscodecs.spec)
spec2def(windowscodecs.dll windowscodecs.spec ADD_IMPORTLIB)
list(APPEND SOURCE
bmpdecode.c
@ -54,6 +54,6 @@ set_module_type(windowscodecs win32dll)
target_link_libraries(windowscodecs wine uuid)
add_importlibs(windowscodecs ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
add_importlib_target(windowscodecs.spec windowscodecs.dll)
add_cd_file(TARGET windowscodecs DESTINATION reactos/system32 FOR all)

View file

@ -2,7 +2,7 @@
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(winhttp.dll winhttp.spec)
spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
cookie.c
@ -20,7 +20,7 @@ set_module_type(winhttp win32dll)
target_link_libraries(winhttp wine)
add_delay_importlibs(winhttp crypt32)
add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt advapi32 kernel32 ntdll)
add_importlib_target(winhttp.spec winhttp.dll)
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
if(NOT MSVC)

Some files were not shown because too many files have changed in this diff Show more