mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00

- build msvc importlibs explicitly from def file - circumvent lack of pseh lib in MSVC. - fix advapi32.def svn path=/branches/cmake-bringup/; revision=49409
58 lines
873 B
CMake
58 lines
873 B
CMake
|
|
set_unicode()
|
|
|
|
add_definitions(
|
|
-D_DLL
|
|
-D__USE_CRTIMP
|
|
-D_SETUPAPI_
|
|
-D_CFGMGR32_
|
|
-Dwcsnicmp=_wcsnicmp)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/include/reactos/wine
|
|
${REACTOS_BINARY_DIR}/include/reactos/idl)
|
|
|
|
spec2def(setupapi.dll setupapi.spec)
|
|
|
|
add_library(setupapi SHARED
|
|
cfgmgr.c
|
|
devclass.c
|
|
devinst.c
|
|
dirid.c
|
|
diskspace.c
|
|
driver.c
|
|
install.c
|
|
interface.c
|
|
misc.c
|
|
parser.c
|
|
query.c
|
|
queue.c
|
|
setupcab.c
|
|
stringtable.c
|
|
stubs.c
|
|
rpc.c
|
|
setupapi.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
|
|
|
|
set_module_type(setupapi win32dll)
|
|
|
|
target_link_libraries(setupapi
|
|
pnp_client
|
|
uuid
|
|
wine
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(setupapi
|
|
msvcrt
|
|
gdi32
|
|
comctl32
|
|
advapi32
|
|
user32
|
|
rpcrt4
|
|
version
|
|
shell32
|
|
kernel32
|
|
ntdll)
|
|
|
|
|
|
add_cab_target(setupapi 1)
|