2011-05-16 13:12:07 +00:00
|
|
|
|
2011-06-13 15:31:11 +00:00
|
|
|
add_definitions(-D__WINESRC__)
|
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(riched20.dll riched20.spec ADD_IMPORTLIB)
|
2011-06-13 15:31:11 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
caret.c
|
|
|
|
clipboard.c
|
|
|
|
context.c
|
|
|
|
editor.c
|
|
|
|
list.c
|
|
|
|
paint.c
|
|
|
|
para.c
|
|
|
|
reader.c
|
|
|
|
richole.c
|
|
|
|
row.c
|
|
|
|
run.c
|
|
|
|
string.c
|
|
|
|
style.c
|
|
|
|
table.c
|
|
|
|
undo.c
|
|
|
|
wrap.c
|
|
|
|
writer.c
|
2014-02-10 12:19:56 +00:00
|
|
|
editor.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
2012-08-27 18:58:27 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
2011-08-23 08:13:33 +00:00
|
|
|
list(APPEND SOURCE msvc-thiscall.c)
|
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
set_source_files_properties(txthost.c txtsrv.c PROPERTIES COMPILE_FLAGS "/FImsvc.h")
|
2014-02-10 12:19:56 +00:00
|
|
|
list(APPEND ADDITIONAL_SOURCE txthost.c txtsrv.c)
|
|
|
|
else()
|
|
|
|
list(APPEND SOURCE txthost.c txtsrv.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
|
|
|
|
2014-09-10 16:03:22 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
|
|
#FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
|
|
|
|
set_property(SOURCE txthost.c txtsrv.c APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
|
|
|
|
endif()
|
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
list(APPEND ADDITIONAL_SOURCE
|
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
|
|
|
|
|
2015-07-20 22:53:23 +00:00
|
|
|
list(APPEND riched20_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/riched_tom.rgs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/riched_tom.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${riched20_rc_deps}")
|
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
add_library(riched20 SHARED ${SOURCE} ${ADDITIONAL_SOURCE})
|
2015-07-20 22:53:23 +00:00
|
|
|
add_typelib(riched_tom.idl)
|
|
|
|
add_dependencies(riched20 stdole2)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(riched20 win32dll)
|
|
|
|
target_link_libraries(riched20 wine uuid)
|
2014-04-26 16:54:06 +00:00
|
|
|
add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(riched20 editor.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)
|