mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 05:43:30 +00:00
9cc4f5ceee
Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation. svn path=/branches/cmake-bringup/; revision=50574
65 lines
1.3 KiB
CMake
65 lines
1.3 KiB
CMake
|
|
set_unicode()
|
|
|
|
spec2def(advapi32.dll advapi32.spec)
|
|
|
|
add_definitions(-D_ADVAPI32_)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
|
|
|
|
list(APPEND SOURCE
|
|
crypt/crypt.c
|
|
crypt/crypt_arc4.c
|
|
crypt/crypt_des.c
|
|
crypt/crypt_lmhash.c
|
|
crypt/crypt_md4.c
|
|
crypt/crypt_md5.c
|
|
crypt/crypt_sha.c
|
|
misc/dllmain.c
|
|
misc/efs.c
|
|
misc/hwprofiles.c
|
|
misc/logon.c
|
|
misc/msi.c
|
|
misc/shutdown.c
|
|
misc/sysfunc.c
|
|
misc/trace.c
|
|
reg/reg.c
|
|
sec/ac.c
|
|
sec/audit.c
|
|
sec/cred.c
|
|
sec/lsa.c
|
|
sec/misc.c
|
|
sec/sec.c
|
|
sec/sid.c
|
|
sec/trustee.c
|
|
service/eventlog.c
|
|
service/rpc.c
|
|
service/scm.c
|
|
service/sctrl.c
|
|
token/privilege.c
|
|
token/token.c
|
|
advapi32.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32.def)
|
|
|
|
add_library(advapi32 SHARED
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
|
|
${SOURCE})
|
|
|
|
set_module_type(advapi32 win32dll)
|
|
|
|
target_link_libraries(advapi32
|
|
svcctlrpc
|
|
lsarpc
|
|
eventlogrpc
|
|
wine
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(advapi32 rpcrt4 kernel32 ntdll msvcrt)
|
|
|
|
add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
|
|
add_cab_target(advapi32 1)
|
|
add_importlib_target(advapi32.spec)
|