2011-05-16 13:12:07 +00:00
|
|
|
|
2015-11-17 12:54:52 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2013-09-11 10:20:46 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_ATL_VER=_ATL_VER_30)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(atl.dll atl.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2014-04-26 18:49:54 +00:00
|
|
|
atl.c
|
|
|
|
atl30.c
|
|
|
|
atl_ax.c
|
|
|
|
registrar.c
|
2012-12-12 12:48:52 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/atl_stubs.c
|
2017-12-09 18:58:43 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-09-26 11:39:07 +00:00
|
|
|
list(APPEND atl_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/atl.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_r.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_t.rgs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/atl_lib.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}")
|
2017-12-09 18:58:43 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(atl MODULE
|
2017-12-09 18:58:43 +00:00
|
|
|
${SOURCE}
|
|
|
|
rsrc.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/atl.def)
|
|
|
|
|
2014-09-26 11:39:07 +00:00
|
|
|
add_typelib(atl_lib.idl)
|
|
|
|
add_dependencies(atl stdole2)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(atl win32dll)
|
|
|
|
target_link_libraries(atl uuid wine)
|
2015-11-17 12:54:52 +00:00
|
|
|
add_importlibs(atl oleaut32 ole32 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll)
|
2014-04-26 18:49:54 +00:00
|
|
|
add_pch(atl precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)
|